summaryrefslogtreecommitdiff
path: root/test/e2e/images_test.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-04-11 09:59:44 -0700
committerGitHub <noreply@github.com>2019-04-11 09:59:44 -0700
commitab259987ee4920e549a863ab3b7055877d6f61d7 (patch)
tree6a75a64ba3a111973c2ba817ec279ff93c40206f /test/e2e/images_test.go
parent4b9a4a12f17ecebb3647165430af9571de45d5bf (diff)
parentba4a1bb9bd4a644ffa7b07d2a15ec9302d5d45ed (diff)
downloadpodman-ab259987ee4920e549a863ab3b7055877d6f61d7.tar.gz
podman-ab259987ee4920e549a863ab3b7055877d6f61d7.tar.bz2
podman-ab259987ee4920e549a863ab3b7055877d6f61d7.zip
Merge pull request #2879 from mheon/header_on_no_images
Print header for 'podman images' even with no images present
Diffstat (limited to 'test/e2e/images_test.go')
-rw-r--r--test/e2e/images_test.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/e2e/images_test.go b/test/e2e/images_test.go
index a253dff63..48a964db4 100644
--- a/test/e2e/images_test.go
+++ b/test/e2e/images_test.go
@@ -43,6 +43,17 @@ var _ = Describe("Podman images", func() {
Expect(session.LineInOuputStartsWith("docker.io/library/busybox")).To(BeTrue())
})
+ It("podman images with no images prints header", func() {
+ rmi := podmanTest.Podman([]string{"rmi", "-a"})
+ rmi.WaitWithDefaultTimeout()
+ Expect(rmi.ExitCode()).To(Equal(0))
+
+ session := podmanTest.Podman([]string{"images"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ Expect(len(session.OutputToStringArray())).To(Equal(1))
+ })
+
It("podman image List", func() {
session := podmanTest.Podman([]string{"image", "list"})
session.WaitWithDefaultTimeout()