Files
docker-machine/test/integration/virtualbox/guards.bats
T
Jean-Laurent de Morlhon 8eb22b411b Fix #2029 - local drivers dont run with engine-install-url
Signed-off-by: Jean-Laurent de Morlhon <jeanlaurent@morlhon.net>
2016-01-28 18:05:58 +01:00

17 lines
530 B
Bash

#!/usr/bin/env bats
load ${BASE_TEST_DIR}/helpers.bash
only_if_env DRIVER virtualbox
use_disposable_machine
@test "$DRIVER: Should not allow machine creation with bad ISO" {
run machine create -d virtualbox --virtualbox-boot2docker-url http://dev.null:9111/bad.iso $NAME
[[ ${status} -eq 1 ]]
}
@test "$DRIVER: Should not allow machine creation with engine-install-url" {
run machine create --engine-install-url https://test.docker.com -d virtualbox $NAME
[[ ${output} == *"--engine-install-url cannot be used"* ]]
}