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
This commit is contained in:
Yiqiao Pu
2018-04-24 18:30:53 +08:00
committed by Atomic Bot
parent b77695d68f
commit 863196f303

View File

@ -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() {