summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-02-16 16:08:26 -0500
committerGitHub <noreply@github.com>2021-02-16 16:08:26 -0500
commitfb6f1439467544a5fa9ea599a3ef6ab5c721a3c7 (patch)
tree77f1f313bdb1e9802a8172d56d7ec45b3db509d1 /test
parent7fb347a3d40afeb4c565c2066fbade7f003e3e50 (diff)
parent958f90143199bbc4b5dcd7ad4fffdd56d3f6fbc3 (diff)
downloadpodman-fb6f1439467544a5fa9ea599a3ef6ab5c721a3c7.tar.gz
podman-fb6f1439467544a5fa9ea599a3ef6ab5c721a3c7.tar.bz2
podman-fb6f1439467544a5fa9ea599a3ef6ab5c721a3c7.zip
Merge pull request #9401 from rhatdan/stop
podman kill should report rawInput not container id
Diffstat (limited to 'test')
-rw-r--r--test/e2e/kill_test.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/e2e/kill_test.go b/test/e2e/kill_test.go
index c1c1b003e..6d6fe788b 100644
--- a/test/e2e/kill_test.go
+++ b/test/e2e/kill_test.go
@@ -51,6 +51,19 @@ var _ = Describe("Podman kill", func() {
Expect(podmanTest.NumberOfContainersRunning()).To(Equal(0))
})
+ It("podman container kill a running container by short id", func() {
+ session := podmanTest.RunTopContainer("")
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ cid := session.OutputToString()
+
+ result := podmanTest.Podman([]string{"container", "kill", cid[:5]})
+ result.WaitWithDefaultTimeout()
+ Expect(result.ExitCode()).To(Equal(0))
+ Expect(result.OutputToString()).To(Equal(cid[:5]))
+ Expect(podmanTest.NumberOfContainersRunning()).To(Equal(0))
+ })
+
It("podman kill a running container by id", func() {
session := podmanTest.RunTopContainer("")
session.WaitWithDefaultTimeout()