summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorflouthoc <flouthoc.git@gmail.com>2021-04-18 17:56:10 +0530
committerflouthoc <flouthoc.git@gmail.com>2021-04-25 13:49:40 +0530
commitb0ea40f551aa902f3bf0b590af24f911130328e9 (patch)
treec11b967a2eaa18ca3ee2c880393abb3d6bea7008 /test/e2e
parentba60821f0aadef99f200fa708b26fb9921ed7b70 (diff)
downloadpodman-b0ea40f551aa902f3bf0b590af24f911130328e9.tar.gz
podman-b0ea40f551aa902f3bf0b590af24f911130328e9.tar.bz2
podman-b0ea40f551aa902f3bf0b590af24f911130328e9.zip
Fix podman ps --filter ancestor to match exact ImageName/ImageID
Signed-off-by: flouthoc <flouthoc.git@gmail.com>
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/ps_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/e2e/ps_test.go b/test/e2e/ps_test.go
index 37b6516c1..d5269f415 100644
--- a/test/e2e/ps_test.go
+++ b/test/e2e/ps_test.go
@@ -269,6 +269,12 @@ var _ = Describe("Podman ps", func() {
result.WaitWithDefaultTimeout()
Expect(result.ExitCode()).To(Equal(0))
Expect(result.OutputToString()).To(Equal(cid))
+
+ // Query by trunctated image name should not match ( should return empty output )
+ result = podmanTest.Podman([]string{"ps", "-q", "--no-trunc", "-a", "--filter", "ancestor=quay.io/libpod/alpi"})
+ result.WaitWithDefaultTimeout()
+ Expect(result.ExitCode()).To(Equal(0))
+ Expect(result.OutputToString()).To(Equal(""))
})
It("podman ps id filter flag", func() {