diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-02-26 16:58:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-26 16:58:27 +0100 |
commit | 19016f3cd88794990fb4290ea72bbfb08118235c (patch) | |
tree | 87f09a4ec72c3f88f9dcbbb6c36b46a38320e658 /test/e2e | |
parent | 75d0d48d20f7406079a641829917356ca00218e8 (diff) | |
parent | 418dee100b9029bbc44141138bc3d03a66da4a99 (diff) | |
download | podman-19016f3cd88794990fb4290ea72bbfb08118235c.tar.gz podman-19016f3cd88794990fb4290ea72bbfb08118235c.tar.bz2 podman-19016f3cd88794990fb4290ea72bbfb08118235c.zip |
Merge pull request #5332 from giuseppe/uts-lookup-container
spec: allow container alias name in lookup
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/run_networking_test.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/e2e/run_networking_test.go b/test/e2e/run_networking_test.go index 5e587b198..5be9db810 100644 --- a/test/e2e/run_networking_test.go +++ b/test/e2e/run_networking_test.go @@ -146,6 +146,17 @@ var _ = Describe("Podman run networking", func() { Expect(match).Should(BeTrue()) }) + It("podman run --net container: and --uts container:", func() { + ctrName := "ctrToJoin" + ctr1 := podmanTest.RunTopContainer(ctrName) + ctr1.WaitWithDefaultTimeout() + Expect(ctr1.ExitCode()).To(Equal(0)) + + ctr2 := podmanTest.Podman([]string{"run", "-d", "--net=container:" + ctrName, "--uts=container:" + ctrName, ALPINE, "true"}) + ctr2.WaitWithDefaultTimeout() + Expect(ctr2.ExitCode()).To(Equal(0)) + }) + It("podman run --net container: copies hosts and resolv", func() { SkipIfRootless() ctrName := "ctr1" |