summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2020-02-26 11:09:19 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2020-02-26 15:04:31 +0100
commit418dee100b9029bbc44141138bc3d03a66da4a99 (patch)
tree8de794ee1a2084820fdcbfdadc13c8761b46a39b /test
parentdd289950de604d0e4a1ecf9833d9c56311e06d1d (diff)
downloadpodman-418dee100b9029bbc44141138bc3d03a66da4a99.tar.gz
podman-418dee100b9029bbc44141138bc3d03a66da4a99.tar.bz2
podman-418dee100b9029bbc44141138bc3d03a66da4a99.zip
spec: allow container alias name in lookup
Previously --uts=container: expected the full container ID. Closes: https://github.com/containers/libpod/issues/5289 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'test')
-rw-r--r--test/e2e/run_networking_test.go11
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"