test

package
v0.0.0-...-75c6b3a Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TfStateBucket is the S3 bucket that stores all Terraform states of acceptance tests.
	TfStateBucket = "awstools-testacc-tfstate-492043"
)

Variables

This section is empty.

Functions

func GetTerraformOptions

func GetTerraformOptions(tfStateBucket, terraformDir string, env Vars,
	overrideVars ...map[string]interface{}) *terraform.Options

GetTerraformOptions returns options to run Terraform commands for tests. Note: tfStateBucket is the S3 bucket that stores all Terraform states of acceptance tests. The bucket must be located in "profile1" and "region1".

func SetMultiEnvs

func SetMultiEnvs(variables map[string]string) error

func UnsetAWSEnvs

func UnsetAWSEnvs() error

func UnsetMultiEnvs

func UnsetMultiEnvs(variables []string) error

Types

type Vars

type Vars struct {
	AWSProfile1 string
	AWSProfile2 string
	AWSRegion1  string
	AWSRegion2  string
}

Vars are environment variables used in tests.

func Init

func Init(t *testing.T) Vars

Init sets variables for acceptance tests. Variables can be overwritten by environment variables.

Jump to

Keyboard shortcuts

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