Skip to content

Commit fcbbe94

Browse files
Add comment to GoogleProviderConfig test util function (#10541) (#7300)
[upstream:705f3f2a38cf4c367ff063863f466f20822ae81c] Signed-off-by: Modular Magician <[email protected]>
1 parent 917e9c8 commit fcbbe94

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

google-beta/acctest/provider_test_utils.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ func init() {
3333
}
3434
}
3535

36+
// GoogleProviderConfig returns a configured SDKv2 provider.
37+
// 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.
38+
// 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
3639
func GoogleProviderConfig(t *testing.T) *transport_tpg.Config {
3740
configsLock.RLock()
3841
config, ok := configs[t.Name()]

0 commit comments

Comments
 (0)