mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 05:03:09 +00:00
Merge pull request #88471 from claudiubelu/tests/fix-hybrid-network
tests: Fixes Hybrid cluster network test
This commit is contained in:
commit
fd5f5cc285
@ -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