summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-06-15 16:13:13 -0400
committerGitHub <noreply@github.com>2021-06-15 16:13:13 -0400
commite405f1205378ab35d4e37eed3b94a683c26bb818 (patch)
treeb554e084291141a46804d861fc68a4d906959ac9 /test
parentb422a4eb49182f6b90dae9ed041546cc46cc59db (diff)
parent81eb71fe36db14f82452b0ded176095b63cb4a4e (diff)
downloadpodman-e405f1205378ab35d4e37eed3b94a683c26bb818.tar.gz
podman-e405f1205378ab35d4e37eed3b94a683c26bb818.tar.bz2
podman-e405f1205378ab35d4e37eed3b94a683c26bb818.zip
Merge pull request #10531 from rhatdan/volume
Fix permissions on initially created named volumes
Diffstat (limited to 'test')
-rw-r--r--test/e2e/run_test.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go
index 58538b689..cae1b5aad 100644
--- a/test/e2e/run_test.go
+++ b/test/e2e/run_test.go
@@ -904,6 +904,18 @@ USER bin`, BB)
Expect(session.ExitCode()).To(Equal(100))
})
+ It("podman run with named volume", func() {
+ session := podmanTest.Podman([]string{"run", "--rm", ALPINE, "stat", "-c", "%a %Y", "/var/tmp"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ perms := session.OutputToString()
+
+ session = podmanTest.Podman([]string{"run", "--rm", "-v", "test:/var/tmp", ALPINE, "stat", "-c", "%a %Y", "/var/tmp"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ Expect(session.OutputToString()).To(Equal(perms))
+ })
+
It("podman run with built-in volume image", func() {
session := podmanTest.Podman([]string{"run", "--rm", redis, "ls"})
session.WaitWithDefaultTimeout()