Merge pull request #10340 from piosz/ping_e2e

Changed ping to netcat in Internet connection test
This commit is contained in:
Quinton Hoole 2015-06-25 15:49:18 -07:00
commit f4dc2071b3

View File

@ -51,9 +51,9 @@ var _ = Describe("Networking", func() {
})
It("should provide Internet connection for containers", func() {
By("Running container which pings google.com")
podName := "ping-test"
contName := "ping-test-container"
By("Running container which tries to wget google.com")
podName := "wget-test"
contName := "wget-test-container"
pod := &api.Pod{
TypeMeta: api.TypeMeta{
Kind: "Pod",
@ -66,7 +66,7 @@ var _ = Describe("Networking", func() {
{
Name: contName,
Image: "gcr.io/google_containers/busybox",
Command: []string{"ping", "-c", "3", "-w", "10", "google.com"},
Command: []string{"wget", "-s", "google.com"},
},
},
RestartPolicy: api.RestartPolicyNever,