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:
4 changed files with 37 additions and 0 deletions
0
networking_bgpvpn/tests/functional/__init__.py
Normal file
0
networking_bgpvpn/tests/functional/__init__.py
Normal file
5
networking_bgpvpn/tests/functional/requirements.txt
Normal file
5
networking_bgpvpn/tests/functional/requirements.txt
Normal 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.
7
networking_bgpvpn/tests/functional/test_placeholder.py
Normal file
7
networking_bgpvpn/tests/functional/test_placeholder.py
Normal file
@@ -0,0 +1,7 @@
from neutron.tests import base
class PlaceholderTest(base.BaseTestCase):
def test_noop(self):
pass
25
tox.ini
25
tox.ini
@@ -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
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.