summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-01-12 10:29:21 -0500
committerGitHub <noreply@github.com>2021-01-12 10:29:21 -0500
commit0532fdac1a5746ad02ef21842ca6cd3b172fad03 (patch)
treee78beb78f72acd25a0d9dfab5e93d5d88bc9c96c /test/e2e
parent64b86d004ebd7db0b2bc352475505050be0f8591 (diff)
parent95462e802a53e7fee38847b0b66200a8edc8a4ba (diff)
downloadpodman-0532fdac1a5746ad02ef21842ca6cd3b172fad03.tar.gz
podman-0532fdac1a5746ad02ef21842ca6cd3b172fad03.tar.bz2
podman-0532fdac1a5746ad02ef21842ca6cd3b172fad03.zip
Merge pull request #8923 from Afourcat/master
Adding json formatting to `--list-tags` option in `podman search` command.
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/search_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/e2e/search_test.go b/test/e2e/search_test.go
index f809c5afe..1d86ae744 100644
--- a/test/e2e/search_test.go
+++ b/test/e2e/search_test.go
@@ -124,6 +124,16 @@ registries = ['{{.Host}}:{{.Port}}']`
Expect(search.OutputToString()).To(ContainSubstring("docker.io/library/alpine"))
})
+ It("podman search format json list tags", func() {
+ search := podmanTest.Podman([]string{"search", "--list-tags", "--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"))
+ Expect(search.OutputToString()).To(ContainSubstring("3.10"))
+ Expect(search.OutputToString()).To(ContainSubstring("2.7"))
+ })
+
It("podman search no-trunc flag", func() {
search := podmanTest.Podman([]string{"search", "--no-trunc", "alpine"})
search.WaitWithDefaultTimeout()