diff --git a/test/e2e/suite/trustpolicy/verification_level.go b/test/e2e/suite/trustpolicy/verification_level.go index c9984aaa..ee31c94b 100644 --- a/test/e2e/suite/trustpolicy/verification_level.go +++ b/test/e2e/suite/trustpolicy/verification_level.go @@ -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) }) }) @@ -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) }) }) @@ -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) }) })