summaryrefslogtreecommitdiff
path: root/test/e2e/search_test.go
diff options
context:
space:
mode:
authorYiqiao Pu <ypu@redhat.com>2018-04-24 18:30:53 +0800
committerAtomic Bot <atomic-devel@projectatomic.io>2018-04-24 13:42:37 +0000
commit863196f3035119ae0b4df22915d3304b01ace4c9 (patch)
tree01e4e1411048a077240e12c07f17d19ca2a91c6e /test/e2e/search_test.go
parentb77695d68ff076eac182b5a4e416c1db3dc81fc7 (diff)
downloadpodman-863196f3035119ae0b4df22915d3304b01ace4c9.tar.gz
podman-863196f3035119ae0b4df22915d3304b01ace4c9.tar.bz2
podman-863196f3035119ae0b4df22915d3304b01ace4c9.zip
Fix podman search no-trunc test
Add --no-trunc to the command line and add output check for the lines not include "..." with this flag. Signed-off-by: Yiqiao Pu <ypu@redhat.com> Closes: #662 Approved by: rhatdan
Diffstat (limited to 'test/e2e/search_test.go')
-rw-r--r--test/e2e/search_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/e2e/search_test.go b/test/e2e/search_test.go
index 5f3dd1068..9c23ba5bd 100644
--- a/test/e2e/search_test.go
+++ b/test/e2e/search_test.go
@@ -51,11 +51,12 @@ var _ = Describe("Podman search", func() {
})
It("podman search no-trunc flag", func() {
- search := podmanTest.Podman([]string{"search", "alpine"})
+ search := podmanTest.Podman([]string{"search", "--no-trunc", "alpine"})
search.WaitWithDefaultTimeout()
Expect(search.ExitCode()).To(Equal(0))
Expect(len(search.OutputToStringArray())).To(BeNumerically(">", 1))
Expect(search.LineInOutputContains("docker.io/library/alpine")).To(BeTrue())
+ Expect(search.LineInOutputContains("...")).To(BeFalse())
})
It("podman search limit flag", func() {