summaryrefslogtreecommitdiff
path: root/test/e2e/start_test.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-02-16 09:46:28 -0500
committerGitHub <noreply@github.com>2021-02-16 09:46:28 -0500
commit58a4793bec30058f648dcd1248da333a7bb6d47c (patch)
treede220666eba07d3183e95299bb1485ffe5f383d3 /test/e2e/start_test.go
parentaadb16da383a91489821969247bced2b34d885e7 (diff)
parent4a9bd7a18f2db7db103a94287ef34cbd1be1626b (diff)
downloadpodman-58a4793bec30058f648dcd1248da333a7bb6d47c.tar.gz
podman-58a4793bec30058f648dcd1248da333a7bb6d47c.tar.bz2
podman-58a4793bec30058f648dcd1248da333a7bb6d47c.zip
Merge pull request #9396 from rhatdan/stop
When stopping a container, print rawInput
Diffstat (limited to 'test/e2e/start_test.go')
-rw-r--r--test/e2e/start_test.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/e2e/start_test.go b/test/e2e/start_test.go
index a6f22e007..74be105d8 100644
--- a/test/e2e/start_test.go
+++ b/test/e2e/start_test.go
@@ -95,6 +95,23 @@ var _ = Describe("Podman start", func() {
Expect(session.OutputToString()).To(Equal(shortID))
})
+ It("podman container start single container by short id", func() {
+ session := podmanTest.Podman([]string{"container", "create", ALPINE, "ls"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ cid := session.OutputToString()
+ shortID := cid[0:10]
+ session = podmanTest.Podman([]string{"container", "start", shortID})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ Expect(session.OutputToString()).To(Equal(shortID))
+
+ session = podmanTest.Podman([]string{"stop", shortID})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ Expect(session.OutputToString()).To(Equal(shortID))
+ })
+
It("podman start single container by name", func() {
name := "foobar99"
session := podmanTest.Podman([]string{"create", "--name", name, ALPINE, "ls"})