From fb6915d01630084150398481e15f96a021c135d8 Mon Sep 17 00:00:00 2001 From: Yushiro FURUKAWA Date: Tue, 7 Feb 2017 17:27:42 +0900 Subject: [PATCH] Add functional test to run dsvm-functional This commit adds dummy test code in order to provide functional test. (cherry picked from commit 70ea2d4f8df86822cfae7dc003fe3b9a33c13c65) Co-Authored-By: Reedip Banerjee Co-Authored-By: Nate Johnston Change-Id: Ia19405de948fc822b0d97490eb02b428c3ad9987 Closes-Bug: #1661418 --- .../tests/functional/db/test_migrations.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/neutron_fwaas/tests/functional/db/test_migrations.py b/neutron_fwaas/tests/functional/db/test_migrations.py index 44fd38844..02e13e882 100644 --- a/neutron_fwaas/tests/functional/db/test_migrations.py +++ b/neutron_fwaas/tests/functional/db/test_migrations.py @@ -15,6 +15,7 @@ from oslo_config import cfg from neutron.db.migration.alembic_migrations import external from neutron.db.migration import cli as migration from neutron.tests.functional.db import test_migrations +from neutron.tests.unit import testlib_api from neutron_fwaas.db.models import head @@ -47,3 +48,15 @@ class _TestModelsMigrationsFWaaS(test_migrations._TestModelsMigrations): if type_ == 'index' and reflected and name.startswith("idx_autoinc_"): return False return True + + +class TestModelsMigrationsMysql(testlib_api.MySQLTestCaseMixin, + _TestModelsMigrationsFWaaS, + testlib_api.SqlTestCaseLight): + pass + + +class TestModelsMigrationsPostgresql(testlib_api.PostgreSQLTestCaseMixin, + _TestModelsMigrationsFWaaS, + testlib_api.SqlTestCaseLight): + pass