Merge "[OVN] Use the MySQL backend for the `TestOvnNbSync` tests (2)"

This commit is contained in:
Zuul 2024-12-17 16:08:59 +00:00 committed by Gerrit Code Review
commit 046fd37d9d

View File

@ -29,6 +29,7 @@ from oslo_config import cfg
from oslo_utils import uuidutils
from ovsdbapp.backend.ovs_idl import idlutils
from ovsdbapp import constants as ovsdbapp_const
from sqlalchemy.dialects.mysql import dialect as mysql_dialect
from neutron.common.ovn import acl as acl_utils
from neutron.common.ovn import constants as ovn_const
@ -48,13 +49,14 @@ from neutron.tests.unit.extensions import test_securitygroup
from neutron.tests.unit import testlib_api
class TestOvnNbSync(base.TestOVNFunctionalBase,
testlib_api.MySQLTestCaseMixin):
class TestOvnNbSync(testlib_api.MySQLTestCaseMixin,
base.TestOVNFunctionalBase):
_extension_drivers = ['port_security', 'dns', 'qos', 'revision_plugin']
def setUp(self, *args):
super().setUp(maintenance_worker=True)
self.assertEqual(mysql_dialect.name, self.db.engine.dialect.name)
ovn_config.cfg.CONF.set_override('dns_domain', 'ovn.test')
cfg.CONF.set_override('quota_security_group_rule', -1, group='QUOTAS')
ext_mgr = test_extraroute.ExtraRouteTestExtensionManager()