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 and BBBmau committed May 8, 2024
1 parent 941dd6f commit 28f8cbb
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 28f8cbb

Please sign in to comment.