Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

Commit

Permalink
feat: Ignore Table Completely in test (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbernays authored Apr 15, 2022
1 parent 432fca8 commit e587d34
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion provider/testing/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ func TestResource(t *testing.T, resource ResourceTestCase) {
func fetch(t *testing.T, resource *ResourceTestCase) error {
t.Helper()
resourceNames := make([]string, 0, len(resource.Provider.ResourceMap))
for name := range resource.Provider.ResourceMap {
for name, table := range resource.Provider.ResourceMap {
if table.IgnoreInTests {
t.Logf("skipping resource: %s in tests", name)
continue
}
resourceNames = append(resourceNames, name)
}

Expand Down

0 comments on commit e587d34

Please sign in to comment.