diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-11-25 14:17:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-25 14:17:45 +0100 |
commit | 9fb0adf479b6655d93316ece0cd702c4d4920fe1 (patch) | |
tree | 1d3289f8c48191ee57c803559d54564f81530ca7 /test/e2e/stop_test.go | |
parent | 6187e724353f2d68943f912e0d8fc1d3d3c1f549 (diff) | |
parent | a3d13fb286c39a2d9195b70e4265e5ac0deb6fd3 (diff) | |
download | podman-9fb0adf479b6655d93316ece0cd702c4d4920fe1.tar.gz podman-9fb0adf479b6655d93316ece0cd702c4d4920fe1.tar.bz2 podman-9fb0adf479b6655d93316ece0cd702c4d4920fe1.zip |
Merge pull request #4540 from vrothberg/systemd-improvements
podman rm/stop: add --allow-missing flag
Diffstat (limited to 'test/e2e/stop_test.go')
-rw-r--r-- | test/e2e/stop_test.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/e2e/stop_test.go b/test/e2e/stop_test.go index c76cccfef..54c64d66b 100644 --- a/test/e2e/stop_test.go +++ b/test/e2e/stop_test.go @@ -40,6 +40,21 @@ var _ = Describe("Podman stop", func() { Expect(session.ExitCode()).To(Equal(125)) }) + It("podman stop --ignore bogus container", func() { + SkipIfRemote() + + session := podmanTest.RunTopContainer("") + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + cid := session.OutputToString() + + session = podmanTest.Podman([]string{"stop", "--ignore", "foobar", cid}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + output := session.OutputToString() + Expect(output).To(ContainSubstring(cid)) + }) + It("podman stop container by id", func() { session := podmanTest.RunTopContainer("") session.WaitWithDefaultTimeout() |