From d7e881c9b1d414b9a8063e07434e3dbd1e20d428 Mon Sep 17 00:00:00 2001 From: Patrick Zheng Date: Fri, 10 Jan 2025 14:23:52 +0800 Subject: [PATCH] update Signed-off-by: Patrick Zheng --- test/e2e/suite/command/blob/sign.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/e2e/suite/command/blob/sign.go b/test/e2e/suite/command/blob/sign.go index bc38f6ff7..3e5ab269c 100644 --- a/test/e2e/suite/command/blob/sign.go +++ b/test/e2e/suite/command/blob/sign.go @@ -76,7 +76,7 @@ var _ = Describe("notation blob sign", func() { HostWithBlob(BaseOptions(), func(notation *utils.ExecOpts, blobPath string, vhost *utils.VirtualHost) { notation.Exec("blob", "sign", "--signature-directory", vhost.AbsolutePath(), blobPath). MatchKeyWords(SignSuccessfully). - MatchKeyWords(fmt.Sprintf("Signature file written to %s", filepath.Join(vhost.AbsolutePath("blobFile.jws.sig")))) + MatchKeyWords(fmt.Sprintf("Signature file written to %s", vhost.AbsolutePath("blobFile.jws.sig"))) }) }) @@ -101,11 +101,11 @@ var _ = Describe("notation blob sign", func() { sigDir := vhost.AbsolutePath() notation.Exec("blob", "sign", "--signature-directory", sigDir, blobPath). MatchKeyWords(SignSuccessfully). - MatchKeyWords(fmt.Sprintf("Signature file written to %s", filepath.Join(vhost.AbsolutePath("blobFile.jws.sig")))) + MatchKeyWords(fmt.Sprintf("Signature file written to %s", vhost.AbsolutePath("blobFile.jws.sig"))) notation.Exec("blob", "sign", "--force", "--signature-directory", sigDir, blobPath). MatchKeyWords(SignSuccessfully). - MatchKeyWords(fmt.Sprintf("Signature file written to %s", filepath.Join(vhost.AbsolutePath("blobFile.jws.sig")))) + MatchKeyWords(fmt.Sprintf("Signature file written to %s", vhost.AbsolutePath("blobFile.jws.sig"))) }) }) @@ -140,7 +140,7 @@ var _ = Describe("notation blob sign", func() { It("with no permission to read the blob file", func() { HostWithBlob(BaseOptions(), func(notation *utils.ExecOpts, blobPath string, vhost *utils.VirtualHost) { - noPermissionBlobPath := filepath.Join(vhost.AbsolutePath("noPermissionBlob")) + noPermissionBlobPath := vhost.AbsolutePath("noPermissionBlob") newBlobFile, err := os.Create(noPermissionBlobPath) if err != nil { Fail(err.Error()) @@ -159,7 +159,7 @@ var _ = Describe("notation blob sign", func() { It("with no permission to write the signature file", func() { HostWithBlob(BaseOptions(), func(notation *utils.ExecOpts, blobPath string, vhost *utils.VirtualHost) { - sigDir := filepath.Join(vhost.AbsolutePath("signature")) + sigDir := vhost.AbsolutePath("signature") if err := os.MkdirAll(sigDir, 0000); err != nil { Fail(err.Error()) }