Merge pull request #10074 from flouthoc/ancestor-truncate-bug

Fix podman ps --filter ancestor to match exact ImageName/ImageID
This commit is contained in:
OpenShift Merge Robot
2021-04-26 20:23:54 -04:00
committed by GitHub
2 changed files with 19 additions and 1 deletions

View File

@ -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() {