summaryrefslogtreecommitdiff
path: root/test/e2e/run_volume_test.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2020-05-26 00:04:46 -0400
committerMatthew Heon <mheon@redhat.com>2020-05-26 16:05:11 -0400
commite26f9eda64e4b74e1c56af0b807d37a12a1717a0 (patch)
treefc9a6578e97b0acf438af0f12343f78bffcff1ec /test/e2e/run_volume_test.go
parent1077d2d0b72d027a01080c0d3ebdb7d99a969661 (diff)
downloadpodman-e26f9eda64e4b74e1c56af0b807d37a12a1717a0.tar.gz
podman-e26f9eda64e4b74e1c56af0b807d37a12a1717a0.tar.bz2
podman-e26f9eda64e4b74e1c56af0b807d37a12a1717a0.zip
Add support for `readonly` option to --mount
This is just an alias to the `ro` option, but it's already in the manpages (and Docker) so we might as well add support for it. Fixes #6379 Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'test/e2e/run_volume_test.go')
-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))