summaryrefslogtreecommitdiff
path: root/test/e2e/ps_test.go
diff options
context:
space:
mode:
authorhaircommander <pehunt@redhat.com>2018-08-02 10:48:56 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-08-02 20:39:06 +0000
commit26b9b17d275d3b740a471e70cc8116f75de99a3d (patch)
tree05febb1fbf6b61e1217f56f25c2b00af8419194f /test/e2e/ps_test.go
parent20155657ecf688568c4712a8a125ff95a5dd29a3 (diff)
downloadpodman-26b9b17d275d3b740a471e70cc8116f75de99a3d.tar.gz
podman-26b9b17d275d3b740a471e70cc8116f75de99a3d.tar.bz2
podman-26b9b17d275d3b740a471e70cc8116f75de99a3d.zip
Added ps --pod option
Signed-off-by: haircommander <pehunt@redhat.com> Closes: #1205 Approved by: rhatdan
Diffstat (limited to 'test/e2e/ps_test.go')
-rw-r--r--test/e2e/ps_test.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/e2e/ps_test.go b/test/e2e/ps_test.go
index 1b8002166..5dfb385a8 100644
--- a/test/e2e/ps_test.go
+++ b/test/e2e/ps_test.go
@@ -246,4 +246,23 @@ var _ = Describe("Podman ps", func() {
Expect(sort.SliceIsSorted(sortedArr, func(i, j int) bool { return sortedArr[i] < sortedArr[j] })).To(BeTrue())
})
+
+ It("podman --pod", func() {
+ session := podmanTest.Podman([]string{"pod", "create"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ podid := session.OutputToString()
+
+ session = podmanTest.RunTopContainerInPod("", podid)
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+
+ session = podmanTest.Podman([]string{"ps", "--pod", "--no-trunc"})
+
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+
+ Expect(session.OutputToString()).To(ContainSubstring(podid))
+
+ })
})