diff --git a/test/e2e/windows/hybrid_network.go b/test/e2e/windows/hybrid_network.go index 4eccf490078..f54ffbf5760 100644 --- a/test/e2e/windows/hybrid_network.go +++ b/test/e2e/windows/hybrid_network.go @@ -24,6 +24,7 @@ import ( "k8s.io/apimachinery/pkg/util/uuid" "k8s.io/kubernetes/test/e2e/framework" e2eskipper "k8s.io/kubernetes/test/e2e/framework/skipper" + imageutils "k8s.io/kubernetes/test/utils/image" "github.com/onsi/ginkgo" @@ -61,14 +62,6 @@ var _ = SIGDescribe("Hybrid cluster network", func() { ginkgo.By("creating a windows pod and waiting for it to be running") windowsPod = f.PodClient().CreateSync(windowsPod) - ginkgo.By("verifying pod external connectivity to the internet") - - 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)) - - ginkgo.By("checking connectivity to www.google.com from Windows") - assertConsistentConnectivity(f, windowsPod.ObjectMeta.Name, windowsOS, windowsCheck("www.google.com")) - ginkgo.By("verifying pod internal connectivity to the cluster dataplane") ginkgo.By("checking connectivity from Linux to Windows") @@ -79,6 +72,28 @@ var _ = SIGDescribe("Hybrid cluster network", func() { }) + ginkgo.It("should provide Internet connection for Linux containers using DNS [Feature:Networking-DNS]", func() { + linuxPod := createTestPod(f, linuxBusyBoxImage, linuxOS) + ginkgo.By("creating a linux pod and waiting for it to be running") + linuxPod = f.PodClient().CreateSync(linuxPod) + + ginkgo.By("verifying pod external connectivity to the internet") + + 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)) + }) + + ginkgo.It("should provide Internet connection for Windows containers using DNS [Feature:Networking-DNS]", func() { + windowsPod := createTestPod(f, windowsBusyBoximage, windowsOS) + ginkgo.By("creating a windows pod and waiting for it to be running") + windowsPod = f.PodClient().CreateSync(windowsPod) + + ginkgo.By("verifying pod external connectivity to the internet") + + ginkgo.By("checking connectivity to 8.8.8.8 53 (google.com) from Windows") + assertConsistentConnectivity(f, windowsPod.ObjectMeta.Name, windowsOS, windowsCheck("www.google.com")) + }) + }) })