acceptance

module
v0.0.0-...-93ef53b Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MPL-2.0

README

Acceptance Tests

These tests run the Terraform code.

Prerequisites

The following prerequisites are needed to run the acceptance tests:

Instructions

  1. 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
    
  2. 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:

  3. 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.:

  • test/acceptance/tests/basic/terraform/lambda
  • test/acceptance/tests/basic/terraform/setup

Directories

Path Synopsis
framework
tests

Jump to

Keyboard shortcuts

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