Skip to content

Commit

Permalink
fix e2e
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 Nov 21, 2024
1 parent 17a0585 commit d68688b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/e2e/suite/command/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ var _ = Describe("notation verify", func() {
notation.Exec("sign", "--timestamp-url", "http://timestamp.digicert.com", "--timestamp-root-cert", filepath.Join(NotationE2EConfigPath, "timestamp", "DigiCertTSARootSHA384.cer"), artifact.ReferenceWithDigest()).
MatchKeyWords(SignSuccessfully)

notation.Exec("verify", artifact.ReferenceWithDigest(), "-v").
notation.Exec("verify", artifact.ReferenceWithDigest(), "-d").
MatchKeyWords(VerifySuccessfully).
MatchErrKeyWords("Timestamp verification disabled")
})
Expand All @@ -240,7 +240,7 @@ var _ = Describe("notation verify", func() {
notation.Exec("sign", "--timestamp-url", "http://timestamp.digicert.com", "--timestamp-root-cert", filepath.Join(NotationE2EConfigPath, "timestamp", "DigiCertTSARootSHA384.cer"), artifact.ReferenceWithDigest()).
MatchKeyWords(SignSuccessfully)

notation.Exec("verify", artifact.ReferenceWithDigest(), "-v").
notation.Exec("verify", artifact.ReferenceWithDigest(), "-d").
MatchKeyWords(VerifySuccessfully).
MatchErrKeyWords("Performing timestamp verification...")
})
Expand All @@ -251,7 +251,7 @@ var _ = Describe("notation verify", func() {
notation.Exec("sign", "--timestamp-url", "http://timestamp.digicert.com", "--timestamp-root-cert", filepath.Join(NotationE2EConfigPath, "timestamp", "DigiCertTSARootSHA384.cer"), artifact.ReferenceWithDigest()).
MatchKeyWords(SignSuccessfully)

notation.Exec("verify", artifact.ReferenceWithDigest(), "-v").
notation.Exec("verify", artifact.ReferenceWithDigest(), "-d").
MatchKeyWords(VerifySuccessfully).
MatchErrKeyWords("Timestamp verification disabled: verifyTimestamp is set to \"afterCertExpiry\" and signing cert chain unexpired")
})
Expand Down

0 comments on commit d68688b

Please sign in to comment.