Use IP addresses to test external connectivity

Current IPv6 e2e test for external connectivity is using a
domain address (google.com) as target.

However, the same IPv4 test uses the well known Google DNS address
8.8.8.8.

We should be coherent in the testing, this patch changes the target to use
the Google IPv6 DNS address 2001:4860:4860::8888.
This commit is contained in:
aojeagarcia
2019-03-06 18:27:22 +01:00
parent c4fd78e7c9
commit ae77399686

View File

@@ -52,9 +52,9 @@ var _ = SIGDescribe("Networking", func() {
})
It("should provide Internet connection for containers [Feature:Networking-IPv6][Experimental]", func() {
By("Running container which tries to ping google.com")
By("Running container which tries to ping 2001:4860:4860::8888")
framework.ExpectNoError(
framework.CheckConnectivityToHost(f, "", "ping-test", "google.com", framework.IPv6PingCommand, 30))
framework.CheckConnectivityToHost(f, "", "ping-test", "2001:4860:4860::8888", framework.IPv6PingCommand, 30))
})
// First test because it has no dependencies on variables created later on.