From b0ea40f551aa902f3bf0b590af24f911130328e9 Mon Sep 17 00:00:00 2001 From: flouthoc Date: Sun, 18 Apr 2021 17:56:10 +0530 Subject: Fix podman ps --filter ancestor to match exact ImageName/ImageID Signed-off-by: flouthoc --- test/e2e/ps_test.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/e2e') 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() { -- cgit v1.2.3-54-g00ecf