From 3f348f816cf6dc90bcf0d5d9c20ae0d4e7d149e8 Mon Sep 17 00:00:00 2001 From: Joel Capitao Date: Thu, 14 Nov 2024 14:29:35 +0100 Subject: [PATCH] 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 --- neutron_taas/tests/unit/db/test_migrations.py | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/neutron_taas/tests/unit/db/test_migrations.py b/neutron_taas/tests/unit/db/test_migrations.py index 6d82a9eb..1b3fc9d2 100644 --- a/neutron_taas/tests/unit/db/test_migrations.py +++ b/neutron_taas/tests/unit/db/test_migrations.py @@ -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