Merge pull request #38954 from slaskawi/statefulsets/add_service_level_tests

Automatic merge from submit-queue (batch tested with PRs 39169, 40719, 38954, 40808, 40689)

Add StatefulSets checks at Service level

Hi!

Please let me propose some very small e2e testsuite enhancement. 

This PR removed a `TODO` about checking governing service at unit test level (which is hard) and adds this to e2e testsuite.

Thanks
Sebastian
This commit is contained in:
Kubernetes Submit Queue
2017-02-02 02:05:21 -08:00
committed by GitHub
2 changed files with 13 additions and 1 deletions

View File

@@ -57,7 +57,6 @@ func TestPetIDDNS(t *testing.T) {
if hostname, ok := pod.Annotations[apipod.PodHostnameAnnotation]; !ok || hostname != petName {
t.Errorf("Wrong hostname: %v", hostname)
}
// TODO: Check this against the governing service.
if subdomain, ok := pod.Annotations[apipod.PodSubdomainAnnotation]; !ok || subdomain != petSubdomain {
t.Errorf("Wrong subdomain: %v", subdomain)
}