Fix integration tests

Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
This commit is contained in:
Nathan LeClaire 2015-05-04 19:00:05 -07:00
parent 6036c28fa5
commit 23f071c76f
11 changed files with 22 additions and 77 deletions

View File

@ -7,7 +7,7 @@ export NAME="bats-$DRIVER-test"
export MACHINE_STORAGE_PATH=/tmp/machine-bats-test-$DRIVER
@test "$DRIVER: machine should not exist" {
run machine active $NAME
run machine inspect $NAME
[ "$status" -eq 1 ]
}
@ -16,11 +16,6 @@ export MACHINE_STORAGE_PATH=/tmp/machine-bats-test-$DRIVER
[ "$status" -eq 0 ]
}
@test "$DRIVER: active" {
run machine active $NAME
[ "$status" -eq 0 ]
}
@test "$DRIVER: ls" {
run machine ls
[ "$status" -eq 0 ]
@ -151,7 +146,7 @@ export MACHINE_STORAGE_PATH=/tmp/machine-bats-test-$DRIVER
@test "$DRIVER: machine should not exist" {
run machine active $NAME
run machine inspect $NAME
[ "$status" -eq 1 ]
}

View File

@ -7,7 +7,7 @@ export NAME="bats-$DRIVER-test"
export MACHINE_STORAGE_PATH=/tmp/machine-bats-test-$DRIVER
@test "$DRIVER: machine should not exist" {
run machine active $NAME
run machine inspect $NAME
[ "$status" -eq 1 ]
}
@ -16,11 +16,6 @@ export MACHINE_STORAGE_PATH=/tmp/machine-bats-test-$DRIVER
[ "$status" -eq 0 ]
}
@test "$DRIVER: active" {
run machine active $NAME
[ "$status" -eq 0 ]
}
@test "$DRIVER: ls" {
run machine ls
[ "$status" -eq 0 ]
@ -98,7 +93,7 @@ export MACHINE_STORAGE_PATH=/tmp/machine-bats-test-$DRIVER
}
@test "$DRIVER: machine should not exist" {
run machine active $NAME
run machine inspect $NAME
[ "$status" -eq 1 ]
}

View File

@ -7,7 +7,7 @@ export NAME="bats-$DRIVER-test"
export MACHINE_STORAGE_PATH=/tmp/machine-bats-test-$DRIVER
@test "$DRIVER: machine should not exist" {
run machine active $NAME
run machine inspect $NAME
[ "$status" -eq 1 ]
}
@ -16,11 +16,6 @@ export MACHINE_STORAGE_PATH=/tmp/machine-bats-test-$DRIVER
[ "$status" -eq 0 ]
}
@test "$DRIVER: active" {
run machine active $NAME
[ "$status" -eq 0 ]
}
@test "$DRIVER: ls" {
run machine ls
[ "$status" -eq 0 ]
@ -158,7 +153,7 @@ export MACHINE_STORAGE_PATH=/tmp/machine-bats-test-$DRIVER
@test "$DRIVER: machine should not exist" {
run machine active $NAME
run machine inspect $NAME
[ "$status" -eq 1 ]
}

View File

@ -7,7 +7,7 @@ export NAME="bats-$DRIVER-test"
export MACHINE_STORAGE_PATH=/tmp/machine-bats-test-$DRIVER
@test "$DRIVER: machine should not exist" {
run machine active $NAME
run machine inspect $NAME
[ "$status" -eq 1 ]
}
@ -16,11 +16,6 @@ export MACHINE_STORAGE_PATH=/tmp/machine-bats-test-$DRIVER
[ "$status" -eq 0 ]
}
@test "$DRIVER: active" {
run machine active $NAME
[ "$status" -eq 0 ]
}
@test "$DRIVER: ls" {
run machine ls
[ "$status" -eq 0 ]
@ -103,7 +98,7 @@ export MACHINE_STORAGE_PATH=/tmp/machine-bats-test-$DRIVER
}
@test "$DRIVER: machine should not exist" {
run machine active $NAME
run machine inspect $NAME
[ "$status" -eq 1 ]
}

View File

@ -7,7 +7,7 @@ export NAME="bats-$DRIVER-test"
export MACHINE_STORAGE_PATH=/tmp/machine-bats-test-$DRIVER
@test "$DRIVER: machine should not exist" {
run machine active $NAME
run machine inspect $NAME
[ "$status" -eq 1 ]
}
@ -16,11 +16,6 @@ export MACHINE_STORAGE_PATH=/tmp/machine-bats-test-$DRIVER
[ "$status" -eq 0 ]
}
@test "$DRIVER: active" {
run machine active $NAME
[ "$status" -eq 0 ]
}
@test "$DRIVER: ls" {
run machine ls
[ "$status" -eq 0 ]
@ -98,7 +93,7 @@ export MACHINE_STORAGE_PATH=/tmp/machine-bats-test-$DRIVER
}
@test "$DRIVER: machine should not exist" {
run machine active $NAME
run machine inspect $NAME
[ "$status" -eq 1 ]
}

View File

