helper

package
v0.0.0-...-306e746 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateUniqueResourceName

func GenerateUniqueResourceName(prefix string) string

GenerateUniqueResourceName creates a unique resource name with a prefix and timestamp

func SetupModuleTerraformOptions

func SetupModuleTerraformOptions(t *testing.T, moduleDir string, vars map[string]interface{}) *terraform.Options

SetupModuleTerraformOptions configures Terraform options for testing a module directly with an isolated provider cache.

func SetupTargetTerraformOptions

func SetupTargetTerraformOptions(t *testing.T, moduleName, targetName string, vars map[string]interface{}) *terraform.Options

SetupTargetTerraformOptions configures Terraform options for unit tests that use target directories

func SetupTerraformOptions

func SetupTerraformOptions(t *testing.T, examplePath string, vars map[string]interface{}) *terraform.Options

SetupTerraformOptions configures Terraform options for a test

func WaitForResourceDeletion

func WaitForResourceDeletion(t *testing.T, duration time.Duration)

WaitForResourceDeletion waits for a specified duration to allow for resource deletion This helps with eventual consistency issues in AWS

Types

This section is empty.

Jump to

Keyboard shortcuts

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