mirror of
https://github.com/containers/podman.git
synced 2025-06-28 22:53:21 +08:00
Merge pull request #7338 from edsantiago/image_trust_flake_fix
flake fix: podman image trust
This commit is contained in:
@ -47,9 +47,12 @@ var _ = Describe("Podman trust", func() {
|
|||||||
Expect(session.ExitCode()).To(Equal(0))
|
Expect(session.ExitCode()).To(Equal(0))
|
||||||
outArray := session.OutputToStringArray()
|
outArray := session.OutputToStringArray()
|
||||||
Expect(len(outArray)).To(Equal(3))
|
Expect(len(outArray)).To(Equal(3))
|
||||||
Expect(outArray[0]).Should(ContainSubstring("accept"))
|
|
||||||
Expect(outArray[1]).Should(ContainSubstring("reject"))
|
// image order is not guaranteed. All we can do is check that
|
||||||
Expect(outArray[2]).Should(ContainSubstring("signed"))
|
// 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() {
|
It("podman image trust set", func() {
|
||||||
|
Reference in New Issue
Block a user