diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-05-22 00:10:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-22 00:10:40 +0200 |
commit | 488b698040e6df1c8bb353a3e32c6e446a14e2d4 (patch) | |
tree | 14699b1c5fc4840c08525603ba674c232d4ca328 /test/e2e/run_volume_test.go | |
parent | 1cf9a1bdba195fea77a002d8b51cf8f965b861fb (diff) | |
parent | 43f28cdc166f467f3df0f553f696ecaaf0881979 (diff) | |
download | podman-488b698040e6df1c8bb353a3e32c6e446a14e2d4.tar.gz podman-488b698040e6df1c8bb353a3e32c6e446a14e2d4.tar.bz2 podman-488b698040e6df1c8bb353a3e32c6e446a14e2d4.zip |
Merge pull request #3177 from mheon/duplicate_volumes
When superceding mounts, check for opposite types
Diffstat (limited to 'test/e2e/run_volume_test.go')
-rw-r--r-- | test/e2e/run_volume_test.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/e2e/run_volume_test.go b/test/e2e/run_volume_test.go index e27b2aa55..d031ca143 100644 --- a/test/e2e/run_volume_test.go +++ b/test/e2e/run_volume_test.go @@ -104,4 +104,18 @@ var _ = Describe("Podman run with volumes", func() { session.WaitWithDefaultTimeout() Expect(session.ExitCode()).To(Equal(125)) }) + + It("podman run with conflict between image volume and user mount succeeds", func() { + podmanTest.RestoreArtifact(redis) + mountPath := filepath.Join(podmanTest.TempDir, "secrets") + err := os.Mkdir(mountPath, 0755) + Expect(err).To(BeNil()) + testFile := filepath.Join(mountPath, "test1") + f, err := os.Create(testFile) + f.Close() + Expect(err).To(BeNil()) + session := podmanTest.Podman([]string{"run", "-v", fmt.Sprintf("%s:/data", mountPath), redis, "ls", "/data/test1"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + }) }) |