diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-10-13 14:29:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-13 14:29:59 +0200 |
commit | e3cf9b685a0099d55cd4d8086757c78bd64e9371 (patch) | |
tree | c6a699c8ceda3adb553beb74c770973a8770933f /test | |
parent | f12dc28bbc12376783064c645093715ef6831bd1 (diff) | |
parent | 14bfee31f728c383f02be98a22e3528278d2feec (diff) | |
download | podman-e3cf9b685a0099d55cd4d8086757c78bd64e9371.tar.gz podman-e3cf9b685a0099d55cd4d8086757c78bd64e9371.tar.bz2 podman-e3cf9b685a0099d55cd4d8086757c78bd64e9371.zip |
Merge pull request #11892 from vrothberg/search
podman search: display only name and description by default
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/search_test.go | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/test/e2e/search_test.go b/test/e2e/search_test.go index 243b1a307..10e991d9f 100644 --- a/test/e2e/search_test.go +++ b/test/e2e/search_test.go @@ -107,7 +107,18 @@ registries = ['{{.Host}}:{{.Port}}']` search.WaitWithDefaultTimeout() Expect(search).Should(Exit(0)) output := string(search.Out.Contents()) - match, _ := regexp.MatchString(`(?m)^quay.io\s+quay.io/libpod/whalesay\s+Static image used for automated testing.+$`, output) + match, _ := regexp.MatchString(`(?m)NAME\s+DESCRIPTION$`, output) + Expect(match).To(BeTrue()) + match, _ = regexp.MatchString(`(?m)quay.io/libpod/whalesay\s+Static image used for automated testing.+$`, output) + Expect(match).To(BeTrue()) + }) + + It("podman search image with --compatible", func() { + search := podmanTest.Podman([]string{"search", "--compatible", "quay.io/libpod/whalesay"}) + search.WaitWithDefaultTimeout() + Expect(search).Should(Exit(0)) + output := string(search.Out.Contents()) + match, _ := regexp.MatchString(`(?m)NAME\s+DESCRIPTION\s+STARS\s+OFFICIAL\s+AUTOMATED$`, output) Expect(match).To(BeTrue()) }) |