Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Daichi Sakaue <[email protected]>
  • Loading branch information
yokaze committed Aug 1, 2023
1 parent 8b8621d commit dba338c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion v2/e2e/coil_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,21 @@ var _ = Describe("Coil", func() {
go runOnNode("coil-control-plane", "/usr/local/bin/echotest")
time.Sleep(100 * time.Millisecond)

By("debug 1")
resp2 := kubectlSafe(nil, "exec", "nat-client", "--", "ls")
Expect(resp2).NotTo(BeEmpty())

By("debug 2")
resp3 := kubectlSafe(nil, "exec", "nat-client", "--", "which", "curl")
Expect(resp3).NotTo(BeEmpty())

By("debug 3")
resp4 := kubectlSafe([]byte("test"), "exec", "-i", "nat-client", "--", "cat", "-")
Expect(resp4).NotTo(BeEmpty())

By("sending and receiving HTTP request from nat-client")
data := make([]byte, 1<<20) // 1 MiB
resp := kubectlSafe(data, "exec", "-i", "nat-client", "--", "curl", "-sf", "-T", "-", fakeURL)
resp := kubectlSafe(data, "exec", "-i", "nat-client", "--", "curl", "-sfvvv", "-T", "-", fakeURL)
Expect(resp).To(HaveLen(1 << 20))

By("running the same test 100 times")
Expand Down

0 comments on commit dba338c

Please sign in to comment.