Documentation
¶
Index ¶
- func CheckDestroyedAllFunc(testResource types.TestResource, resourceType string, ...) func(state *terraform.State) error
- func CheckDestroyedFunc(testResource types.TestResource, resourceType, resourceName string) func(state *terraform.State) error
- func CheckDestroyedTypesFunc(waitDuration time.Duration, mappings ...ResourceTypeMapping) func(*terraform.State) error
- type ResourceTypeMapping
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckDestroyedAllFunc ¶
func CheckDestroyedAllFunc(testResource types.TestResource, resourceType string, waitDuration time.Duration) func(state *terraform.State) error
CheckDestroyedAllFunc returns a TestCheckFunc which validates all resources of a given type no longer exist. The waitDuration parameter allows waiting for eventual consistency before checking (use 0 for no wait).
func CheckDestroyedFunc ¶
func CheckDestroyedFunc(testResource types.TestResource, resourceType, resourceName string) func(state *terraform.State) error
CheckDestroyedFunc returns a TestCheckFunc which validates a specific resource no longer exists
func CheckDestroyedTypesFunc ¶
func CheckDestroyedTypesFunc(waitDuration time.Duration, mappings ...ResourceTypeMapping) func(*terraform.State) error
CheckDestroyedTypesFunc returns a TestCheckFunc that verifies multiple resource types are destroyed Useful for tests that create dependencies (e.g., role scope tags with group assignments)
Types ¶
type ResourceTypeMapping ¶
type ResourceTypeMapping struct {
ResourceType string
TestResource types.TestResource
ShortName string // Optional: Override automatic short name generation
}
ResourceTypeMapping maps Terraform resource types to their TestResource implementations
Click to show internal directories.
Click to hide internal directories.