summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-05-29 08:26:05 -0400
committerGitHub <noreply@github.com>2020-05-29 08:26:05 -0400
commit78c38460eb8ba9190d414f2da6a1414990cc6cfd (patch)
tree2752ef254a80fad6844043210ee9c168832fe90f /test/e2e
parent8e048b23fecbcf2140d1f0234d6067379d915953 (diff)
parente26f9eda64e4b74e1c56af0b807d37a12a1717a0 (diff)
downloadpodman-78c38460eb8ba9190d414f2da6a1414990cc6cfd.tar.gz
podman-78c38460eb8ba9190d414f2da6a1414990cc6cfd.tar.bz2
podman-78c38460eb8ba9190d414f2da6a1414990cc6cfd.zip
Merge pull request #6380 from mheon/fix_mount_readonly
Add support for `readonly` option to --mount
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/run_volume_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/e2e/run_volume_test.go b/test/e2e/run_volume_test.go
index 58091ff68..7cd69f738 100644
--- a/test/e2e/run_volume_test.go
+++ b/test/e2e/run_volume_test.go
@@ -106,6 +106,11 @@ var _ = Describe("Podman run with volumes", func() {
Expect(session.ExitCode()).To(Equal(0))
Expect(session.OutputToString()).To(ContainSubstring(dest + " ro"))
+ session = podmanTest.Podman([]string{"run", "--rm", "--mount", mount + ",readonly", ALPINE, "grep", dest, "/proc/self/mountinfo"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ Expect(session.OutputToString()).To(ContainSubstring(dest + " ro"))
+
session = podmanTest.Podman([]string{"run", "--rm", "--mount", mount + ",shared", ALPINE, "grep", dest, "/proc/self/mountinfo"})
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0))