summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-03-22 02:02:34 -0700
committerGitHub <noreply@github.com>2019-03-22 02:02:34 -0700
commit54b901fdda9b4ad21d866a12e3e13567d7f8a908 (patch)
tree04ffcf5979fc8261e40d780843906efde7f9065b /test/e2e
parent68e3df37248da85f58662c00e0934d1359f0fdc0 (diff)
parent7f6f2f3f4a764f8e566752e61092254bd285424b (diff)
downloadpodman-54b901fdda9b4ad21d866a12e3e13567d7f8a908.tar.gz
podman-54b901fdda9b4ad21d866a12e3e13567d7f8a908.tar.bz2
podman-54b901fdda9b4ad21d866a12e3e13567d7f8a908.zip
Merge pull request #2716 from giuseppe/fix-volumes-userns
userns: mount the volumes from the intermediate namespace
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/run_userns_test.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/e2e/run_userns_test.go b/test/e2e/run_userns_test.go
index c6c94d2f6..5c38a8950 100644
--- a/test/e2e/run_userns_test.go
+++ b/test/e2e/run_userns_test.go
@@ -69,6 +69,21 @@ var _ = Describe("Podman UserNS support", func() {
Expect(ok).To(BeTrue())
})
+ It("podman uidmapping and gidmapping with a volume", func() {
+ if os.Getenv("SKIP_USERNS") != "" {
+ Skip("Skip userns tests.")
+ }
+ if _, err := os.Stat("/proc/self/uid_map"); err != nil {
+ Skip("User namespaces not supported.")
+ }
+
+ session := podmanTest.Podman([]string{"run", "--uidmap=0:1:70000", "--gidmap=0:20000:70000", "-v", "my-foo-volume:/foo:Z", "busybox", "echo", "hello"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ ok, _ := session.GrepString("hello")
+ Expect(ok).To(BeTrue())
+ })
+
It("podman uidmapping and gidmapping --net=host", func() {
if os.Getenv("SKIP_USERNS") != "" {
Skip("Skip userns tests.")