summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-08-03 03:06:24 -0400
committerGitHub <noreply@github.com>2020-08-03 03:06:24 -0400
commitbfd34542f463b7ea59b9560516b3b3d66674eefe (patch)
treee5c6ebfcc2bfaf952850f207c13c5b6df587f034 /test/e2e
parentf4d4bd22887e1271c3bf04532596f4c02201022e (diff)
parent54256fbe7881894063f27e19e7dc63cb7c358e0c (diff)
downloadpodman-bfd34542f463b7ea59b9560516b3b3d66674eefe.tar.gz
podman-bfd34542f463b7ea59b9560516b3b3d66674eefe.tar.bz2
podman-bfd34542f463b7ea59b9560516b3b3d66674eefe.zip
Merge pull request #7141 from rhafer/image_descr_test
Add test case for description being present in search result
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 1e7dff697..104bb4ec8 100644
--- a/test/e2e/search_test.go
+++ b/test/e2e/search_test.go
@@ -5,6 +5,7 @@ import (
"fmt"
"io/ioutil"
"os"
+ "regexp"
"strconv"
"text/template"
@@ -98,6 +99,15 @@ registries = ['{{.Host}}:{{.Port}}']`
Expect(search.LineInOutputContains("quay.io/libpod/gate")).To(BeTrue())
})
+ It("podman search image with description", func() {
+ search := podmanTest.Podman([]string{"search", "quay.io/libpod/whalesay"})
+ search.WaitWithDefaultTimeout()
+ Expect(search.ExitCode()).To(Equal(0))
+ output := fmt.Sprintf("%s", search.Out.Contents())
+ match, _ := regexp.MatchString(`(?m)^quay.io\s+quay.io/libpod/whalesay\s+Static image used for automated testing.+$`, output)
+ Expect(match).To(BeTrue())
+ })
+
It("podman search format flag", func() {
search := podmanTest.Podman([]string{"search", "--format", "table {{.Index}} {{.Name}}", "alpine"})
search.WaitWithDefaultTimeout()