Skip to content

Commit

Permalink
fix: fixed e2e test after dependency bump up (notaryproject#690)
Browse files Browse the repository at this point in the history
  • Loading branch information
Two-Hearts committed May 26, 2023
1 parent cc3f7aa commit e3f96ed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/e2e/suite/trustpolicy/registry_scope.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import (
. "github.com/onsi/ginkgo/v2"
)

// trustPolicyLink is a tutorial link for creating Notation's trust policy.
const trustPolicyLink = "https://notaryproject.dev/docs/quickstart/#create-a-trust-policy"

var _ = Describe("notation trust policy registryScope test", func() {
It("empty registryScope", func() {
Host(BaseOptions(), func(notation *utils.ExecOpts, artifact *Artifact, vhost *utils.VirtualHost) {
Expand Down Expand Up @@ -121,7 +124,7 @@ var _ = Describe("notation trust policy registryScope test", func() {
// test localhost:5000/test-repo
OldNotation().Exec("sign", artifact.ReferenceWithDigest()).MatchKeyWords(SignSuccessfully)
notation.ExpectFailure().Exec("verify", artifact.ReferenceWithDigest()).
MatchErrContent(fmt.Sprintf("Error: signature verification failed: artifact %q has no applicable trust policy\n", artifact.ReferenceWithDigest()))
MatchErrContent(fmt.Sprintf("Error: signature verification failed: artifact %q has no applicable trust policy. Trust policy applicability for a given artifact is determined by registryScopes. To create a trust policy, see: %s\n", artifact.ReferenceWithDigest(), trustPolicyLink))
})
})
})

0 comments on commit e3f96ed

Please sign in to comment.