Sign inSign up

cozero/tf-acceptance-testing

By cozero

Updated over 7 years ago

Container to support acceptance testing of Terraform modules

Image
0

3.4K

cozero/tf-acceptance-testing repository overview

Terraform Acceptance Test Docker Image

Automatic build of terraform acceptance test container for Docker Hub.

Current Containers

build status

Synopsis

A container to test terraform modules.

What's included

Usage

Modify the docker command below, noting in particular:

  • AWS_PROFILE should be setup in your ~/.aws/credentials file and should be a test/dev account

  • In the examples below terraform version referred to is 0.11.7, which corresponds to the image tag used.

  • Create adirectory named tests, add your test cases, e.g dummy_test.go

  • Run command below:

docker run --rm \
  -e GO111MODULE=on
  -e AWS_PROFILE=development \
  -v ~/.aws:/root/.aws \
  -v $(pwd):/app \
  -w /app
  cozero/tf-acceptance-testing:0.11.7 -c 'go mod init tests && cd tests && go test -v -run ./...'

Tag summary

Content type

Image

Digest

Size

314.1 MB

Last updated

over 7 years ago

docker pull cozero/tf-acceptance-testing