summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-10-30 21:18:49 +0100
committerGitHub <noreply@github.com>2019-10-30 21:18:49 +0100
commit32266d155fe156ef562d8fed27112d5644fd8c77 (patch)
tree91cce182791bbbc4e8d89ad179ea7b4eab5a68ac /test/e2e
parent9ba8dae0bfa5a5e894cf80e2ed114f6ca4bceb60 (diff)
parent3e891c1b6036f9df050cad8bf3517c7d9f82876e (diff)
downloadpodman-32266d155fe156ef562d8fed27112d5644fd8c77.tar.gz
podman-32266d155fe156ef562d8fed27112d5644fd8c77.tar.bz2
podman-32266d155fe156ef562d8fed27112d5644fd8c77.zip
Merge pull request #4305 from mheon/fix_volume_mount
Wait for `mount` command to finish when mounting volume
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/run_volume_test.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/e2e/run_volume_test.go b/test/e2e/run_volume_test.go
index c96059787..8e5de85e4 100644
--- a/test/e2e/run_volume_test.go
+++ b/test/e2e/run_volume_test.go
@@ -364,4 +364,15 @@ var _ = Describe("Podman run with volumes", func() {
Expect(session.ExitCode()).To(Equal(0))
Expect(session.OutputToString()).To(Not(ContainSubstring("noexec")))
})
+
+ It("podman mount with invalid option fails", func() {
+ volName := "testVol"
+ volCreate := podmanTest.Podman([]string{"volume", "create", "--opt", "type=tmpfs", "--opt", "device=tmpfs", "--opt", "o=invalid", volName})
+ volCreate.WaitWithDefaultTimeout()
+ Expect(volCreate.ExitCode()).To(Equal(0))
+
+ volMount := podmanTest.Podman([]string{"run", "--rm", "-v", fmt.Sprintf("%s:/tmp", volName), ALPINE, "ls"})
+ volMount.WaitWithDefaultTimeout()
+ Expect(volMount.ExitCode()).To(Not(Equal(0)))
+ })
})