aboutsummaryrefslogtreecommitdiff
path: root/test/e2e/search_test.go
diff options
context:
space:
mode:
authorPaul Holzinger <paul.holzinger@web.de>2020-11-09 12:54:17 +0100
committerPaul Holzinger <paul.holzinger@web.de>2020-11-09 12:59:59 +0100
commitf14cb5ef61e37d27bdde6dbc94b5bd910c2e8cf3 (patch)
treead8e107d71764ce262dc178179193f800e3633ec /test/e2e/search_test.go
parente2b82e6245ed9459a37dc004a2b1d593d2835cb7 (diff)
downloadpodman-f14cb5ef61e37d27bdde6dbc94b5bd910c2e8cf3.tar.gz
podman-f14cb5ef61e37d27bdde6dbc94b5bd910c2e8cf3.tar.bz2
podman-f14cb5ef61e37d27bdde6dbc94b5bd910c2e8cf3.zip
Add support for podman search --format json
Fixes #8274 Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
Diffstat (limited to 'test/e2e/search_test.go')
-rw-r--r--test/e2e/search_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/e2e/search_test.go b/test/e2e/search_test.go
index 424a191c5..edd2fedad 100644
--- a/test/e2e/search_test.go
+++ b/test/e2e/search_test.go
@@ -116,6 +116,14 @@ registries = ['{{.Host}}:{{.Port}}']`
Expect(search.LineInOutputContains("docker.io/library/alpine")).To(BeTrue())
})
+ It("podman search format json", func() {
+ search := podmanTest.Podman([]string{"search", "--format", "json", "alpine"})
+ search.WaitWithDefaultTimeout()
+ Expect(search.ExitCode()).To(Equal(0))
+ Expect(search.IsJSONOutputValid()).To(BeTrue())
+ Expect(search.OutputToString()).To(ContainSubstring("docker.io/library/alpine"))
+ })
+
It("podman search no-trunc flag", func() {
search := podmanTest.Podman([]string{"search", "--no-trunc", "alpine"})
search.WaitWithDefaultTimeout()