From 7aee9925dbd243d0474be97f461dc03535422e0e Mon Sep 17 00:00:00 2001 From: Patrick Zheng Date: Thu, 18 Apr 2024 13:35:06 +0800 Subject: [PATCH] fixed e2e tests Signed-off-by: Patrick Zheng --- test/e2e/suite/trustpolicy/verification_level.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) }) })