diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-06-07 14:46:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-07 14:46:35 -0400 |
commit | f459c197bdce6c6d6056c7214ce186f360599c94 (patch) | |
tree | 461f0c546a886539e840093ea318627cbf66ec7e /test/e2e/pod_create_test.go | |
parent | 96578a26c343aac0f7dfbbf16d9da509cded9ff3 (diff) | |
parent | ed1e4f94fb35bc727a921c28cea3ba0f94fc9121 (diff) | |
download | podman-f459c197bdce6c6d6056c7214ce186f360599c94.tar.gz podman-f459c197bdce6c6d6056c7214ce186f360599c94.tar.bz2 podman-f459c197bdce6c6d6056c7214ce186f360599c94.zip |
Merge pull request #14512 from cdoern/infraInherit
Infra Inheritance patch
Diffstat (limited to 'test/e2e/pod_create_test.go')
-rw-r--r-- | test/e2e/pod_create_test.go | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/e2e/pod_create_test.go b/test/e2e/pod_create_test.go index dedb1caeb..4919cc670 100644 --- a/test/e2e/pod_create_test.go +++ b/test/e2e/pod_create_test.go @@ -1112,4 +1112,26 @@ ENTRYPOINT ["sleep","99999"] }) + It("podman pod create infra inheritance test", func() { + volName := "testVol1" + volCreate := podmanTest.Podman([]string{"volume", "create", volName}) + volCreate.WaitWithDefaultTimeout() + Expect(volCreate).Should(Exit(0)) + + session := podmanTest.Podman([]string{"pod", "create", "-v", volName + ":/vol1"}) + session.WaitWithDefaultTimeout() + Expect(session).Should(Exit(0)) + + volName2 := "testVol2" + volCreate = podmanTest.Podman([]string{"volume", "create", volName2}) + volCreate.WaitWithDefaultTimeout() + Expect(volCreate).Should(Exit(0)) + + session = podmanTest.Podman([]string{"run", "--pod", session.OutputToString(), "-v", volName2 + ":/vol2", ALPINE, "mount"}) + session.WaitWithDefaultTimeout() + Expect(session).Should(Exit(0)) + Expect(session.OutputToString()).Should(ContainSubstring("/vol1")) + Expect(session.OutputToString()).Should(ContainSubstring("/vol2")) + }) + }) |