Skip to content

Commit

Permalink
fixed e2e tests
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Zheng <[email protected]>
  • Loading branch information
Two-Hearts committed Apr 18, 2024
1 parent 5c7a70b commit 7aee992
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/e2e/suite/trustpolicy/verification_level.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ var _ = Describe("notation trust policy verification level test", func() {

notation.Exec("verify", artifact.ReferenceWithDigest(), "-v").
MatchErrKeyWords("Warning: authenticTimestamp was set to \"log\"",
"error: current time is not in certificate \"O=Internet Widgits Pty Ltd,ST=Some-State,C=AU\" validity period and no timestamp token was found in the signature envelope").
"error: current time is not in certificate \"O=Internet Widgits Pty Ltd,ST=Some-State,C=AU\" validity period [\"Mon, 26 Jun 2023 06:10:00 +0000\", \"Tue, 27 Jun 2023 06:10:00 +0000\"] and no timestamp token was found in the signature envelope").
MatchKeyWords(VerifySuccessfully)
})
})
Expand Down Expand Up @@ -156,7 +156,7 @@ var _ = Describe("notation trust policy verification level test", func() {

notation.Exec("verify", artifact.ReferenceWithDigest(), "-v").
MatchErrKeyWords("Warning: authenticTimestamp was set to \"log\"",
"error: current time is not in certificate \"O=Internet Widgits Pty Ltd,ST=Some-State,C=AU\" validity period and no timestamp token was found in the signature envelope").
"error: current time is not in certificate \"O=Internet Widgits Pty Ltd,ST=Some-State,C=AU\" validity period [\"Mon, 26 Jun 2023 06:10:00 +0000\", \"Tue, 27 Jun 2023 06:10:00 +0000\"] and no timestamp token was found in the signature envelope").
MatchKeyWords(VerifySuccessfully)
})
})
Expand Down Expand Up @@ -226,7 +226,7 @@ var _ = Describe("notation trust policy verification level test", func() {

notation.Exec("verify", artifact.ReferenceWithDigest(), "-v").
MatchErrKeyWords("Warning: authenticTimestamp was set to \"log\"",
"error: current time is not in certificate \"O=Internet Widgits Pty Ltd,ST=Some-State,C=AU\" validity period and no timestamp token was found in the signature envelope").
"error: current time is not in certificate \"O=Internet Widgits Pty Ltd,ST=Some-State,C=AU\" validity period [\"Mon, 26 Jun 2023 06:10:00 +0000\", \"Tue, 27 Jun 2023 06:10:00 +0000\"] and no timestamp token was found in the signature envelope").
MatchKeyWords(VerifySuccessfully)
})
})
Expand Down

0 comments on commit 7aee992

Please sign in to comment.