tests: Fixes Hybrid cluster network test

Previously, we've centralized several images into agnhost, including
test-webserver.

The Hybrid cluster network test was using the test-webserver image, and
was updated to use agnhost, but without properly making it so it behaves like
test-webserver, resulting in a failing test.
This commit is contained in:
Claudiu Belu 2020-02-21 04:37:45 -08:00
parent ca23b07dd4
commit bb0a5ab016

View File

@ -52,8 +52,10 @@ var _ = SIGDescribe("Hybrid cluster network", func() {
ginkgo.It("should have stable networking for Linux and Windows pods", func() {
ginkgo.By("creating linux and windows pods")
linuxPod := createTestPod(f, linuxBusyBoxImage, linuxOS)
linuxPod = f.PodClient().CreateSync(linuxPod)
windowsPod := createTestPod(f, windowsBusyBoximage, windowsOS)
windowsPod.Spec.Containers[0].Args = []string{"test-webserver"}
windowsPod = f.PodClient().CreateSync(windowsPod)
ginkgo.By("checking connectivity to 8.8.8.8 53 (google.com) from Linux")
assertConsistentConnectivity(f, linuxPod.ObjectMeta.Name, linuxOS, linuxCheck("8.8.8.8", 53))
@ -130,5 +132,5 @@ func createTestPod(f *framework.Framework, image string, os string) *v1.Pod {
},
}
}
return f.PodClient().CreateSync(pod)
return pod
}