2013-12-11 19:13:49 -05:00
|
|
|
#!/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() {
|
2013-12-11 19:19:53 -05:00
|
|
|
aws_ami_cleanup
|
2013-12-11 19:13:49 -05:00
|
|
|
}
|
|
|
|
|
2013-12-12 14:29:59 -05:00
|
|
|
@test "amazon-ebs: build minimal.json" {
|
2013-12-11 19:13:49 -05:00
|
|
|
run packer build $FIXTURE_ROOT/minimal.json
|
|
|
|
[ "$status" -eq 0 ]
|
|
|
|
}
|