Skip to content

Commit

Permalink
DEBUG
Browse files Browse the repository at this point in the history
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
  • Loading branch information
mtrmac committed Jan 13, 2023
1 parent 69453b8 commit 86e2296
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/e2e/push_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,18 +209,18 @@ var _ = Describe("Podman push", func() {
Expect(push).Should(Exit(0))
Expect(push.ErrorToString()).To(BeEmpty())

pull := podmanTest.Podman([]string{"pull", "--tls-verify=false", "--signature-policy", "sign/policy.json", "localhost:5000/sigstore-signed-params"})
pull := podmanTest.Podman([]string{"pull", "--log-level=debug", "--tls-verify=false", "--signature-policy", "sign/policy.json", "localhost:5000/sigstore-signed-params"})
pull.WaitWithDefaultTimeout()
Expect(pull).To(ExitWithError())
Expect(pull.ErrorToString()).To(ContainSubstring("A signature was required, but no signature exists"))

// Sign an image, and verify it is accepted.
push = podmanTest.Podman([]string{"push", "--tls-verify=false", "--remove-signatures", "--sign-by-sigstore", "testdata/sigstore-signing-params.yaml", ALPINE, "localhost:5000/sigstore-signed-params"})
push = podmanTest.Podman([]string{"push", "--log-level=debug", "--tls-verify=false", "--remove-signatures", "--sign-by-sigstore", "testdata/sigstore-signing-params.yaml", ALPINE, "localhost:5000/sigstore-signed-params"})
push.WaitWithDefaultTimeout()
Expect(push).Should(Exit(0))
Expect(push.ErrorToString()).To(BeEmpty())
// DEBUG: Expect(push.ErrorToString()).To(BeEmpty())

pull = podmanTest.Podman([]string{"pull", "--tls-verify=false", "--signature-policy", "sign/policy.json", "localhost:5000/sigstore-signed-params"})
pull = podmanTest.Podman([]string{"pull", "--log-level=debug", "--tls-verify=false", "--signature-policy", "sign/policy.json", "localhost:5000/sigstore-signed-params"})
pull.WaitWithDefaultTimeout()
Expect(pull).Should(Exit(0))
}
Expand Down

0 comments on commit 86e2296

Please sign in to comment.