summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-08-23 11:04:31 -0400
committerGitHub <noreply@github.com>2022-08-23 11:04:31 -0400
commit8a32e516f7a29766b8aa54991d1b3987acd479bf (patch)
treeecf0ba235129d473bd9eef8b05954fe692087bb4 /test
parent5948320951e17a60da848ba16e3c7aed1676129a (diff)
parent53369aaa1575caa652461d3671713577fa0ac291 (diff)
downloadpodman-8a32e516f7a29766b8aa54991d1b3987acd479bf.tar.gz
podman-8a32e516f7a29766b8aa54991d1b3987acd479bf.tar.bz2
podman-8a32e516f7a29766b8aa54991d1b3987acd479bf.zip
Merge pull request #15415 from cdoern/clone
pass environment variables to container clone
Diffstat (limited to 'test')
-rw-r--r--test/e2e/container_clone_test.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/e2e/container_clone_test.go b/test/e2e/container_clone_test.go
index d7641e42a..1ba5de1a3 100644
--- a/test/e2e/container_clone_test.go
+++ b/test/e2e/container_clone_test.go
@@ -293,4 +293,20 @@ var _ = Describe("Podman container clone", func() {
Expect(ok).To(BeTrue())
})
+
+ It("podman container clone env test", func() {
+ session := podmanTest.Podman([]string{"run", "--name", "env_ctr", "-e", "ENV_TEST=123", ALPINE, "printenv", "ENV_TEST"})
+ session.WaitWithDefaultTimeout()
+ Expect(session).Should(Exit(0))
+
+ session = podmanTest.Podman([]string{"container", "clone", "env_ctr"})
+ session.WaitWithDefaultTimeout()
+ Expect(session).Should(Exit(0))
+
+ session = podmanTest.Podman([]string{"start", "-a", "env_ctr-clone"})
+ session.WaitWithDefaultTimeout()
+ Expect(session).Should(Exit(0))
+ Expect(session.OutputToString()).Should(ContainSubstring("123"))
+
+ })
})