mirror of
https://github.com/containers/podman.git
synced 2025-09-12 01:38:59 +08:00
test: fix "podman search format json"
the alpine image used previously returns a description that contains '...': $ podman search --format json alpine | fgrep ...\"\, "Description": "alpine 3.7 with bash, perl, gzip, wget...", Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
@ -113,11 +113,11 @@ registries = ['{{.Host}}:{{.Port}}']`
|
|||||||
})
|
})
|
||||||
|
|
||||||
It("podman search format json", func() {
|
It("podman search format json", func() {
|
||||||
search := podmanTest.Podman([]string{"search", "--format", "json", "alpine"})
|
search := podmanTest.Podman([]string{"search", "--format", "json", "busybox"})
|
||||||
search.WaitWithDefaultTimeout()
|
search.WaitWithDefaultTimeout()
|
||||||
Expect(search).Should(Exit(0))
|
Expect(search).Should(Exit(0))
|
||||||
Expect(search.OutputToString()).To(BeValidJSON())
|
Expect(search.OutputToString()).To(BeValidJSON())
|
||||||
Expect(search.OutputToString()).To(ContainSubstring("docker.io/library/alpine"))
|
Expect(search.OutputToString()).To(ContainSubstring("docker.io/library/busybox"))
|
||||||
|
|
||||||
// Test for https://github.com/containers/podman/issues/11894
|
// Test for https://github.com/containers/podman/issues/11894
|
||||||
contents := make([]entities.ImageSearchReport, 0)
|
contents := make([]entities.ImageSearchReport, 0)
|
||||||
|
Reference in New Issue
Block a user