Skip to content

Commit

Permalink
Add comment to GoogleProviderConfig test util function (#10541) (#1…
Browse files Browse the repository at this point in the history
…7975)

[upstream:705f3f2a38cf4c367ff063863f466f20822ae81c]

Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician committed Apr 26, 2024
1 parent 42c4c4a commit 753c934
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions google/acctest/provider_test_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,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 753c934

Please sign in to comment.