package
0.9.4
Repository: https://github.com/gerbenjacobs/terraform.git
Documentation: pkg.go.dev

# Functions

ComposeAggregateTestCheckFunc lets you compose multiple TestCheckFuncs into a single TestCheckFunc.
ComposeTestCheckFunc lets you compose multiple TestCheckFuncs into a single TestCheckFunc.
NonRetryableError is a helper to create a RetryError that's _not)_ retryable from a given error.
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.
Test performs an acceptance test on a resource.
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
TestMatchResourceAttr is a TestCheckFunc which checks that the value in state for the given name/key combination matches the given regex.
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

No description provided by the author
No description provided by the author

# Structs

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`.
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.
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.
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.