# Functions
CleanupTestData cleans up the test data at the given path.
CleanupTestDataFolder cleans up the .test-data folder inside the given folder.
CleanupTestDataFolderE cleans up the .test-data folder inside the given folder.
CloneWithNewRootDir clones the given opts with a new root dir.
CopyTerraformFolderToDest copies the given root folder to a randomly-named temp folder and return the path to the given terraform modules folder within the new temp root folder.
CopyTerraformFolderToTemp copies the given root folder to a randomly-named temp folder and return the path to the given terraform modules folder within the new temp root folder.
FindTerraformModulePathsInRootE returns a slice strings representing the filepaths for all valid Terraform / Terragrunt modules in the given RootDir, subject to the include / exclude filters.
FormatTestDataPath formats a path to save test data.
IsTestDataPresent returns true if a file exists at $path and the test data there is non-empty.
LoadAmiId loads and unserializes an AMI ID from the given folder.
LoadArtifactID loads and unserializes an Artifact ID from the given folder.
LoadEc2KeyPair loads and unserializes an Ec2KeyPair from the given folder.
LoadInt loads a uniquely named int value from the given folder.
LoadKubectlOptions loads and unserializes a KubectlOptions from the given folder.
LoadPackerOptions loads and unserializes PackerOptions from the given folder.
LoadSshKeyPair loads and unserializes an SshKeyPair from the given folder.
LoadString loads and unserializes a uniquely named string value from the given folder.
LoadTerraformOptions loads and unserializes TerraformOptions from the given folder.
LoadTestData loads and unserializes a value stored at the given path.
NewTerragruntValidationOptions returns a ValidationOptions struct, with override-able sane defaults, configured to find and process all directories containing .hcl files.
NewValidationOptions returns a ValidationOptions struct, with override-able sane defaults, configured to find and process all directories containing .tf files.
OPAEvalAllTerraformModules automatically finds all folders specified in RootDir that contain .tf files and runs OPAEval in all of them.
RunTestStage executes the given test stage (e.g., setup, teardown, validation) if an environment variable of the name `SKIP_<stageName>` (e.g., SKIP_teardown) is not set.
SaveAmiId serializes and saves an AMI ID into the given folder.
SaveArtifactID serializes and saves an Artifact ID into the given folder.
SaveEc2KeyPair serializes and saves an Ec2KeyPair into the given folder.
SaveInt saves a uniquely named int value into the given folder.
SaveKubectlOptions serializes and saves KubectlOptions into the given folder.
SavePackerOptions serializes and saves PackerOptions into the given folder.
SaveSshKeyPair serializes and saves an SshKeyPair into the given folder.
SaveString serializes and saves a uniquely named string value into the given folder.
SaveTerraformOptions serializes and saves TerraformOptions into the given folder.
SaveTerraformOptionsIfNotPresent serializes and saves TerraformOptions into the given folder if the file does not exist or the json is empty.
SaveTestData serializes and saves a value used at test time to the given path.
SkipStageEnvVarSet returns true if an environment variable is set instructing Terratest to skip a test stage.
ValidateAllTerraformModules automatically finds all folders specified in RootDir that contain .tf files and runs InitAndValidate in all of them.
# Constants
SKIP_STAGE_ENV_VAR_PREFIX is the prefix used for skipping stage environment variables.
TF represents repositories that contain Terraform code.
TG represents repositories that contain Terragrunt code.
# Structs
ValidationAbsolutePathErr is returned when NewValidationOptions was unable to convert a non-absolute RootDir to an absolute path.
ValidationOptions represent the configuration for a given validation sweep of a target repo.
ValidationUndefinedRootDirErr is returned when NewValidationOptions is called without a RootDir argument.
# Type aliases
ValidateFileType is the underlying module type to search for when performing validation.