diff options
author | openshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com> | 2022-06-14 18:55:49 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-14 18:55:49 +0000 |
commit | 4018a9575e616ebcb3e5232c5d7c81ad6cadfc99 (patch) | |
tree | 590b5e49c1009cc6601a2856e3229965395fb3d6 /test | |
parent | a22e270ef62efafa598978b179afa22dc0813101 (diff) | |
parent | fcfcd4cdb1b19fe00f6769f33e6704a7f8700d40 (diff) | |
download | podman-4018a9575e616ebcb3e5232c5d7c81ad6cadfc99.tar.gz podman-4018a9575e616ebcb3e5232c5d7c81ad6cadfc99.tar.bz2 podman-4018a9575e616ebcb3e5232c5d7c81ad6cadfc99.zip |
Merge pull request #14582 from giuseppe/no-create-containerenv-if-run-volume
container: do not create .containerenv with -v SRC:/run
Diffstat (limited to 'test')
-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 1c0480407..f31e62e42 100644 --- a/test/e2e/run_volume_test.go +++ b/test/e2e/run_volume_test.go @@ -908,6 +908,20 @@ USER testuser`, fedoraMinimal) Expect(session.OutputToString()).To(Equal(perms)) }) + It("podman run with -v $SRC:/run does not create /run/.containerenv", func() { + mountSrc := filepath.Join(podmanTest.TempDir, "vol-test1") + err := os.MkdirAll(mountSrc, 0755) + Expect(err).To(BeNil()) + + session := podmanTest.Podman([]string{"run", "-v", mountSrc + ":/run", ALPINE, "true"}) + session.WaitWithDefaultTimeout() + Expect(session).Should(Exit(0)) + + // the file should not have been created + _, err = os.Stat(filepath.Join(mountSrc, ".containerenv")) + Expect(err).To(Not(BeNil())) + }) + It("podman volume with uid and gid works", func() { volName := "testVol" volCreate := podmanTest.Podman([]string{"volume", "create", "--opt", "o=uid=1000", volName}) |