mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 03:33:56 +00:00
Merge pull request #10340 from piosz/ping_e2e
Changed ping to netcat in Internet connection test
This commit is contained in:
commit
f4dc2071b3
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user