@ -7,7 +7,7 @@ export NAME="bats-$DRIVER-test"
export MACHINE_STORAGE_PATH=/tmp/machine-bats-test-$DRIVER
@test "$DRIVER: machine should not exist" {
run machine active $NAME
run machine inspect $NAME
[ "$status" -eq 1 ]
}
@ -16,11 +16,6 @@ export MACHINE_STORAGE_PATH=/tmp/machine-bats-test-$DRIVER
[ "$status" -eq 0 ]
}
@test "$DRIVER: active" {
run machine active $NAME
[ "$status" -eq 0 ]
}
@test "$DRIVER: ls" {
run machine ls
[ "$status" -eq 0 ]
@ -98,7 +93,7 @@ export MACHINE_STORAGE_PATH=/tmp/machine-bats-test-$DRIVER
}
@test "$DRIVER: machine should not exist" {
run machine active $NAME
run machine inspect $NAME
[ "$status" -eq 1 ]
}

View File

@ -7,7 +7,7 @@ export NAME="bats-$DRIVER-test"
export MACHINE_STORAGE_PATH=/tmp/machine-bats-test-$DRIVER
@test "$DRIVER: machine should not exist" {
run machine active $NAME
run machine inspect $NAME
[ "$status" -eq 1 ]
}
@ -16,11 +16,6 @@ export MACHINE_STORAGE_PATH=/tmp/machine-bats-test-$DRIVER
[ "$status" -eq 0 ]
}
@test "$DRIVER: active" {
run machine active $NAME
[ "$status" -eq 0 ]
}
@test "$DRIVER: ls" {
run machine ls
[ "$status" -eq 0 ]
@ -76,7 +71,7 @@ export MACHINE_STORAGE_PATH=/tmp/machine-bats-test-$DRIVER
}
@test "$DRIVER: machine should not exist" {
run machine active $NAME
run machine inspect $NAME
[ "$status" -eq 1 ]
}

View File

@ -7,7 +7,7 @@ export NAME="bats-$DRIVER-test"
export MACHINE_STORAGE_PATH=/tmp/machine-bats-test-$DRIVER
@test "$DRIVER: machine should not exist" {
run machine active $NAME
run machine inspect $NAME
[ "$status" -eq 1 ]
}
@ -16,11 +16,6 @@ export MACHINE_STORAGE_PATH=/tmp/machine-bats-test-$DRIVER
[ "$status" -eq 0 ]
}
@test "$DRIVER: active" {
run machine active $NAME
[ "$status" -eq 0 ]
}
@test "$DRIVER: ls" {
run machine ls
[ "$status" -eq 0 ]
@ -98,7 +93,7 @@ export MACHINE_STORAGE_PATH=/tmp/machine-bats-test-$DRIVER
}
@test "$DRIVER: machine should not exist" {
run machine active $NAME
run machine inspect $NAME
[ "$status" -eq 1 ]
}

View File

@ -43,7 +43,7 @@ buildMachineWithOldIsoCheckUpgrade() {
}
@test "$DRIVER: machine should not exist" {
run machine active $NAME
run machine inspect $NAME
[ "$status" -eq 1 ]
}
@ -57,11 +57,6 @@ buildMachineWithOldIsoCheckUpgrade() {
[ "$status" -eq 0 ]
}
@test "$DRIVER: active" {
run machine active $NAME
[ "$status" -eq 0 ]
}
@test "$DRIVER: check default machine memory size" {
findMemorySize
[[ ${output} == "${DEFAULT_MEMSIZE}" ]]
@ -203,7 +198,7 @@ buildMachineWithOldIsoCheckUpgrade() {
}
@test "$DRIVER: machine should not exist after remove" {
run machine active $NAME
run machine inspect $NAME
[ "$status" -eq 1 ]
}

View File

@ -12,7 +12,7 @@ function setup() {
}
@test "$DRIVER: docker-machine should not exist" {
run docker-machine active $NAME
run docker-machine inspect $NAME
[ "$status" -eq 1 ]
}
@ -21,11 +21,6 @@ function setup() {
[ "$status" -eq 0 ]
}
@test "$DRIVER: active" {
run docker-machine active $NAME
[ "$status" -eq 0 ]
}
@test "$DRIVER: ls" {
run docker-machine ls
[ "$status" -eq 0 ]
@ -103,7 +98,7 @@ function setup() {
}
@test "$DRIVER: docker-machine should not exist" {
run docker-machine active $NAME
run docker-machine inspect $NAME
[ "$status" -eq 1 ]
}

View File

@ -7,7 +7,7 @@ export NAME="bats-$DRIVER-test"
export MACHINE_STORAGE_PATH=/tmp/machine-bats-test-$DRIVER
@test "$DRIVER: machine should not exist" {
run machine active $NAME
run machine inspect $NAME
[ "$status" -eq 1 ]
}
@ -16,11 +16,6 @@ export MACHINE_STORAGE_PATH=/tmp/machine-bats-test-$DRIVER
[ "$status" -eq 0 ]
}
@test "$DRIVER: active" {
run machine active $NAME
[ "$status" -eq 0 ]
}
@test "$DRIVER: ls" {
run machine ls
[ "$status" -eq 0 ]
@ -98,7 +93,7 @@ export MACHINE_STORAGE_PATH=/tmp/machine-bats-test-$DRIVER
}
@test "$DRIVER: machine should not exist" {
run machine active $NAME
run machine inspect $NAME
[ "$status" -eq 1 ]
}