summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-09-10 15:16:51 -0400
committerGitHub <noreply@github.com>2020-09-10 15:16:51 -0400
commit41bd5e298a8d16d1d43f5e9d5a25e5ec6436e87b (patch)
tree310d0e3ebd97035958096ee54ba5fb67b3e2c25e /test
parent89a348346df1f87a4cf8bc90c7f047f8ac6a074f (diff)
parent686f6eccee0c20e1dc0789bde76a38cba7535e8e (diff)
downloadpodman-41bd5e298a8d16d1d43f5e9d5a25e5ec6436e87b.tar.gz
podman-41bd5e298a8d16d1d43f5e9d5a25e5ec6436e87b.tar.bz2
podman-41bd5e298a8d16d1d43f5e9d5a25e5ec6436e87b.zip
Merge pull request #7578 from giuseppe/join-userns-reuse-mappings
libpod: read mappings when joining a container userns
Diffstat (limited to 'test')
-rw-r--r--test/e2e/run_userns_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/e2e/run_userns_test.go b/test/e2e/run_userns_test.go
index 25f8d0d15..8d860cfc3 100644
--- a/test/e2e/run_userns_test.go
+++ b/test/e2e/run_userns_test.go
@@ -277,6 +277,13 @@ var _ = Describe("Podman UserNS support", func() {
ok, _ := session.GrepString("4998")
Expect(ok).To(BeTrue())
+
+ session = podmanTest.Podman([]string{"run", "--rm", "--userns=container:" + ctrName, "--net=container:" + ctrName, "alpine", "cat", "/proc/self/uid_map"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+
+ ok, _ = session.GrepString("4998")
+ Expect(ok).To(BeTrue())
})
It("podman --user with volume", func() {