test

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package test contains acceptance tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertVpcDeleted

func AssertVpcDeleted(t *testing.T, actualVpcID string, profile, region string)

func AssertVpcExists

func AssertVpcExists(t *testing.T, actualVpcID, profile, region string)

func GetTerraformOptions

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

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