From bb0a5ab016b9a6cb24c417721f555b3d5fa22eb7 Mon Sep 17 00:00:00 2001 From: Claudiu Belu Date: Fri, 21 Feb 2020 04:37:45 -0800 Subject: [PATCH] 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. --- test/e2e/windows/hybrid_network.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/e2e/windows/hybrid_network.go b/test/e2e/windows/hybrid_network.go index e02299fa596..2c28fe897eb 100644 --- a/test/e2e/windows/hybrid_network.go +++ b/test/e2e/windows/hybrid_network.go @@ -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 }