summaryrefslogtreecommitdiff
path: root/test/e2e/images_test.go
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2020-06-18 09:26:07 -0700
committerJhon Honce <jhonce@redhat.com>2020-06-19 08:57:12 -0700
commitea8e61e4eb6b5c02cf5f9e1e20ba703c9196bc31 (patch)
treee9d281fd2eebb82a1168b45b417e9fcdc9d1b156 /test/e2e/images_test.go
parent1a2eb3e615fa05d77359295b870d7b3a0e4a5ed3 (diff)
downloadpodman-ea8e61e4eb6b5c02cf5f9e1e20ba703c9196bc31.tar.gz
podman-ea8e61e4eb6b5c02cf5f9e1e20ba703c9196bc31.tar.bz2
podman-ea8e61e4eb6b5c02cf5f9e1e20ba703c9196bc31.zip
Fixes #6670
* Sort images for -q option, removing duplicate id's * Sort images for --format json Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'test/e2e/images_test.go')
-rw-r--r--test/e2e/images_test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/e2e/images_test.go b/test/e2e/images_test.go
index 0ee7260c2..b6391cebf 100644
--- a/test/e2e/images_test.go
+++ b/test/e2e/images_test.go
@@ -296,6 +296,15 @@ WORKDIR /test
sortValueTest("id", 125, "badvalue")
})
+ It("test for issue #6670", func() {
+ expected := podmanTest.Podman([]string{"images", "--sort", "created", "--format", "{{.ID}}", "-q"})
+ expected.WaitWithDefaultTimeout()
+
+ actual := podmanTest.Podman([]string{"images", "--sort", "created", "-q"})
+ actual.WaitWithDefaultTimeout()
+ Expect(expected.Out).Should(Equal(actual.Out))
+ })
+
It("podman images --all flag", func() {
podmanTest.RestoreAllArtifacts()
dockerfile := `FROM docker.io/library/alpine:latest