To run the tests, first you must run the setup terraform in setup-terraform.
This Terraform creates a VPC and ECS cluster.
cd setup-terraform
terraform init
terraform apply
Now you can run the tests. The tests accept flags for passing in information about the
VPC and ECS cluster you've just created.
Switch back to the test/acceptance directory:
To run the tests, use go test from the test/acceptance directory:
go test ./... -p 1 -timeout 90m -v -failfast
You may want to add the -no-cleanup-on-failure flag if you're debugging
a failing test. Without this flag, the tests will delete all resources
regardless of passing or failing.
Cleanup
If the tests haven't cleaned up after themselves you must run terraform destroy
in each directory, e.g.: