Fix #2863 - write IT test for bugsnag

Signed-off-by: Jean-Laurent de Morlhon <jeanlaurent@morlhon.net>
This commit is contained in:
Jean-Laurent de Morlhon
2016-01-19 15:18:59 +01:00
parent 81a13c4af9
commit 872241e1ae

View File

@@ -0,0 +1,15 @@
#!/usr/bin/env bats
load ${BASE_TEST_DIR}/helpers.bash
only_if_env DRIVER virtualbox
use_disposable_machine
@test "$DRIVER: should send bugsnag report" {
# we exploit a 'bug' where vboxmanage wont allow a machine created with 1mb of RAM
run machine --bugsnag-api-token nonexisting -D create -d virtualbox --virtualbox-memory 1 $NAME
echo ${output}
[ "$status" -eq 1 ]
[[ ${output} == *"notifying bugsnag"* ]]
}