Skip to content

Commit

Permalink
fixup! tests: Add test for incorrect GVKs
Browse files Browse the repository at this point in the history
  • Loading branch information
viccuad committed Jul 25, 2023
1 parent 39d7ead commit c694ed5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/resources/fetcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func TestGetResourcesForPolicies(t *testing.T) {
{"policy1 (just pods)", []policiesv1.Policy{&policy1}, expectedP1, "default"},
{"no policies", []policiesv1.Policy{}, []AuditableResources{}, "default"},
{"policy with label filter", []policiesv1.Policy{&policy4}, expectedP4, "kubewarden"},
{"policy with incorrect rules", []policiesv1.Policy{&policyIncorrectRules}, expectedPIncorrectRules, "default"},
{"we skip incorrect GVKs", []policiesv1.Policy{&policyIncorrectRules}, expectedPIncorrectRules, "default"},
{"we skip clusterwide resources", []policiesv1.Policy{&policyPodsNamespaces}, expectedPPodsNamespaces, "default"}, // namespaces get filtered
}

Expand Down

0 comments on commit c694ed5

Please sign in to comment.