summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-10-14 19:34:03 +0200
committerGitHub <noreply@github.com>2019-10-14 19:34:03 +0200
commita9190dac36f3f220ddc65ad8295778d40566e61f (patch)
tree115f033086d8837a1801bc73dbe6310d23988348 /test
parent3e45d0730b4a17a91912eb161de30cb88e76bb33 (diff)
parent71410ff0738f69793cd282b2e9c341d56198cd98 (diff)
downloadpodman-a9190dac36f3f220ddc65ad8295778d40566e61f.tar.gz
podman-a9190dac36f3f220ddc65ad8295778d40566e61f.tar.bz2
podman-a9190dac36f3f220ddc65ad8295778d40566e61f.zip
Merge pull request #4245 from giuseppe/images-valid-json
images: empty list is valid json with --format=json
Diffstat (limited to 'test')
-rw-r--r--test/e2e/images_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/e2e/images_test.go b/test/e2e/images_test.go
index 8203e4273..e125c62b4 100644
--- a/test/e2e/images_test.go
+++ b/test/e2e/images_test.go
@@ -101,6 +101,13 @@ var _ = Describe("Podman images", func() {
Expect(session.LineInOuputStartsWith("docker.io/library/busybox")).To(BeTrue())
})
+ It("podman empty images list in JSON format", func() {
+ session := podmanTest.Podman([]string{"images", "--format=json", "not-existing-image"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ Expect(session.IsJSONOutputValid()).To(BeTrue())
+ })
+
It("podman images in JSON format", func() {
session := podmanTest.Podman([]string{"images", "--format=json"})
session.WaitWithDefaultTimeout()