Add tests for url/env commands when stopped w/virtualbox

Refs #1168

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
This commit is contained in:
Mike Fiedler
2015-05-20 22:34:39 -04:00
parent ce61151e2b
commit 0282a7d544

View File

@@ -124,6 +124,18 @@ buildMachineWithOldIsoCheckUpgrade() {
[[ "$status" -eq 1 ]]
}
@test "$DRIVER: url should show an error when machine is stopped" {
run machine url $NAME
[ "$status" -eq 1 ]
[[ ${output} == "host is not running" ]]
}
@test "$DRIVER: env should show an error when machine is stopped" {
run machine env $NAME
[ "$status" -eq 1 ]
[[ ${output} == *"not running. Please start this with"* ]]
}
@test "$DRIVER: start" {
run machine start $NAME
[ "$status" -eq 0 ]