Skip to content

Commit

Permalink
update unit test
Browse files Browse the repository at this point in the history
Signed-off-by: akashsinghal <[email protected]>
  • Loading branch information
akashsinghal committed Sep 13, 2024
1 parent 2d9b93a commit 2c7666a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/verifier/cosign/cosign_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ func TestCreate(t *testing.T) {
wantErr: true,
},
{
name: "invalid trust policies config",
name: "valid trust policies config with no legacy config or trust policies",
config: config.VerifierConfig{
"name": "test",
"artifactTypes": "testtype",
"trustPolicies": []TrustPolicyConfig{},
},
wantErr: true,
wantErr: false,
},
{
name: "invalid config with legacy and trust policies",
Expand Down

0 comments on commit 2c7666a

Please sign in to comment.