destroy

package
v0.37.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2025 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL