diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-02-11 05:23:34 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-11 05:23:34 -0500 |
commit | ca354f13f28896351e910da72f946e21bac2c6b0 (patch) | |
tree | 8c980caaff587953bf3c9e3c73918a62c8fe42d1 /test/e2e | |
parent | db64865164b72af7017e9d3c34e75ee3bfd8546e (diff) | |
parent | ea910fc53537d8c6f8cd1e1eaad49eaa5906c5f5 (diff) | |
download | podman-ca354f13f28896351e910da72f946e21bac2c6b0.tar.gz podman-ca354f13f28896351e910da72f946e21bac2c6b0.tar.bz2 podman-ca354f13f28896351e910da72f946e21bac2c6b0.zip |
Merge pull request #9308 from mheon/fix_6003
Rewrite copy-up to use buildah Copier
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/run_volume_test.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/e2e/run_volume_test.go b/test/e2e/run_volume_test.go index bc89b59de..19d82c974 100644 --- a/test/e2e/run_volume_test.go +++ b/test/e2e/run_volume_test.go @@ -304,6 +304,24 @@ var _ = Describe("Podman run with volumes", func() { Expect(separateVolumeSession.OutputToString()).To(Equal(baselineOutput)) }) + It("podman named volume copyup symlink", func() { + imgName := "testimg" + dockerfile := `FROM alpine +RUN touch /testfile +RUN sh -c "cd /etc/apk && ln -s ../../testfile"` + podmanTest.BuildImage(dockerfile, imgName, "false") + + baselineSession := podmanTest.Podman([]string{"run", "--rm", "-t", "-i", imgName, "ls", "/etc/apk/"}) + baselineSession.WaitWithDefaultTimeout() + Expect(baselineSession.ExitCode()).To(Equal(0)) + baselineOutput := baselineSession.OutputToString() + + outputSession := podmanTest.Podman([]string{"run", "-t", "-i", "-v", "/etc/apk/", imgName, "ls", "/etc/apk/"}) + 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() |