Skip to content

Commit

Permalink
Add comment to GoogleProviderConfig test util function (GoogleCloud…
Browse files Browse the repository at this point in the history
  • Loading branch information
SarahFrench authored Apr 26, 2024
1 parent bc5f7cc commit 705f3f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mmv1/third_party/terraform/acctest/provider_test_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ func init() {
}
}

// GoogleProviderConfig returns a configured SDKv2 provider.
// This function is typically used in CheckDestroy functions in acceptance tests. The provider client is used to make GET requests to check a resource is destroyed.
// Either a preexisting configured SDKv2 provider for the given test name is returned, or a new one is configured with empty (but non-nil) terraform.ResourceConfig
func GoogleProviderConfig(t *testing.T) *transport_tpg.Config {
configsLock.RLock()
config, ok := configs[t.Name()]
Expand Down

0 comments on commit 705f3f2

Please sign in to comment.