# Packages
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
AccountID returns the account ID of Provider Must be used within a resource.TestCheckFunc.
No description provided by the author
ACM domain names cannot be longer than 64 characters Other resources, e.g.
No description provided by the author
AvailableEC2InstanceTypeForAvailabilityZone returns the configuration for a data source that describes the first available EC2 instance type offering in the specified availability zone from a list of preferred instance types.
AvailableEC2InstanceTypeForRegion returns the configuration for a data source that describes the first available EC2 instance type offering in the current region from a list of preferred instance types.
AvailableEC2InstanceTypeForRegionNamed returns the configuration for a data source that describes the first available EC2 instance type offering in the current region from a list of preferred instance types.
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
CheckDestroyNoop is a TestCheckFunc to be used as a TestCase's CheckDestroy when no such check can be made.
CheckFrameworkResourceDisappears destroys an existing resource out of band
By default, this check will only copy root-level string arguments into the state used to delete the remote resource.
CheckFrameworkResourceDisappearsWithStateFunc destroys an existing resource out of band, constructing state from the provided state function.
CheckResourceAttrAccountID ensures the Terraform state exactly matches the account ID.
CheckResourceAttrContains ensures the Terraform state value contains the specified substr.
CheckResourceAttrEquivalentJSON is a TestCheckFunc that compares a JSON value with an expected value.
CheckResourceAttrGlobalARN ensures the Terraform state exactly matches a formatted ARN without region.
CheckResourceAttrGlobalARNAccountID ensures the Terraform state exactly matches a formatted ARN without region and with specific account ID.
CheckResourceAttrGlobalARNNoAccount ensures the Terraform state exactly matches a formatted ARN without region or account ID.
No description provided by the author
No description provided by the author
CheckResourceAttrHasPrefix ensures the Terraform state value has the specified prefix.
CheckResourceAttrHasSuffix ensures the Terraform state value has the specified suffix.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CheckResourceAttrNameFromPrefix verifies that the state attribute value matches name generated from given prefix.
CheckResourceAttrNameGenerated verifies that the state attribute value matches name automatically generated without prefix.
CheckResourceAttrNameGeneratedWithPrefix verifies that the state attribute value matches name automatically generated with prefix.
CheckResourceAttrNameWithSuffixFromPrefix verifies that the state attribute value matches name with suffix generated from given prefix.
CheckResourceAttrNameWithSuffixGenerated verifies that the state attribute value matches name with suffix automatically generated without prefix.
CheckResourceAttrRegionalARN ensures the Terraform state exactly matches a formatted ARN with region.
CheckResourceAttrRegionalARNAccountID ensures the Terraform state exactly matches a formatted ARN with region and specific account ID.
CheckResourceAttrRegionalARNIgnoreRegionAndAccount ensures the Terraform state exactly matches a formatted ARN with region without specifying the region or account.
CheckResourceAttrRegionalARNNoAccount ensures the Terraform state exactly matches a formatted ARN with region but without account ID.
CheckResourceAttrRegionalHostnameService ensures the Terraform state exactly matches a service DNS hostname with region and partition DNS suffix
For example: ec2.us-west-2.amazonaws.com.
CheckResourceAttrRFC3339 ensures the Terraform state matches a RFC3339 value This TestCheckFunc will likely be moved to the Terraform Plugin SDK in the future.
No description provided by the author
CheckSleep returns a TestCheckFunc that pauses the current goroutine for at least the duration d.
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
Deprecated: Use ConfigMultipleRegionProvider instead.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ConfigCompose can be called to concatenate multiple strings to build test configurations.
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
ConfigLatestAmazonLinux2HVMEBSARM64AMI returns the configuration for a data source that describes the latest Amazon Linux 2 arm64 AMI using HVM virtualization and an EBS root device.
ConfigLatestAmazonLinux2HVMEBSX8664AMI returns the configuration for a data source that describes the latest Amazon Linux 2 x86_64 AMI using HVM virtualization and an EBS root device.
No description provided by the author
No description provided by the author
ConfigNamedAccountProvider creates a new provider named configuration with a region.
No description provided by the author
ConfigNamedRegionalProvider creates a new named provider configuration with a region.
ConfigRegionalProvider creates a new provider configuration with a region.
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
ErrorCheckSkipMessagesContaining skips tests based on error messages that contain one of the specified needles.
ErrorCheckSkipMessagesMatches skips tests based on error messages that match one of the specified regular expressions.
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
MatchResourceAttrAccountID ensures the Terraform state regexp matches an account ID.
MatchResourceAttrGlobalARN ensures the Terraform state regexp matches a formatted ARN without region.
MatchResourceAttrGlobalARNNoAccount ensures the Terraform state regexp matches a formatted ARN without region or account ID.
MatchResourceAttrGlobalHostname ensures the Terraform state regexp matches a formatted DNS hostname with partition DNS suffix and without region.
MatchResourceAttrRegionalARN ensures the Terraform state regexp matches a formatted ARN with region.
MatchResourceAttrRegionalARNAccountID ensures the Terraform state regexp matches a formatted ARN with region and specific account ID.
MatchResourceAttrRegionalARNNoAccount ensures the Terraform state regexp matches a formatted ARN with region but without account ID.
MatchResourceAttrRegionalARNRegion ensures the Terraform state regexp matches a formatted ARN with the specified region.
MatchResourceAttrRegionalHostname ensures the Terraform state regexp matches a formatted DNS hostname with region and partition DNS suffix.
No description provided by the author
No description provided by the author
ParallelTest wraps resource.ParallelTest, initializing VCR if enabled.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PreCheck verifies and sets required provider testing configuration
This PreCheck function should be present in every acceptance test.
No description provided by the author
PreCheckAlternateRegionIs checks that the alternate test region is the specified AWS Region.
PreCheckAPIGatewayTypeEDGE checks if endpoint config type EDGE can be used in a test and skips test if not (i.e., not in standard partition).
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
Certain regions such as AWS GovCloud (US) do not support Simple AD directories and we do not have a good read-only way to determine this situation.
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
No description provided by the author
No description provided by the author
No description provided by the author
PreCheckPartition checks that the test partition is the specified partition.
No description provided by the author
PreCheckPartitionNot checks that the test partition is not one of the specified partitions.
No description provided by the author
PreCheckRegion checks that the test region is one of the specified AWS Regions.
PreCheckRegionNot checks that the test region is not one of the specified AWS Regions.
No description provided by the author
Check service API call error for reasons to skip acceptance testing These include missing API endpoints and unsupported API calls.
No description provided by the author
No description provided by the author
No description provided by the author
Copied and inlined from the SDK testing code.
No description provided by the author
ProtoV5FactoriesAlternateAccountAndAlternateRegion creates ProtoV5ProviderFactories for cross-account and cross-region configurations
Usage typically paired with PreCheckMultipleRegion, PreCheckAlternateAccount, and ConfigAlternateAccountAndAlternateRegionProvider.
ProtoV5FactoriesMultipleRegions creates ProtoV5ProviderFactories for the specified number of region configurations
Usage typically paired with PreCheckMultipleRegion and ConfigMultipleRegionProvider.
No description provided by the author
No description provided by the author
ProtoV5FactoriesPlusProvidersAlternate creates ProtoV5ProviderFactories for cross-account and cross-region configurations and also returns Providers suitable for use with AWS APIs.
ProviderAccountID returns the account ID of an AWS provider.
ProviderMeta returns the current provider's state (AKA "meta" or "conns.AWSClient").
RandInt is a VCR-friendly replacement for acctest.RandInt.
No description provided by the author
RandomDomainName creates a random two-level domain name in the form "<random>.test" The top level domain ".test" is reserved by IANA for testing purposes: https://datatracker.ietf.org/doc/html/rfc6761.
RandomEmailAddress generates a random email address in the form "tf-acc-test-<random>@<domain>".
RandomFQDomainName creates a random fully-qualified two-level domain name in the form "<random>.test." The top level domain ".test" is reserved by IANA for testing purposes: https://datatracker.ietf.org/doc/html/rfc6761.
RandomSubdomain creates a random three-level domain name in the form "<random>.<random>.test" The top level domain ".test" is reserved by IANA for testing purposes: https://datatracker.ietf.org/doc/html/rfc6761.
RandomWithPrefix is a VCR-friendly replacement for acctest.RandomWithPrefix.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RunLimitedConcurrencyTests2Levels runs test cases with concurrency limited via `semaphore`.
RunSerialTests1Level runs test cases in parallel, optionally sleeping between each.
RunSerialTests2Levels runs test cases in parallel, optionally sleeping between each.
No description provided by the author
Skip implements a wrapper for (*testing.T).Skip() to prevent unused linting reports
Reference: https://github.com/dominikh/go-tools/issues/633#issuecomment-606560616.
SkipIfEnvVarNotSet skips the current test if the specified environment variable is not set.
SkipIfExeNotOnPath skips the current test if the specified executable is not found in the directories named by the PATH environment variable.
Test wraps resource.Test, initializing VCR if enabled.
TestNoMatchResourceAttr ensures a value matching a regular expression is NOT stored in state for the given name and key combination.
No description provided by the author
TLSECDSAPublicKeyPEM generates an ECDSA private key PEM string using the specified elliptic curve.
TLSECDSAPublicKeyPEM generates an ECDSA public key PEM string and fingerprint.
No description provided by the author
No description provided by the author
TLSPEMRemovePublicKeyEncapsulationBoundaries removes public key pre and post encapsulation boundaries from a PEM string.
TLSPEMRemoveRSAPrivateKeyEncapsulationBoundaries removes RSA private key pre and post encapsulation boundaries from a PEM string.
TLSRSAPrivateKeyPEM generates a RSA private key PEM string.
TLSRSAPublicKeyPEM generates a RSA public key PEM string.
TLSRSAX509CertificateRequestPEM generates a x509 certificate request PEM string and a RSA private key PEM string.
TLSRSAX509LocallySignedCertificatePEM generates a local CA x509 certificate PEM string.
TLSRSAX509SelfSignedCACertificateForRolesAnywhereTrustAnchorPEM generates a x509 CA certificate PEM string.
TLSRSAX509SelfSignedCACertificatePEM generates a x509 CA certificate PEM string.
TLSRSAX509SelfSignedCertificatePEM generates a x509 certificate PEM string.
# Constants
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
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
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
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
DefaultEmailAddress is the default email address to set as a resource or data source parameter for acceptance 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
Provider name for single configuration testing.
Provider name for alternate configuration testing.
Provider name for alternate account and alternate region configuration testing.
Provider name for alternate account and same region configuration testing.
Provider name for same account and alternate region configuration testing.
Provider name for third configuration testing.
No description provided by the author
No description provided by the author
# Variables
ProtoV5ProviderFactories is a static map containing only the main provider instance
Use other ProviderFactories functions, such as FactoriesAlternate, for tests requiring special provider configurations.
Provider is the "main" provider instance
This Provider can be used in testing code for API calls without requiring the use of saving and referencing specific ProviderFactories instances.
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author