From 4922f963409c345be997706c56d395feccae771d Mon Sep 17 00:00:00 2001 From: armando-migliaccio Date: Tue, 24 Nov 2015 13:56:47 -0800 Subject: [PATCH] Allow API tests to run in the gate For more info, check [1]. [1] Ia7dcc6785390a6012c7ba16a14573aa44f2b6fb5 Related-bug: 1518632 (cherry picked from commit e2d0ffc25aeffc3c125f919166b5a0102af49f08) Change-Id: I89ef8117209357265667f8ace4ea6ab2c998ee0c Co-authored-by: Ihar Hrachyshka --- tox.ini | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/tox.ini b/tox.ini index 34354d028..776178be9 100644 --- a/tox.ini +++ b/tox.ini @@ -65,46 +65,38 @@ exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,to import_exceptions = neutron.i18n local-check-factory = neutron.hacking.checks.factory -# TODO(armax): due to bug #1515335, set TEMPEST_CONFIG_DIR in your -# local env, like this: -# +# If you are running the tests locally you should set the env variable # TEMPEST_CONFIG_DIR=/opt/stack/tempest/etc -# [testenv:apiv1] sitepackages = True +passenv = TEMPEST_CONFIG_DIR setenv = OS_TEST_PATH={toxinidir}/neutron_lbaas/tests/tempest/v1/api OS_TESTR_CONCURRENCY=1 -# TODO(armax): due to bug #1515335, set TEMPEST_CONFIG_DIR in your -# local env, like this: -# +# If you are running the tests locally you should set the env variable # TEMPEST_CONFIG_DIR=/opt/stack/tempest/etc -# [testenv:apiv2] sitepackages = True +passenv = TEMPEST_CONFIG_DIR setenv = OS_TEST_PATH={toxinidir}/neutron_lbaas/tests/tempest/v2/api OS_TESTR_CONCURRENCY=1 -# TODO(armax): due to bug #1515335, set TEMPEST_CONFIG_DIR in your -# local env, like this: -# +# If you are running the tests locally you should set the env variable # TEMPEST_CONFIG_DIR=/opt/stack/tempest/etc -# [testenv:scenario] sitepackages = True +passenv = TEMPEST_CONFIG_DIR setenv = OS_TEST_PATH={toxinidir}/neutron_lbaas/tests/tempest/v2/scenario OS_TESTR_CONCURRENCY=1 -# TODO(armax): due to bug #1515335, set TEMPEST_CONFIG_DIR in your -# local env, like this: -# +# If you are running the tests locally you should set the env variable # TEMPEST_CONFIG_DIR=/opt/stack/tempest/etc -# [testenv:ddt] sitepackages = True +passenv = TEMPEST_CONFIG_DIR setenv = OS_TEST_PATH={toxinidir}/neutron_lbaas/tests/tempest/v2/ddt OS_TESTR_CONCURRENCY=1