summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2020-08-17 07:34:02 -0600
committerEd Santiago <santiago@redhat.com>2020-08-18 09:12:36 -0600
commit318336ad4bdfe8bda531f9f580d8077e19a0e993 (patch)
tree5308fa85b914ac23f6a6e28e32cbe43f5bb55b24 /test/e2e
parent748e8829da76394ec956ea6590599fab01b467b7 (diff)
downloadpodman-318336ad4bdfe8bda531f9f580d8077e19a0e993.tar.gz
podman-318336ad4bdfe8bda531f9f580d8077e19a0e993.tar.bz2
podman-318336ad4bdfe8bda531f9f580d8077e19a0e993.zip
flake fix: podman image trust
The output of 'podman image trust' is in random order; but its e2e test was assuming a specific one. This caused flakes. Fixes: #6764 Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/trust_test.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/e2e/trust_test.go b/test/e2e/trust_test.go
index ecdf27a2e..82b0f9f26 100644
--- a/test/e2e/trust_test.go
+++ b/test/e2e/trust_test.go
@@ -47,9 +47,12 @@ var _ = Describe("Podman trust", func() {
Expect(session.ExitCode()).To(Equal(0))
outArray := session.OutputToStringArray()
Expect(len(outArray)).To(Equal(3))
- Expect(outArray[0]).Should(ContainSubstring("accept"))
- Expect(outArray[1]).Should(ContainSubstring("reject"))
- Expect(outArray[2]).Should(ContainSubstring("signed"))
+
+ // image order is not guaranteed. All we can do is check that
+ // these strings appear in output, we can't cross-check them.
+ Expect(session.OutputToString()).To(ContainSubstring("accept"))
+ Expect(session.OutputToString()).To(ContainSubstring("reject"))
+ Expect(session.OutputToString()).To(ContainSubstring("signed"))
})
It("podman image trust set", func() {