summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-10-19 17:14:40 +0000
committerGitHub <noreply@github.com>2021-10-19 17:14:40 +0000
commit82fd2999b2cd1137bc8fe856b2b9af710e3410f4 (patch)
tree1ae7fe08dbebc8655ca43e8f03f1f3b4c8fe5521 /test
parent139dca038c74256d196375ef509d1460896394ea (diff)
parent9500e11a8f1c3380c0a6a8e6ca01df862c6d640c (diff)
downloadpodman-82fd2999b2cd1137bc8fe856b2b9af710e3410f4.tar.gz
podman-82fd2999b2cd1137bc8fe856b2b9af710e3410f4.tar.bz2
podman-82fd2999b2cd1137bc8fe856b2b9af710e3410f4.zip
Merge pull request #11937 from flouthoc/overlay-rootfs-chown
libpod: change mountpoint ownership when creating overlays on top of external rootfs
Diffstat (limited to 'test')
-rw-r--r--test/e2e/run_test.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go
index f40d4a749..8502879ff 100644
--- a/test/e2e/run_test.go
+++ b/test/e2e/run_test.go
@@ -259,6 +259,18 @@ var _ = Describe("Podman run", func() {
startsession.WaitWithDefaultTimeout()
Expect(startsession).Should(Exit(0))
Expect(startsession.OutputToString()).To(Equal("hello"))
+
+ // remove container for above test overlay-foo
+ osession = podmanTest.Podman([]string{"rm", "overlay-foo"})
+ osession.WaitWithDefaultTimeout()
+ Expect(osession).Should(Exit(0))
+
+ // Test --rootfs with an external overlay with --uidmap
+ osession = podmanTest.Podman([]string{"run", "--uidmap", "0:1000:1000", "--rm", "--security-opt", "label=disable",
+ "--rootfs", rootfs + ":O", "echo", "hello"})
+ osession.WaitWithDefaultTimeout()
+ Expect(osession).Should(Exit(0))
+ Expect(osession.OutputToString()).To(Equal("hello"))
})
It("podman run a container with --init", func() {