aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-06-19 20:16:08 +0200
committerGitHub <noreply@github.com>2019-06-19 20:16:08 +0200
commit4d470c73ca9f441ced162431270977b967b547a1 (patch)
treeda74a6afa305e077cb366df876ec9ea7bd79d28b /test
parent360adac37443bdf50959e19e2e5a7e7608348249 (diff)
parent30f24bb76051f403c662ef4a317b50dd1b3b045a (diff)
downloadpodman-4d470c73ca9f441ced162431270977b967b547a1.tar.gz
podman-4d470c73ca9f441ced162431270977b967b547a1.tar.bz2
podman-4d470c73ca9f441ced162431270977b967b547a1.zip
Merge pull request #3369 from mheon/add_cached_delegated
Add support for cached, delegated mounts
Diffstat (limited to 'test')
-rw-r--r--test/e2e/run_volume_test.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/e2e/run_volume_test.go b/test/e2e/run_volume_test.go
index d89c80909..9e160e73c 100644
--- a/test/e2e/run_volume_test.go
+++ b/test/e2e/run_volume_test.go
@@ -63,6 +63,24 @@ var _ = Describe("Podman run with volumes", func() {
Expect(found).Should(BeTrue())
Expect(matches[0]).To(ContainSubstring("rw"))
Expect(matches[0]).To(ContainSubstring("shared"))
+
+ // Cached is ignored
+ session = podmanTest.Podman([]string{"run", "--rm", "-v", fmt.Sprintf("%s:/run/test:cached", mountPath), ALPINE, "grep", "/run/test", "/proc/self/mountinfo"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ found, matches = session.GrepString("/run/test")
+ Expect(found).Should(BeTrue())
+ Expect(matches[0]).To(ContainSubstring("rw"))
+ Expect(matches[0]).To(Not(ContainSubstring("cached")))
+
+ // Delegated is ignored
+ session = podmanTest.Podman([]string{"run", "--rm", "-v", fmt.Sprintf("%s:/run/test:delegated", mountPath), ALPINE, "grep", "/run/test", "/proc/self/mountinfo"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ found, matches = session.GrepString("/run/test")
+ Expect(found).Should(BeTrue())
+ Expect(matches[0]).To(ContainSubstring("rw"))
+ Expect(matches[0]).To(Not(ContainSubstring("delegated")))
})
It("podman run with --mount flag", func() {