package
6.28.0+incompatible
Repository: https://github.com/hashicorp/terraform-provider-google-beta.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
AccTestPreCheck_AdcCredentialsOnly is a PreCheck function for acceptance tests that use ADCs when.
No description provided by the author
No description provided by the author
No description provided by the author
BootstrapConfig returns a Config pulled from the environment.
For bootstrapping Developer Connect connection resources.
No description provided by the author
BootstrapFolder creates or get a folder having a input folderDisplayName within a TestOrgEnv.
No description provided by the author
BootstrapIamMembers ensures that a given set of member/role pairs exist in the default test project.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
BootstrapKMSKeyWithPurpose returns a KMS key in the "global" location.
* * BootstrapKMSKeyWithPurposeInLocation will return a KMS key in a * particular location with the given purpose that can be used * in tests that are testing KMS integration with other resources.
No description provided by the author
No description provided by the author
BootstrapProject will create or get a project named "<projectIDPrefix><projectIDSuffix>" that will persist across test runs, where projectIDSuffix is based off of getTestProjectFromEnv().
No description provided by the author
A separate testId should be used for each test, to create separate service accounts for each, and avoid race conditions where the policy of the same service account is being modified by 2 tests at once.
No description provided by the author
No description provided by the author
No description provided by the author
BootstrapSharedServiceNetworkingConnection will create a shared network if it hasn't been created in the test project, a global address if it hasn't been created in the test project, and a service networking connection if it hasn't been created in the test project.
BootstrapSharedSQLInstanceBackupRun will return a shared SQL db instance that has a backup created for it.
No description provided by the author
params are the functions to set compute global address.
BootstrapSharedTestNetwork will return a persistent compute network for a test or set of tests.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GenerateCloudKmsServiceIdentity generates cloud kms service identity within a project.
Returns a fake credentials JSON string with the client_email set to a test-specific value.
No description provided by the author
GetSDKProvider gets the SDK provider for use in acceptance tests If VCR is in use, the configure function is overwritten.
Gets the test metadata for tgc: - test config - cai asset name For example: //compute.googleapis.com/projects/ci-test-188019/zones/us-central1-a/instances/tf-test-mi3fqaucf8.
GetTestProject has the same logic as the provider's GetProject, to be used in tests.
GetTestRegion has the same logic as the provider's GetRegion, to be used in tests.
GoogleProviderConfig returns a configured SDKv2 provider.
HandleVCRConfiguration configures the recorder (github.com/dnaeon/go-vcr/recorder) used in the VCR test This includes: - Setting the recording/replaying mode - Determining the path to the file API interactions will be recorded to/read from - Determining the logic used to match requests against recorded HTTP interactions (see rec.SetMatcher).
No description provided by the author
MuxedProviders returns the correct test provider (between the sdk version or the framework version).
No description provided by the author
No description provided by the author
No description provided by the author
NewVcrMatcherFunc returns a function used for matching HTTP requests with data recorded in VCR cassettes.
This is a Printf sibling (Nprintf; Named Printf), which handles strings like Nprintf("Hello %{target}!", map[string]interface{}{"target":"world"}) == "Hello world!".
ProtoV5ProviderBetaFactories returns the same as ProtoV5ProviderFactories only the provider is mapped with "google-beta" to ensure that registry examples use `google-beta` if the example is versioned as beta; normal beta tests should continue to use ProtoV5ProviderFactories.
ProtoV5ProviderFactories returns a muxed ProviderServer that uses the provider code from this repo (SDK and plugin-framework).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Some tests fail during VCR.
No description provided by the author
No description provided by the author
TestCheckAttributeValuesEqual compares two string pointers, which have been used to retrieve attribute values from the test's state.
TestExtractResourceAttr navigates a test's state to find the specified resource (or data source) attribute and makes the value accessible via the attributeValue string pointer.
UnsetProviderConfigEnvs unsets any ENVs in the test environment that configure the provider.
VcrTest is a wrapper for resource.Test to swap out providers for VCR providers and handle VCR specific things Can be called when VCR is not enabled, and it will behave as normal.

# Constants

BootstrapSharedCodeRepositoryIndex will create a code repository index if it hasn't been created in the test project.
No description provided by the author
For bootstrapping Developer Connect git repository link.
No description provided by the author
No description provided by the author
No description provided by the author
The default network within GCP already comes pre configured with certain firewall rules open to allow internal communication.
No description provided by the author
No description provided by the author
SQL Instance names are not reusable for a week after deletion.

# Variables

Hardcode the Terraform resource name -> API service name mapping temporarily.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
VcrSource is a source for a given VCR test with the value that seeded it.