tests: ensure gabbi live test fail

This change ensures that the gabbi live test fail
if service url is not present.

Change-Id: Ic83467482555c01b3649a30f1575f745d872f5f9
This commit is contained in:
Mehdi Abaakouk 2015-07-30 06:49:03 +02:00
parent b40b4513e6
commit 23a6eeedba
2 changed files with 3 additions and 0 deletions

View File

@ -44,3 +44,5 @@ def load_tests(loader, tests, pattern):
host=parsed_url.hostname,
port=port,
prefix=prefix)
elif os.getenv('GABBI_LIVE_FAIL_IF_NO_TEST'):
raise RuntimeError('AODH_SERVICE_URL is not set')

View File

@ -36,6 +36,7 @@ commands =
setenv = VIRTUAL_ENV={envdir}
EVENTLET_NO_GREENDNS=yes
OS_TEST_PATH=aodh/tests/functional/
GABBI_LIVE_FAIL_IF_NO_TEST=1
passenv = AODH_*
commands =
bash -x {toxinidir}/run-functional-tests.sh "{posargs}"