mirror of
https://github.com/containers/podman.git
synced 2025-06-21 01:19:15 +08:00
Tighten the expected output of the "podman image trust show" test
... to include all fields. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
@ -45,11 +45,11 @@ var _ = Describe("Podman trust", func() {
|
|||||||
outArray := session.OutputToStringArray()
|
outArray := session.OutputToStringArray()
|
||||||
Expect(len(outArray)).To(Equal(3))
|
Expect(len(outArray)).To(Equal(3))
|
||||||
|
|
||||||
// image order is not guaranteed. All we can do is check that
|
// Repository order is not guaranteed. So, check that
|
||||||
// these strings appear in output, we can't cross-check them.
|
// all expected lines appear in output; we also check total number of lines, so that handles all of them.
|
||||||
Expect(session.OutputToString()).To(ContainSubstring("accept"))
|
Expect(string(session.Out.Contents())).To(MatchRegexp(`(?m)^default\s+accept\s*$`))
|
||||||
Expect(session.OutputToString()).To(ContainSubstring("reject"))
|
Expect(string(session.Out.Contents())).To(MatchRegexp(`(?m)^docker.io/library/hello-world\s+reject\s*$`))
|
||||||
Expect(session.OutputToString()).To(ContainSubstring("signed"))
|
Expect(string(session.Out.Contents())).To(MatchRegexp(`(?m)^registry.access.redhat.com\s+signedBy\s+security@redhat.com, security@redhat.com\s+https://access.redhat.com/webassets/docker/content/sigstore\s*$`))
|
||||||
})
|
})
|
||||||
|
|
||||||
It("podman image trust set", func() {
|
It("podman image trust set", func() {
|
||||||
|
Reference in New Issue
Block a user