Skip to content

Commit

Permalink
fix 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 Sep 23, 2024
1 parent b4e84dd commit b06c4d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/e2e/suite/command/inspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var (
"├── user defined attributes",
"│ └── (empty)",
"├── unsigned attributes",
"│ └── signingAgent: Notation/",
"│ └── signingAgent: notation-go/",
"├── certificates",
"│ └── SHA256 fingerprint:",
"issued to:",
Expand All @@ -57,7 +57,7 @@ var (
"├── user defined attributes",
"│ └── (empty)",
"├── unsigned attributes",
"signingAgent: Notation/",
"signingAgent: notation-go/",
"timestamp signature",
"timestamp:",
"certificates",
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/suite/command/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,12 @@ var _ = Describe("notation verify", func() {
})
})

It("user defined NOTATION_CACHE path", func() {
It("NOTATION_CACHE", func() {
Host(BaseOptions(), func(notation *utils.ExecOpts, artifact *Artifact, vhost *utils.VirtualHost) {
notation.Exec("sign", artifact.ReferenceWithDigest()).
MatchKeyWords(SignSuccessfully)

vhost.UpdateEnv(map[string]string{"NOTATION_CACHE": "/myFileCache"})
vhost.UpdateEnv(map[string]string{"NOTATION_CACHE": vhost.AbsolutePath(NotationDirName)})
notation.Exec("verify", artifact.ReferenceWithDigest(), "-v").
MatchKeyWords(VerifySuccessfully)
})
Expand Down

0 comments on commit b06c4d8

Please sign in to comment.