Support infrastructure for functional tests.

- Modified tox.ini with functional and dsvm-functional entries.
- Added a folder functional with an empty file for added requirements and a
 placeholder test so that the infrastructure does not complain.
- No rootwrap at this stage.
Change-Id: Iabb47feb5dc05c671aeb0d4b91b8835e7ee66427
Related-Bug: 1632212
This commit is contained in:
Pierre Crégut
2016年10月12日 13:59:58 +02:00
parent 340aa439cb
commit 2840d82fbb

View File

@@ -0,0 +1,5 @@
# Additional requirements for functional tests
# The order of packages is significant, because pip processes them in the order
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.

View File

@@ -0,0 +1,7 @@
from neutron.tests import base
class PlaceholderTest(base.BaseTestCase):
def test_noop(self):
pass

25
tox.ini
View File

@@ -28,6 +28,31 @@ commands =
pylint --rcfile=.pylintrc --output-format=colorized doc/source/samples
neutron-db-manage --subproject networking-bgpvpn --database-connection sqlite:// check_migration
[testenv:dsvm]
setenv = OS_FAIL_ON_MISSING_DEPS=1
OS_LOG_PATH={env:OS_LOG_PATH:/opt/stack/logs}
[testenv:functional]
setenv = {[testenv]setenv}
OS_TEST_TIMEOUT=180
OS_TEST_PATH=./networking_bgpvpn/tests/functional
OS_LOG_PATH={env:OS_LOG_PATH:/opt/stack/logs}
deps =
{[testenv]deps}
-r{toxinidir}/networking_bgpvpn/tests/functional/requirements.txt
commands =
{toxinidir}/tools/ostestr_compat_shim.sh {posargs}
[testenv:dsvm-functional]
basepython = python2.7
setenv = {[testenv:functional]setenv}
{[testenv:dsvm]setenv}
sitepackages=True
deps =
{[testenv:functional]deps}
commands =
{toxinidir}/tools/ostestr_compat_shim.sh {posargs}
[testenv:py27]
setenv = OS_FAIL_ON_MISSING_DEPS=1
Reference in New Issue
openstack/networking-bgpvpn
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.