diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2018-11-28 07:39:37 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-28 07:39:37 -0800 |
commit | 7ae37dcafced4da7fd1e65e6ec41a07220c06542 (patch) | |
tree | 78299fb76387567657447da2999f127e46a4b82f /test/e2e/stop_test.go | |
parent | effd63d6d5c2541f09745261a1e9205fa531e526 (diff) | |
parent | 841f47d728fd1049456012a03b9b4e66407f9489 (diff) | |
download | podman-7ae37dcafced4da7fd1e65e6ec41a07220c06542.tar.gz podman-7ae37dcafced4da7fd1e65e6ec41a07220c06542.tar.bz2 podman-7ae37dcafced4da7fd1e65e6ec41a07220c06542.zip |
Merge pull request #1879 from mheon/stop_stopped_is_valid
Stopping a stopped container is not an error for Podman
Diffstat (limited to 'test/e2e/stop_test.go')
-rw-r--r-- | test/e2e/stop_test.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/e2e/stop_test.go b/test/e2e/stop_test.go index b172cd81e..5c229b9b4 100644 --- a/test/e2e/stop_test.go +++ b/test/e2e/stop_test.go @@ -57,6 +57,20 @@ var _ = Describe("Podman stop", func() { Expect(session.ExitCode()).To(Equal(0)) }) + It("podman stop stopped container", func() { + session := podmanTest.RunTopContainer("test1") + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + + session2 := podmanTest.Podman([]string{"stop", "test1"}) + session2.WaitWithDefaultTimeout() + Expect(session2.ExitCode()).To(Equal(0)) + + session3 := podmanTest.Podman([]string{"stop", "test1"}) + session3.WaitWithDefaultTimeout() + Expect(session3.ExitCode()).To(Equal(0)) + }) + It("podman stop all containers", func() { session := podmanTest.RunTopContainer("test1") session.WaitWithDefaultTimeout() |