summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-03-14 15:59:03 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-03-15 17:45:11 +0000
commitd176e9f781148459fd56fc39cadcc229e565252b (patch)
treef28ab009dac63da81d9731ff53a5601225f99c60 /test/e2e
parent55f2f58145e9871c299456cff8285a6d2595da86 (diff)
downloadpodman-d176e9f781148459fd56fc39cadcc229e565252b.tar.gz
podman-d176e9f781148459fd56fc39cadcc229e565252b.tar.bz2
podman-d176e9f781148459fd56fc39cadcc229e565252b.zip
Fix broken 'podman start' test
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #482 Approved by: baude
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/start_test.go11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/e2e/start_test.go b/test/e2e/start_test.go
index 66f993bc7..6282d6c84 100644
--- a/test/e2e/start_test.go
+++ b/test/e2e/start_test.go
@@ -56,7 +56,7 @@ var _ = Describe("Podman start", func() {
session := podmanTest.Podman([]string{"create", "-d", "--name", "foobar99", ALPINE, "ls"})
session.WaitWithDefaultTimeout()
cid1 := session.OutputToString()
- session2 := podmanTest.Podman([]string{"create", "-d", "--name", "foobar99", ALPINE, "ls"})
+ session2 := podmanTest.Podman([]string{"create", "-d", "--name", "foobar100", ALPINE, "ls"})
session2.WaitWithDefaultTimeout()
cid2 := session2.OutputToString()
session = podmanTest.Podman([]string{"start", cid1, cid2})
@@ -64,6 +64,15 @@ var _ = Describe("Podman start", func() {
Expect(session.ExitCode()).To(Equal(0))
})
+ It("podman start multiple containers with bogus", func() {
+ session := podmanTest.Podman([]string{"create", "-d", "--name", "foobar99", ALPINE, "ls"})
+ session.WaitWithDefaultTimeout()
+ cid1 := session.OutputToString()
+ session = podmanTest.Podman([]string{"start", cid1, "doesnotexist"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(125))
+ })
+
It("podman multiple containers -- attach should fail", func() {
session := podmanTest.Podman([]string{"create", "--name", "foobar1", ALPINE, "ls"})
session.WaitWithDefaultTimeout()