summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-10-28 18:52:24 +0000
committerGitHub <noreply@github.com>2021-10-28 18:52:24 +0000
commitf7ca0457378f8e640d63995965ef1b1e2f0d8eac (patch)
tree8aa3860f69d751bfb24bad72976afeb8f3cb1461 /test
parentd2147bada6f68857ec68365943e003b327456d6b (diff)
parent4e9e6f21ff1f600191f661c9102149bb49067dff (diff)
downloadpodman-f7ca0457378f8e640d63995965ef1b1e2f0d8eac.tar.gz
podman-f7ca0457378f8e640d63995965ef1b1e2f0d8eac.tar.bz2
podman-f7ca0457378f8e640d63995965ef1b1e2f0d8eac.zip
Merge pull request #12124 from giuseppe/allow-devpts-options
volumes: allow more options for devpts
Diffstat (limited to 'test')
-rw-r--r--test/e2e/run_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go
index 2e0f626d0..95660bfc9 100644
--- a/test/e2e/run_test.go
+++ b/test/e2e/run_test.go
@@ -1198,6 +1198,14 @@ USER mail`, BB)
Expect(session.OutputToString()).To(ContainSubstring("devpts"))
})
+ It("podman run --mount type=devpts,target=/dev/pts with uid, gid and mode", func() {
+ // runc doesn't seem to honor uid= so avoid testing it
+ session := podmanTest.Podman([]string{"run", "-t", "--mount", "type=devpts,target=/dev/pts,uid=1000,gid=1001,mode=123", fedoraMinimal, "stat", "-c%g-%a", "/dev/pts/0"})
+ session.WaitWithDefaultTimeout()
+ Expect(session).Should(Exit(0))
+ Expect(session.OutputToString()).To(ContainSubstring("1001-123"))
+ })
+
It("podman run --pod automatically", func() {
session := podmanTest.Podman([]string{"run", "-d", "--pod", "new:foobar", ALPINE, "nc", "-l", "-p", "8686"})
session.WaitWithDefaultTimeout()