Fix reference to `TestModelsMigrations` class

Since [1], there is one single test migration class in Neutron
that uses MySQL only.

This patch is also removing the functional tests using PostgreSQL.

[1]https://review.opendev.org/c/openstack/neutron/+/934171

Change-Id: I83341ee36c2a07d4ae5726c02caeabeb709f53b6
This commit is contained in:
Joel Capitao 2024-11-14 14:29:35 +01:00
parent 2ef1b1f181
commit 3f348f816c

View File

@ -27,7 +27,9 @@ EXTERNAL_TABLES = set(external.TABLES)
VERSION_TABLE = 'taas_alembic_version'
class _TestModelsMigrationsTAAS(test_migrations._TestModelsMigrations):
class TestModelsMigrationsTAAS(test_migrations.TestModelsMigrations,
testlib_api.MySQLTestCaseMixin,
testlib_api.SqlTestCaseLight):
def db_sync(self, engine):
cfg.CONF.set_override(
@ -50,15 +52,3 @@ class _TestModelsMigrationsTAAS(test_migrations._TestModelsMigrations):
if type_ == 'index' and reflected and name.startswith("idx_autoinc_"):
return False
return True
class TestModelsMigrationsMysql(testlib_api.MySQLTestCaseMixin,
_TestModelsMigrationsTAAS,
testlib_api.SqlTestCaseLight):
pass
class TestModelsMigrationsPostgresql(testlib_api.PostgreSQLTestCaseMixin,
_TestModelsMigrationsTAAS,
testlib_api.SqlTestCaseLight):
pass