[OVN] Isolate test_ovn_client* Functional Tests
This solution is similar to what was implemented in [1]. [1] https://review.opendev.org/q/topic:%22bug/2088423%22 Related-Bug: #2088423 Change-Id: I960a734f364959c391ecbd6b630f997de4ce49ff
This commit is contained in:
parent
e0d9797a43
commit
750ff49f6b
@ -21,6 +21,7 @@ from neutron_lib.services.qos import constants as qos_const
|
||||
from oslo_config import cfg
|
||||
from oslo_utils import strutils
|
||||
from oslo_utils import uuidutils
|
||||
from sqlalchemy.dialects.mysql import dialect as mysql_dialect
|
||||
|
||||
from neutron.common.ovn import constants as ovn_const
|
||||
from neutron.common.ovn import utils as ovn_utils
|
||||
@ -28,9 +29,11 @@ from neutron.conf.plugins.ml2.drivers.ovn import ovn_conf as ovn_config
|
||||
from neutron.tests.functional import base
|
||||
from neutron.tests.unit.api import test_extensions
|
||||
from neutron.tests.unit.extensions import test_l3
|
||||
from neutron.tests.unit import testlib_api
|
||||
|
||||
|
||||
class TestOVNClient(base.TestOVNFunctionalBase,
|
||||
class TestOVNClient(testlib_api.MySQLTestCaseMixin,
|
||||
base.TestOVNFunctionalBase,
|
||||
test_l3.L3NatTestCaseMixin):
|
||||
|
||||
_extension_drivers = ['qos']
|
||||
@ -38,6 +41,7 @@ class TestOVNClient(base.TestOVNFunctionalBase,
|
||||
def setUp(self, *args):
|
||||
service_plugins = {plugins_constants.QOS: 'qos'}
|
||||
super().setUp(service_plugins=service_plugins)
|
||||
self.assertEqual(mysql_dialect.name, self.db.engine.dialect.name)
|
||||
ext_mgr = test_l3.L3TestExtensionManager()
|
||||
self.ext_api = test_extensions.setup_extensions_middleware(ext_mgr)
|
||||
|
||||
|
2
tox.ini
2
tox.ini
@ -85,7 +85,7 @@ description =
|
||||
Run functional gate tests that require sudo privileges.
|
||||
setenv = {[testenv:dsvm-functional]setenv}
|
||||
deps = {[testenv:dsvm-functional]deps}
|
||||
test_regex = .*MySQL\.|.*test_get_all_devices|.*TestMetadataAgent\.|.*BaseOVSTestCase\.|.*test_periodic_sync_routers_task|.*TestOvnNbSync.*|.*TestMaintenance|.*TestLogMaintenance|.*TestNBDbMonitor.*
|
||||
test_regex = .*MySQL\.|.*test_get_all_devices|.*TestMetadataAgent\.|.*BaseOVSTestCase\.|.*test_periodic_sync_routers_task|.*TestOvnNbSync.*|.*TestMaintenance|.*TestLogMaintenance|.*TestNBDbMonitor.*|.*test_ovn_client.*
|
||||
commands =
|
||||
bash {toxinidir}/tools/deploy_rootwrap.sh {toxinidir} {envdir}/etc {envdir}/bin
|
||||
stestr run --slowest --exclude-regex ({[testenv:dsvm-functional-gate]test_regex}|neutron.tests.functional.agent.l3.*) {posargs}
|
||||
|
Loading…
x
Reference in New Issue
Block a user