Skip to content

Commit

Permalink
tests: allowlist APIKeysKey for testing
Browse files Browse the repository at this point in the history
We are hand-crafting / hand-checking this resource.
  • Loading branch information
justinsb committed Jan 31, 2024
1 parent 65ff8a3 commit f2e9fbd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/test/resourcefixture/sets.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,16 @@ func GetBasicTypeSetCover(t *testing.T) []ResourceFixture {
return testType == Basic
}
heavyFilter := func(fixture ResourceFixture) bool {

// Skip v1alpha1 CRDs when testing set cover as they may not yet be
// correctly supported.

// We do allowlist a few that we are hand-coding / checking.
// (Needed to get TestGetBasicTypeSetCover to pass)
if fixture.GVK.Kind == "APIKeysKey" {
return true
}

return fixture.GVK.Version == k8s.KCCAPIVersion
}
return GetFilteredSetCover(t, lightFilter, heavyFilter)
Expand Down

0 comments on commit f2e9fbd

Please sign in to comment.