1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
From: Reinhard Tartler <siretart@tauware.de>
Date: Sat, 14 Dec 2024 08:24:51 -0500
Subject: Adjust Errror signature when running on Debian
---
test/e2e/suite/command/sign.go | 2 +-
test/e2e/suite/command/verify.go | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/e2e/suite/command/sign.go b/test/e2e/suite/command/sign.go
index 334e27e..d9620a5 100644
--- a/test/e2e/suite/command/sign.go
+++ b/test/e2e/suite/command/sign.go
@@ -298,7 +298,7 @@ var _ = Describe("notation sign", func() {
Host(BaseOptions(), func(notation *utils.ExecOpts, artifact *Artifact, vhost *utils.VirtualHost) {
notation.ExpectFailure().Exec("sign", "--timestamp-url", "http://invalid.com", "--timestamp-root-cert", filepath.Join(NotationE2EConfigPath, "timestamp", "globalsignTSARoot.cer"), artifact.ReferenceWithDigest()).
MatchErrKeyWords("Error: timestamp: Post \"http://invalid.com\"").
- MatchErrKeyWords("server misbehaving")
+ MatchErrKeyWords("no such host")
})
})
diff --git a/test/e2e/suite/command/verify.go b/test/e2e/suite/command/verify.go
index f5f8aa3..3a7ff57 100644
--- a/test/e2e/suite/command/verify.go
+++ b/test/e2e/suite/command/verify.go
@@ -237,7 +237,7 @@ var _ = Describe("notation verify", func() {
It("with verifyTimestamp set as afterCertExpiry", func() {
Host(TimestampOptions("afterCertExpiry"), func(notation *utils.ExecOpts, artifact *Artifact, vhost *utils.VirtualHost) {
- notation.Exec("sign", "--timestamp-url", "http://timestamp.digicert.com", "--timestamp-root-cert", filepath.Join(NotationE2EConfigPath, "timestamp", "DigiCertTSARootSHA384.cer"), artifact.ReferenceWithDigest()).
+ notation.Exec("sign", "-v", "--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").
|