diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-04-26 20:23:54 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-26 20:23:54 -0400 |
commit | 54344d3a6440f2e80b9eba5205e87b6b4261c02c (patch) | |
tree | 2d7181b0bc3af601920428b7227dd0499c0748df /test/e2e/ps_test.go | |
parent | bdcfdadb2f41af203293a662c2b1bf5e5514586e (diff) | |
parent | b0ea40f551aa902f3bf0b590af24f911130328e9 (diff) | |
download | podman-54344d3a6440f2e80b9eba5205e87b6b4261c02c.tar.gz podman-54344d3a6440f2e80b9eba5205e87b6b4261c02c.tar.bz2 podman-54344d3a6440f2e80b9eba5205e87b6b4261c02c.zip |
Merge pull request #10074 from flouthoc/ancestor-truncate-bug
Fix podman ps --filter ancestor to match exact ImageName/ImageID
Diffstat (limited to 'test/e2e/ps_test.go')
-rw-r--r-- | test/e2e/ps_test.go | 6 |
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() { |