Documentation ¶
Overview ¶
Package test contains acceptance tests.
Index ¶
- func AssertBucketDeleted(t *testing.T, actualBucketName string, env EnvVars)
- func AssertEcsClusterDeleted(t *testing.T, env EnvVars, id string)
- func AssertEcsClusterExists(t *testing.T, env EnvVars, id string)
- func AssertIamPolicyDeleted(t *testing.T, actualIamPolicyARN string, env EnvVars)
- func AssertIamPolicyExists(t *testing.T, region string, name string)
- func AssertIamPolicyExistsE(t *testing.T, region string, arn string) error
- func AssertIamRoleDeleted(t *testing.T, actualIamRole string, env EnvVars)
- func AssertIamRoleExists(t *testing.T, region string, name string)
- func AssertIamRoleExistsE(t *testing.T, region string, name string) error
- func AssertLambdaFunctionDeleted(t *testing.T, env EnvVars, id string)
- func AssertLambdaFunctionExists(t *testing.T, env EnvVars, id string)
- func AssertVpcDeleted(t *testing.T, actualVpcID string, env EnvVars)
- func AssertVpcExists(t *testing.T, actualVpcID string, env EnvVars)
- func GetTerraformOptions(terraformDir string, env EnvVars, optionalVars ...map[string]interface{}) *terraform.Options
- func NewLambdaClient(t *testing.T, region string) *lambda.Lambda
- func NewLambdaClientE(region string) (*lambda.Lambda, error)
- func WriteRemoteStateToLocalFile(t *testing.T, env EnvVars, terraformOptions *terraform.Options) (string, error)
- type EnvVars
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertBucketDeleted ¶
AssertBucketDeleted checks if an AWS S3 bucket has been deleted.
func AssertIamPolicyDeleted ¶
AssertIamPolicyDeleted checks if an IAM policy has been deleted.
func AssertIamPolicyExists ¶
AssertIamPolicyExists checks if the given IAM policy exists in the given region and fail the test if it does not.
func AssertIamPolicyExistsE ¶
AssertIamPolicyExistsE checks if the given IAM role exists in the given region and return an error if it does not.
func AssertIamRoleDeleted ¶
AssertIamRoleDeleted checks if an IAM role has been deleted.
func AssertIamRoleExists ¶
AssertIamRoleExists checks if the given IAM role exists in the given region and fail the test if it does not.
func AssertIamRoleExistsE ¶
AssertIamRoleExistsE checks if the given IAM role exists in the given region and return an error if it does not.
func AssertVpcDeleted ¶
AssertVpcDeleted checks if an VPC has been deleted.
func GetTerraformOptions ¶
func NewLambdaClient ¶
NewLambdaClient creates a Lambda client.
func NewLambdaClientE ¶
NewLambdaClientE creates a Lambda client.