Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Zheng <[email protected]>
  • Loading branch information
Two-Hearts committed Jul 22, 2024
1 parent 7c44b3e commit 6aafe34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/suite/command/sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,15 +313,15 @@ var _ = Describe("notation sign", func() {
Host(BaseOptions(), func(notation *utils.ExecOpts, artifact *Artifact, vhost *utils.VirtualHost) {
notation.ExpectFailure().Exec("sign", "--timestamp-url", "http://timestamp.digicert.com", "--timestamp-root-cert", filepath.Join(NotationE2EConfigPath, "timestamp", "CertChain.pem"), artifact.ReferenceWithDigest()).
MatchErrKeyWords("find more than one certificates").
MatchErrKeyWords("Expecting one x509 certificate in PEM or DER format from the file")
MatchErrKeyWords("Expecting one x509 root CA certificate in PEM or DER format from the file")
})
})

It("with empty tsa root certificate file", func() {
Host(BaseOptions(), func(notation *utils.ExecOpts, artifact *Artifact, vhost *utils.VirtualHost) {
notation.ExpectFailure().Exec("sign", "--timestamp-url", "http://timestamp.digicert.com", "--timestamp-root-cert", filepath.Join(NotationE2EConfigPath, "timestamp", "Empty.txt"), artifact.ReferenceWithDigest()).
MatchErrKeyWords("cannot find any certificate from").
MatchErrKeyWords("Expecting one x509 certificate in PEM or DER format from the file")
MatchErrKeyWords("Expecting one x509 root CA certificate in PEM or DER format from the file")
})
})
})

0 comments on commit 6aafe34

Please sign in to comment.