diff --git a/networking_bgpvpn/tests/functional/__init__.py b/networking_bgpvpn/tests/functional/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/networking_bgpvpn/tests/functional/requirements.txt b/networking_bgpvpn/tests/functional/requirements.txt new file mode 100644 index 00000000..926387e6 --- /dev/null +++ b/networking_bgpvpn/tests/functional/requirements.txt @@ -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. diff --git a/networking_bgpvpn/tests/functional/test_placeholder.py b/networking_bgpvpn/tests/functional/test_placeholder.py new file mode 100644 index 00000000..d73a7001 --- /dev/null +++ b/networking_bgpvpn/tests/functional/test_placeholder.py @@ -0,0 +1,7 @@ +from neutron.tests import base + + +class PlaceholderTest(base.BaseTestCase): + + def test_noop(self): + pass diff --git a/tox.ini b/tox.ini index 37aaca2c..e1e08aff 100644 --- a/tox.ini +++ b/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