summaryrefslogtreecommitdiff
path: root/test/e2e/run_userns_test.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-06-24 09:21:41 -0400
committerGitHub <noreply@github.com>2020-06-24 09:21:41 -0400
commit3df30ef358e3211d4d6812ab08e9ceb1e31a771a (patch)
tree0dee6fb99d89cd17fb9c159f0a87e55147e64610 /test/e2e/run_userns_test.go
parent0d26b8f24babcd847a7412907e622514925544a4 (diff)
parent370195cf784967014dceee1f3da06f79170f033a (diff)
downloadpodman-3df30ef358e3211d4d6812ab08e9ceb1e31a771a.tar.gz
podman-3df30ef358e3211d4d6812ab08e9ceb1e31a771a.tar.bz2
podman-3df30ef358e3211d4d6812ab08e9ceb1e31a771a.zip
Merge pull request #6743 from giuseppe/specify-mappings-to-storage
libpod: specify mappings to the storage
Diffstat (limited to 'test/e2e/run_userns_test.go')
-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 5b9a99daa..be0981408 100644
--- a/test/e2e/run_userns_test.go
+++ b/test/e2e/run_userns_test.go
@@ -89,6 +89,13 @@ var _ = Describe("Podman UserNS support", func() {
Expect(ok).To(BeTrue())
})
+ It("podman --userns=keep-id root owns /usr", func() {
+ session := podmanTest.Podman([]string{"run", "--userns=keep-id", "alpine", "stat", "-c%u", "/usr"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ Expect(session.OutputToString()).To(Equal("0"))
+ })
+
It("podman --userns=keep-id --user root:root", func() {
session := podmanTest.Podman([]string{"run", "--userns=keep-id", "--user", "root:root", "alpine", "id", "-u"})
session.WaitWithDefaultTimeout()