Skip to content

Commit

Permalink
blob with registry
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
  • Loading branch information
Two-Hearts committed Feb 7, 2025
1 parent d40b126 commit d35a434
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/suite/command/blob/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,15 @@ var _ = Describe("notation blob verify", func() {
})

// Failure cases
It("with missing --signature flag", func() {
It("with missing --signature and --reference flag", func() {
HostWithBlob(BaseBlobOptions(), func(notation *utils.ExecOpts, blobPath string, vhost *utils.VirtualHost) {
workDir := vhost.AbsolutePath()
notation.WithWorkDir(workDir).Exec("blob", "sign", blobPath).
MatchKeyWords(SignSuccessfully).
MatchKeyWords("Signature file written to")

notation.ExpectFailure().Exec("blob", "verify", blobPath).
MatchErrKeyWords("filepath of the signature cannot be empty")
MatchErrKeyWords(`at least one of the flags in the group [reference signature] is required`)
})
})

Expand Down

0 comments on commit d35a434

Please sign in to comment.