aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-05-25 16:19:34 -0400
committerGitHub <noreply@github.com>2022-05-25 16:19:34 -0400
commit3944d8c142c59a293069fda5254e0088662b8d7b (patch)
tree7929f25201c14a9f4d5a963a905e072f86650633 /test
parente11feb230923a169c1e235552afa2f7bec7f0fff (diff)
parent9fcfea7643b243a3ad691daaf07fe358f85491cb (diff)
downloadpodman-3944d8c142c59a293069fda5254e0088662b8d7b.tar.gz
podman-3944d8c142c59a293069fda5254e0088662b8d7b.tar.bz2
podman-3944d8c142c59a293069fda5254e0088662b8d7b.zip
Merge pull request #14329 from mheon/fixmes_1
First batch of resolutions to FIXMEs
Diffstat (limited to 'test')
-rw-r--r--test/e2e/kill_test.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/e2e/kill_test.go b/test/e2e/kill_test.go
index 552a7c15d..2a9a86729 100644
--- a/test/e2e/kill_test.go
+++ b/test/e2e/kill_test.go
@@ -128,6 +128,26 @@ var _ = Describe("Podman kill", func() {
Expect(podmanTest.NumberOfContainersRunning()).To(Equal(0))
})
+ It("podman kill paused container", func() {
+ ctrName := "testctr"
+ session := podmanTest.RunTopContainer(ctrName)
+ session.WaitWithDefaultTimeout()
+ Expect(session).Should(Exit(0))
+
+ pause := podmanTest.Podman([]string{"pause", ctrName})
+ pause.WaitWithDefaultTimeout()
+ Expect(pause).Should(Exit(0))
+
+ kill := podmanTest.Podman([]string{"kill", ctrName})
+ kill.WaitWithDefaultTimeout()
+ Expect(kill).Should(Exit(0))
+
+ inspect := podmanTest.Podman([]string{"inspect", "-f", "{{.State.Status}}", ctrName})
+ inspect.WaitWithDefaultTimeout()
+ Expect(inspect).Should(Exit(0))
+ Expect(inspect.OutputToString()).To(Or(Equal("stopped"), Equal("exited")))
+ })
+
It("podman kill --cidfile", func() {
tmpDir, err := ioutil.TempDir("", "")
Expect(err).To(BeNil())