mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 12:07:47 +00:00
t.Errorf output wrong variables in identity_mapper_test.go
This commit is contained in:
parent
34244efd22
commit
7d3d6a7f64
@ -54,11 +54,11 @@ func TestPetIDDNS(t *testing.T) {
|
|||||||
t.Fatalf("Failed to generate pet %v", err)
|
t.Fatalf("Failed to generate pet %v", err)
|
||||||
}
|
}
|
||||||
if hostname, ok := pod.Annotations[api_pod.PodHostnameAnnotation]; !ok || hostname != petName {
|
if hostname, ok := pod.Annotations[api_pod.PodHostnameAnnotation]; !ok || hostname != petName {
|
||||||
t.Errorf("Wrong hostname: %v", petName)
|
t.Errorf("Wrong hostname: %v", hostname)
|
||||||
}
|
}
|
||||||
// TODO: Check this against the governing service.
|
// TODO: Check this against the governing service.
|
||||||
if subdomain, ok := pod.Annotations[api_pod.PodSubdomainAnnotation]; !ok || subdomain != petSubdomain {
|
if subdomain, ok := pod.Annotations[api_pod.PodSubdomainAnnotation]; !ok || subdomain != petSubdomain {
|
||||||
t.Errorf("Wrong subdomain: %v", petName)
|
t.Errorf("Wrong subdomain: %v", subdomain)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user