mirror of https://github.com/docker/docs.git
add pause/savestate scnearios to virtualbox integration tests
Signed-off-by: Ken Pepple <ken@solinea.com>
This commit is contained in:
parent
c6d1b6d144
commit
81a9765d35
|
@ -107,6 +107,51 @@ function setup() {
|
||||||
[[ ${lines[1]} == *"Running"* ]]
|
[[ ${lines[1]} == *"Running"* ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@test "$DRIVER: VBoxManage pause" {
|
||||||
|
run VBoxManage controlvm $NAME pause
|
||||||
|
[ "$status" -eq 0 ]
|
||||||
|
}
|
||||||
|
|
||||||
|
@test "$DRIVER: machine should show paused after VBoxManage pause" {
|
||||||
|
run machine ls
|
||||||
|
[ "$status" -eq 0 ]
|
||||||
|
[[ ${lines[1]} == *"Paused"* ]]
|
||||||
|
}
|
||||||
|
|
||||||
|
@test "$DRIVER: start" {
|
||||||
|
run machine start $NAME
|
||||||
|
[ "$status" -eq 0 ]
|
||||||
|
}
|
||||||
|
|
||||||
|
@test "$DRIVER: machine should show running after start" {
|
||||||
|
run machine ls
|
||||||
|
[ "$status" -eq 0 ]
|
||||||
|
[[ ${lines[1]} == *"Running"* ]]
|
||||||
|
}
|
||||||
|
|
||||||
|
@test "$DRIVER: VBoxManage savestate" {
|
||||||
|
run VBoxManage controlvm $NAME savestate
|
||||||
|
[ "$status" -eq 0 ]
|
||||||
|
}
|
||||||
|
|
||||||
|
@test "$DRIVER: machine should show saved after VBoxManage savestate" {
|
||||||
|
run machine ls
|
||||||
|
[ "$status" -eq 0 ]
|
||||||
|
[[ ${lines[1]} == *"$NAME"* ]]
|
||||||
|
[[ ${lines[1]} == *"Saved"* ]]
|
||||||
|
}
|
||||||
|
|
||||||
|
@test "$DRIVER: start" {
|
||||||
|
run machine start $NAME
|
||||||
|
[ "$status" -eq 0 ]
|
||||||
|
}
|
||||||
|
|
||||||
|
@test "$DRIVER: machine should show running after start" {
|
||||||
|
run machine ls
|
||||||
|
[ "$status" -eq 0 ]
|
||||||
|
[[ ${lines[1]} == *"Running"* ]]
|
||||||
|
}
|
||||||
|
|
||||||
@test "$DRIVER: remove" {
|
@test "$DRIVER: remove" {
|
||||||
run machine rm -f $NAME
|
run machine rm -f $NAME
|
||||||
[ "$status" -eq 0 ]
|
[ "$status" -eq 0 ]
|
||||||
|
@ -126,4 +171,3 @@ function setup() {
|
||||||
run rm -rf $MACHINE_STORAGE_PATH
|
run rm -rf $MACHINE_STORAGE_PATH
|
||||||
[ "$status" -eq 0 ]
|
[ "$status" -eq 0 ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue