packer/test/builder_amazon_ebs.bats
2013-12-12 11:29:59 -08:00

17 lines
396 B
Bash
Executable file

#!/usr/bin/env bats
#
# This tests the amazon-ebs builder. The teardown function will automatically
# delete any AMIs with a tag of `packer-test` being equal to "true" so
# be sure any test cases set this.
load test_helper
fixtures amazon-ebs
teardown() {
aws_ami_cleanup
}
@test "amazon-ebs: build minimal.json" {
run packer build $FIXTURE_ROOT/minimal.json
[ "$status" -eq 0 ]
}