mirror of https://github.com/containers/podman.git
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:
parent
a64dd312a2
commit
bb8f53a727
|
@ -113,11 +113,11 @@ registries = ['{{.Host}}:{{.Port}}']`
|
|||
})
|
||||
|
||||
It("podman search format json", func() {
|
||||
search := podmanTest.Podman([]string{"search", "--format", "json", "alpine"})
|
||||
search := podmanTest.Podman([]string{"search", "--format", "json", "busybox"})
|
||||
search.WaitWithDefaultTimeout()
|
||||
Expect(search).Should(Exit(0))
|
||||
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
|
||||
contents := make([]entities.ImageSearchReport, 0)
|
||||
|
|
Loading…
Reference in New Issue