summaryrefslogtreecommitdiff
path: root/test/e2e/pod_rm_test.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-10-20 13:20:12 +0000
committerGitHub <noreply@github.com>2021-10-20 13:20:12 +0000
commiteba281c3e0e69533427d3eb5c66c60b5ca038c1b (patch)
tree5a12ebc1a7c40f8967f1225b2ec730ea29d8f433 /test/e2e/pod_rm_test.go
parent97f051f65769fed32b3c497b3f484667400c66a9 (diff)
parent4f7a431daf97f33a40609bd4823ed92ab8aa9ca4 (diff)
downloadpodman-eba281c3e0e69533427d3eb5c66c60b5ca038c1b.tar.gz
podman-eba281c3e0e69533427d3eb5c66c60b5ca038c1b.tar.bz2
podman-eba281c3e0e69533427d3eb5c66c60b5ca038c1b.zip
Merge pull request #11851 from cdoern/podRm
Pod Rm Infra Handling Improvements
Diffstat (limited to 'test/e2e/pod_rm_test.go')
-rw-r--r--test/e2e/pod_rm_test.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/e2e/pod_rm_test.go b/test/e2e/pod_rm_test.go
index 6a8ac72fb..7dc3dfa7f 100644
--- a/test/e2e/pod_rm_test.go
+++ b/test/e2e/pod_rm_test.go
@@ -301,4 +301,21 @@ var _ = Describe("Podman pod rm", func() {
Expect(session).Should(Exit(0))
Expect(podmanTest.NumberOfContainersRunning()).To(Equal(0))
})
+
+ It("podman pod rm with exited containers", func() {
+ _, ec, podid := podmanTest.CreatePod(nil)
+ Expect(ec).To(Equal(0))
+
+ session := podmanTest.Podman([]string{"run", "--pod", podid, ALPINE})
+ session.WaitWithDefaultTimeout()
+ Expect(session).Should(Exit(0))
+
+ session = podmanTest.Podman([]string{"run", "--pod", podid, ALPINE})
+ session.WaitWithDefaultTimeout()
+ Expect(session).Should(Exit(0))
+
+ result := podmanTest.Podman([]string{"pod", "rm", podid})
+ result.WaitWithDefaultTimeout()
+ Expect(result).Should(Exit(0))
+ })
})