mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 03:11:40 +00:00
[Azure] fix publicIP test cases
This commit is contained in:
parent
c70e3e93bd
commit
2df5a30ba3
@ -1727,11 +1727,11 @@ func validatePublicIP(t *testing.T, publicIP *network.PublicIPAddress, service *
|
||||
|
||||
// For external service
|
||||
if publicIP == nil {
|
||||
t.Errorf("Expected publicIP resource exists, when it is not an internal service")
|
||||
t.Fatal("Expected publicIP resource exists, when it is not an internal service")
|
||||
}
|
||||
|
||||
if publicIP.Tags == nil || publicIP.Tags[serviceTagKey] == nil {
|
||||
t.Errorf("Expected publicIP resource has tags[%s]", serviceTagKey)
|
||||
t.Fatalf("Expected publicIP resource does not have tags[%s]", serviceTagKey)
|
||||
}
|
||||
|
||||
serviceName := getServiceName(service)
|
||||
@ -1740,7 +1740,7 @@ func validatePublicIP(t *testing.T, publicIP *network.PublicIPAddress, service *
|
||||
}
|
||||
|
||||
if publicIP.Tags[clusterNameKey] == nil {
|
||||
t.Errorf("Expected publicIP resource has tags[%s]", clusterNameKey)
|
||||
t.Fatalf("Expected publicIP resource does not have tags[%s]", clusterNameKey)
|
||||
}
|
||||
|
||||
if *(publicIP.Tags[clusterNameKey]) != testClusterName {
|
||||
|
Loading…
Reference in New Issue
Block a user