summaryrefslogtreecommitdiff
path: root/test/e2e/kill_test.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-01-20 17:13:54 -0500
committerMatthew Heon <matthew.heon@pm.me>2021-02-08 13:57:57 -0500
commit7c05d5292b326f6faa0acbe1d7600336f62951c1 (patch)
tree5380bbe1105623a643fcc9427045983dcaa3a8fe /test/e2e/kill_test.go
parentefcffde620f74316492fe08f71f022e1cfab2351 (diff)
downloadpodman-7c05d5292b326f6faa0acbe1d7600336f62951c1.tar.gz
podman-7c05d5292b326f6faa0acbe1d7600336f62951c1.tar.bz2
podman-7c05d5292b326f6faa0acbe1d7600336f62951c1.zip
Switch podman stop/kill/wait handlers to use abi
Change API Handlers to use the same functions that the local podman uses. At the same time: implement remote API for --all and --ignore flags for podman stop implement remote API for --all flags for podman stop Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'test/e2e/kill_test.go')
-rw-r--r--test/e2e/kill_test.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/e2e/kill_test.go b/test/e2e/kill_test.go
index 8b31cae72..c1c1b003e 100644
--- a/test/e2e/kill_test.go
+++ b/test/e2e/kill_test.go
@@ -167,4 +167,20 @@ var _ = Describe("Podman kill", func() {
Expect(wait.ExitCode()).To(BeZero())
})
+ It("podman stop --all", func() {
+ session := podmanTest.RunTopContainer("")
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ Expect(podmanTest.NumberOfContainersRunning()).To(Equal(1))
+
+ session = podmanTest.RunTopContainer("")
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ Expect(podmanTest.NumberOfContainersRunning()).To(Equal(2))
+
+ session = podmanTest.Podman([]string{"kill", "--all"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ Expect(podmanTest.NumberOfContainersRunning()).To(Equal(0))
+ })
})