diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-11-09 20:01:31 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-09 20:01:31 +0000 |
commit | 110a1d8f25c87739afe790ac2bc461937f17222a (patch) | |
tree | 2009b729aaf5f5ff7a0aef20e474f56847512108 /test | |
parent | 1491b20f089546eb4859df774964df3e2b31803d (diff) | |
parent | f14cb5ef61e37d27bdde6dbc94b5bd910c2e8cf3 (diff) | |
download | podman-110a1d8f25c87739afe790ac2bc461937f17222a.tar.gz podman-110a1d8f25c87739afe790ac2bc461937f17222a.tar.bz2 podman-110a1d8f25c87739afe790ac2bc461937f17222a.zip |
Merge pull request #8276 from Luap99/search-json
Add support for podman search --format json
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/search_test.go | 8 |
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() |