Files
docker-machine/test/provision/redhat.bats
Jean-Laurent de Morlhon abca150dd8 Move doubtfull provision test out of the integration folder
Signed-off-by: Jean-Laurent de Morlhon <jeanlaurent@morlhon.net>
2015-11-26 11:16:04 +01:00

21 lines
451 B
Bash

#!/usr/bin/env bats
load ${BASE_TEST_DIR}/helpers.bash
# this should move to the makefile
if [[ "$DRIVER" != "amazonec2" ]]; then
exit 0
fi
require_env AWS_VPC_ID
require_env AWS_ACCESS_KEY_ID
require_env AWS_SECRET_ACCESS_KEY
@test "$DRIVER: create using RedHat AMI" {
# Oh snap, recursive stuff!!
AWS_AMI=ami-12663b7a AWS_SSH_USER=ec2-user run ${BASE_TEST_DIR}/run-bats.sh ${BASE_TEST_DIR}/core
echo ${output}
[ ${status} -eq 0 ]
}