# Functions
AddTestSweepers function adds a given name and Sweeper configuration pair to the internal sweeperFuncs map.
ComposeAggregateTestCheckFunc lets you compose multiple TestCheckFuncs into a single TestCheckFunc.
ComposeTestCheckFunc lets you compose multiple TestCheckFuncs into a single TestCheckFunc.
GRPCTestProvider takes a legacy ResourceProvider, wraps it in the new GRPC shim and starts it in a grpc server using an inmem connection.
No description provided by the author
NonRetryableError is a helper to create a RetryError that's _not_ retryable from a given error.
ParallelTest performs an acceptance test on a resource, allowing concurrency with other ParallelTest.
Helper for a resource to generate a unique identifier w/ given prefix
After the prefix, the ID consists of an incrementing 26 digit value (to match previous timestamp output).
Retry is a basic wrapper around StateChangeConf that will just retry a function until it no longer returns an error.
RetryableError is a helper to create a RetryError that's retryable from a given error.
No description provided by the author
Test performs an acceptance test on a resource.
TestCheckModuleNoResourceAttr - as per TestCheckNoResourceAttr but with support for non-root modules.
TestCheckModuleResourceAttr - as per TestCheckResourceAttr but with support for non-root modules.
TestCheckModuleResourceAttrPair - as per TestCheckResourceAttrPair but with support for non-root modules.
TestCheckModuleResourceAttrPtr - as per TestCheckResourceAttrPtr but with support for non-root modules.
TestCheckModuleResourceAttrSet - as per TestCheckResourceAttrSet but with support for non-root modules.
TestCheckNoResourceAttr is a TestCheckFunc which ensures that NO value exists in state for the given name/key combination.
TestCheckOutput checks an output in the Terraform configuration.
TestCheckResourceAttr is a TestCheckFunc which validates the value in state for the given name/key combination.
TestCheckResourceAttrPair is a TestCheckFunc which validates that the values in state for a pair of name/key combinations are equal.
TestCheckResourceAttrPtr is like TestCheckResourceAttr except the value is a pointer so that it can be updated while the test is running.
TestCheckResourceAttrSet is a TestCheckFunc which ensures a value exists in state for the given name/key combination.
No description provided by the author
No description provided by the author
TestMatchResourceAttr is a TestCheckFunc which checks that the value in state for the given name/key combination matches the given regex.
TestModuleMatchResourceAttr - as per TestMatchResourceAttr but with support for non-root modules.
Helper for a resource to generate a unique identifier w/ default prefix.
UnitTest is a helper to force the acceptance testing harness to run in the normal unit test suite.
# Constants
Set to a file mask in sprintf format where %s is test name.
No description provided by the author
No description provided by the author
No description provided by the author
UniqueIDSuffixLength is the string length of the suffix generated by PrefixedUniqueId.
# Structs
ExternalProvider holds information about third-party providers that should be downloaded by Terraform as part of running the test step.
Map is a map of resources that are supported, and provides helpers for more easily implementing a ResourceProvider.
No description provided by the author
No description provided by the author
RetryError is the required return type of RetryFunc.
StateChangeConf is the configuration struct used for `WaitForState`.
No description provided by the author
TestCase is a single acceptance test case used to test the apply/destroy lifecycle of a resource in a specific configuration.
TestStep is a single apply sequence of a test, done within the context of a state.
TimeoutError is returned when WaitForState times out.
UnexpectedStateError is returned when Refresh returns a state that's neither in Target nor Pending.
# Interfaces
TestProvider can be implemented by any ResourceProvider to provide custom reset functionality at the start of an acceptance test.
TestT is the interface used to handle the test lifecycle of a test.
# Type aliases
CreateFunc is a function that creates a resource that didn't previously exist.
DestroyFunc is a function that destroys a resource that previously exists using the state.
DiffFunc is a function that performs a diff of a resource.
ImportStateCheckFunc is the check function for ImportState tests.
ImportStateIdFunc is an ID generation function to help with complex ID generation for ImportState tests.
RefreshFunc is a function that performs a refresh of a specific type of resource.
RetryFunc is the function retried until it succeeds.
StateRefreshFunc is a function type used for StateChangeConf that is responsible for refreshing the item being watched for a state change.
type SweeperFunc is a signature for a function that acts as a sweeper.
TestCheckFunc is the callback type used with acceptance tests to check the state of a resource.
UpdateFunc is a function that is called to update a resource that previously existed.