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:
parent
b40b4513e6
commit
23a6eeedba
@ -44,3 +44,5 @@ def load_tests(loader, tests, pattern):
|
|||||||
host=parsed_url.hostname,
|
host=parsed_url.hostname,
|
||||||
port=port,
|
port=port,
|
||||||
prefix=prefix)
|
prefix=prefix)
|
||||||
|
elif os.getenv('GABBI_LIVE_FAIL_IF_NO_TEST'):
|
||||||
|
raise RuntimeError('AODH_SERVICE_URL is not set')
|
||||||
|
1
tox.ini
1
tox.ini
@ -36,6 +36,7 @@ commands =
|
|||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv = VIRTUAL_ENV={envdir}
|
||||||
EVENTLET_NO_GREENDNS=yes
|
EVENTLET_NO_GREENDNS=yes
|
||||||
OS_TEST_PATH=aodh/tests/functional/
|
OS_TEST_PATH=aodh/tests/functional/
|
||||||
|
GABBI_LIVE_FAIL_IF_NO_TEST=1
|
||||||
passenv = AODH_*
|
passenv = AODH_*
|
||||||
commands =
|
commands =
|
||||||
bash -x {toxinidir}/run-functional-tests.sh "{posargs}"
|
bash -x {toxinidir}/run-functional-tests.sh "{posargs}"
|
||||||
|
Loading…
Reference in New Issue
Block a user