diff options
author | openshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com> | 2022-06-28 13:57:16 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-28 13:57:16 +0000 |
commit | 8267cd3c514ed1e8f41a7e4b6017f11400f134aa (patch) | |
tree | 19f30756ceda7e152ef3cdefaf5627b746e2a403 /test/e2e | |
parent | 9c5d97b5c5b583fc3b3c8af52bf3e1b6a5c2cb90 (diff) | |
parent | aada13f244d52dad9b6a1cfaa725e9d36d75a858 (diff) | |
download | podman-8267cd3c514ed1e8f41a7e4b6017f11400f134aa.tar.gz podman-8267cd3c514ed1e8f41a7e4b6017f11400f134aa.tar.bz2 podman-8267cd3c514ed1e8f41a7e4b6017f11400f134aa.zip |
Merge pull request #14734 from giuseppe/copyup-switch-order
volume: add two new options copy and nocopy
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/run_volume_test.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/e2e/run_volume_test.go b/test/e2e/run_volume_test.go index edb657695..8cc2a68de 100644 --- a/test/e2e/run_volume_test.go +++ b/test/e2e/run_volume_test.go @@ -452,6 +452,14 @@ var _ = Describe("Podman run with volumes", func() { separateVolumeSession.WaitWithDefaultTimeout() Expect(separateVolumeSession).Should(Exit(0)) Expect(separateVolumeSession.OutputToString()).To(Equal(baselineOutput)) + + copySession := podmanTest.Podman([]string{"run", "--rm", "-v", "testvol3:/etc/apk:copy", ALPINE, "stat", "-c", "%h", "/etc/apk/arch"}) + copySession.WaitWithDefaultTimeout() + Expect(copySession).Should(Exit(0)) + + noCopySession := podmanTest.Podman([]string{"run", "--rm", "-v", "testvol4:/etc/apk:nocopy", ALPINE, "stat", "-c", "%h", "/etc/apk/arch"}) + noCopySession.WaitWithDefaultTimeout() + Expect(noCopySession).Should(Exit(1)) }) It("podman named volume copyup symlink", func() { |