diff options
author | Matthew Heon <mheon@redhat.com> | 2019-04-09 14:00:21 -0400 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2019-04-10 09:55:55 -0400 |
commit | ba4a1bb9bd4a644ffa7b07d2a15ec9302d5d45ed (patch) | |
tree | 7c0fbe29535d360c5027554eda3e54b35efdd8c6 /test/e2e/images_test.go | |
parent | fe79bdd07e140176dc64ebef8da3eea2ae28b96b (diff) | |
download | podman-ba4a1bb9bd4a644ffa7b07d2a15ec9302d5d45ed.tar.gz podman-ba4a1bb9bd4a644ffa7b07d2a15ec9302d5d45ed.tar.bz2 podman-ba4a1bb9bd4a644ffa7b07d2a15ec9302d5d45ed.zip |
Print header for 'podman images' even with no images
Fixes #2877
Signed-off-by: Matthew Heon <mheon@redhat.com>
Diffstat (limited to 'test/e2e/images_test.go')
-rw-r--r-- | test/e2e/images_test.go | 11 |
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() |