test

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package test contains acceptance tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertBucketDeleted

func AssertBucketDeleted(t *testing.T, actualBucketName string, env EnvVars)

AssertBucketDeleted checks if an AWS S3 bucket has been deleted.

func AssertEcsClusterDeleted

func AssertEcsClusterDeleted(t *testing.T, env EnvVars, id string)

func AssertEcsClusterExists

func AssertEcsClusterExists(t *testing.T, env EnvVars, id string)

func AssertIamPolicyDeleted

func AssertIamPolicyDeleted(t *testing.T, actualIamPolicyARN string, env EnvVars)

AssertIamPolicyDeleted checks if an IAM policy has been deleted.

func AssertIamPolicyExists

func AssertIamPolicyExists(t *testing.T, region string, name string)

AssertIamPolicyExists checks if the given IAM policy exists in the given region and fail the test if it does not.

func AssertIamPolicyExistsE

func AssertIamPolicyExistsE(t *testing.T, region string, arn string) error

AssertIamPolicyExistsE checks if the given IAM role exists in the given region and return an error if it does not.

func AssertIamRoleDeleted

func AssertIamRoleDeleted(t *testing.T, actualIamRole string, env EnvVars)

AssertIamRoleDeleted checks if an IAM role has been deleted.

func AssertIamRoleExists

func AssertIamRoleExists(t *testing.T, region string, name string)

AssertIamRoleExists checks if the given IAM role exists in the given region and fail the test if it does not.

func AssertIamRoleExistsE

func AssertIamRoleExistsE(t *testing.T, region string, name string) error

AssertIamRoleExistsE checks if the given IAM role exists in the given region and return an error if it does not.

func AssertLambdaFunctionDeleted

func AssertLambdaFunctionDeleted(t *testing.T, env EnvVars, id string)

func AssertLambdaFunctionExists

func AssertLambdaFunctionExists(t *testing.T, env EnvVars, id string)

func AssertVpcDeleted

func AssertVpcDeleted(t *testing.T, actualVpcID string, env EnvVars)

AssertVpcDeleted checks if an VPC has been deleted.

func AssertVpcExists

func AssertVpcExists(t *testing.T, actualVpcID string, env EnvVars)

func GetTerraformOptions

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

func NewLambdaClient

func NewLambdaClient(t *testing.T, region string) *lambda.Lambda

NewLambdaClient creates a Lambda client.

func NewLambdaClientE

func NewLambdaClientE(region string) (*lambda.Lambda, error)

NewLambdaClientE creates a Lambda client.

func WriteRemoteStateToLocalFile

func WriteRemoteStateToLocalFile(t *testing.T, env EnvVars, terraformOptions *terraform.Options) (string, error)

Types

type EnvVars

type EnvVars struct {
	AWSRegion  string
	AWSProfile string
}

EnvVars contains environment variables for that must be set for tests.

func InitEnv

func InitEnv(t *testing.T) EnvVars

InitEnv sets environment variables for acceptance tests.

Jump to

Keyboard shortcuts

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