Skip to content

Commit bcadb27

Browse files
committed
fix: update old test cases
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
1 parent bfb56a8 commit bcadb27

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

test/e2e/suite/trustpolicy/trust_store.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ var _ = Describe("notation trust policy trust store test", func() {
7070
It("multiple trust stores", func() {
7171
Host(nil, func(notation *utils.ExecOpts, artifact1 *Artifact, vhost *utils.VirtualHost) {
7272
// artifact1 signed with new_e2e.crt
73-
OldNotation(AuthOption("", ""), AddKeyOption("e2e.key", "new_e2e.crt")).
73+
OldNotation(AuthOption("", ""), AddKeyOption(filepath.Join(NotationE2ELocalKeysDir, "e2e.key"), filepath.Join(NotationE2ELocalKeysDir, "new_e2e.crt"))).
7474
Exec("sign", artifact1.ReferenceWithDigest(), "-v").
7575
MatchKeyWords(SignSuccessfully)
7676

test/e2e/suite/trustpolicy/trusted_identity.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ var _ = Describe("notation trust policy trusted identity test", func() {
7777
It("with multiple trusted identity", func() {
7878
Host(nil, func(notation *utils.ExecOpts, artifact1 *Artifact, vhost *utils.VirtualHost) {
7979
// artifact1 signed with new_e2e.crt
80-
OldNotation(AuthOption("", ""), AddKeyOption("e2e.key", "new_e2e.crt")).
80+
OldNotation(AuthOption("", ""), AddKeyOption(filepath.Join(NotationE2ELocalKeysDir, "e2e.key"), filepath.Join(NotationE2ELocalKeysDir, "new_e2e.crt"))).
8181
Exec("sign", artifact1.ReferenceWithDigest(), "-v").
8282
MatchKeyWords(SignSuccessfully)
8383

0 commit comments

Comments
 (0)