Skip to content

Commit

Permalink
update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
susanshi committed Oct 12, 2023
1 parent 4cce4f9 commit 820c06b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/verifier/notation/notation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ func TestParseVerifierConfig(t *testing.T) {
"name": test,
"verificationCerts": []string{testPath},
"verificationCertStores": map[string][]string{
"certstore1": {"akv1", "akv2"},
"certstore1": {"defaultns/akv1", "akv2"},
"certstore2": {"akv3", "akv4"},
},
},
Expand All @@ -235,8 +235,8 @@ func TestParseVerifierConfig(t *testing.T) {
Name: test,
VerificationCerts: []string{testPath, defaultCertDir},
VerificationCertStores: map[string][]string{
"certstore1": {"akv1", "akv2"},
"certstore2": {"akv3", "akv4"},
"certstore1": {"defaultns/akv1", "testns/akv2"},
"certstore2": {"testns/akv3", "testns/akv4"},
},
},
},
Expand All @@ -245,7 +245,7 @@ func TestParseVerifierConfig(t *testing.T) {
//TODO add new test for parseVerifierConfig
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
notationPluginConfig, err := parseVerifierConfig(tt.configMap, "")
notationPluginConfig, err := parseVerifierConfig(tt.configMap, "testns")

if (err != nil) != tt.expectErr {
t.Errorf("error = %v, expectErr = %v", err, tt.expectErr)
Expand Down

0 comments on commit 820c06b

Please sign in to comment.