summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-02-17 13:18:33 -0500
committerGitHub <noreply@github.com>2021-02-17 13:18:33 -0500
commitd48f4a0e1f3d24fb4f98351b5bdd31daa34c0fb6 (patch)
treeb1212d8483f5a4d641f129cbbb273f6be6574271 /test/e2e
parent6ea9ff2f21b583e4bc61a72d97c889ee7057a32e (diff)
parent759fc933438dead681a0c4f3d9e17826b0dc18cc (diff)
downloadpodman-d48f4a0e1f3d24fb4f98351b5bdd31daa34c0fb6.tar.gz
podman-d48f4a0e1f3d24fb4f98351b5bdd31daa34c0fb6.tar.bz2
podman-d48f4a0e1f3d24fb4f98351b5bdd31daa34c0fb6.zip
Merge pull request #9383 from mheon/fix_copyup_empty
Fix an issue where copyup could fail with ENOENT
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/run_volume_test.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/e2e/run_volume_test.go b/test/e2e/run_volume_test.go
index 19d82c974..91d8f15f4 100644
--- a/test/e2e/run_volume_test.go
+++ b/test/e2e/run_volume_test.go
@@ -322,6 +322,18 @@ RUN sh -c "cd /etc/apk && ln -s ../../testfile"`
Expect(outputSession.OutputToString()).To(Equal(baselineOutput))
})
+ It("podman named volume copyup empty directory", func() {
+ baselineSession := podmanTest.Podman([]string{"run", "--rm", "-t", "-i", ALPINE, "ls", "/srv"})
+ baselineSession.WaitWithDefaultTimeout()
+ Expect(baselineSession.ExitCode()).To(Equal(0))
+ baselineOutput := baselineSession.OutputToString()
+
+ outputSession := podmanTest.Podman([]string{"run", "-t", "-i", "-v", "/srv", ALPINE, "ls", "/srv"})
+ outputSession.WaitWithDefaultTimeout()
+ Expect(outputSession.ExitCode()).To(Equal(0))
+ Expect(outputSession.OutputToString()).To(Equal(baselineOutput))
+ })
+
It("podman read-only tmpfs conflict with volume", func() {
session := podmanTest.Podman([]string{"run", "--rm", "-t", "-i", "--read-only", "-v", "tmp_volume:" + dest, ALPINE, "touch", dest + "/a"})
session.WaitWithDefaultTimeout()