This directory contains the functional testing suite for stacker. It exercises all of stacker against a real AWS account.
- First, ensure that you're inside a virtualenv:
$ source venv/bin/activate
- Set a stacker namespace & the AWS region for the test suite to use:
$ export STACKER_NAMESPACE=my-stacker-test-namespace
- Generate an IAM user for the test suite to use:
$ ./stacker.yaml.sh | stacker build -
- Grab the generated key pair for the user and set it in your shell:
$ ./stacker.yaml.sh | stacker info -
$ export AWS_ACCESS_KEY_ID=access-key
$ export AWS_SECRET_ACCESS_KEY=secret-access-key
$ export STACKER_ROLE=<FunctionalTestRole>
- Run the test suite:
$ brew install bats
$ bats .