mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
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:
parent
ca23b07dd4
commit
bb0a5ab016
@ -52,8 +52,10 @@ var _ = SIGDescribe("Hybrid cluster network", func() {
|
|||||||
ginkgo.It("should have stable networking for Linux and Windows pods", func() {
|
ginkgo.It("should have stable networking for Linux and Windows pods", func() {
|
||||||
ginkgo.By("creating linux and windows pods")
|
ginkgo.By("creating linux and windows pods")
|
||||||
linuxPod := createTestPod(f, linuxBusyBoxImage, linuxOS)
|
linuxPod := createTestPod(f, linuxBusyBoxImage, linuxOS)
|
||||||
|
linuxPod = f.PodClient().CreateSync(linuxPod)
|
||||||
windowsPod := createTestPod(f, windowsBusyBoximage, windowsOS)
|
windowsPod := createTestPod(f, windowsBusyBoximage, windowsOS)
|
||||||
windowsPod.Spec.Containers[0].Args = []string{"test-webserver"}
|
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")
|
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))
|
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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user