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:
@@ -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 ]
|
||||
|
||||
Reference in New Issue
Block a user