From 6eec18975dec823eec513f451492f1befb2e60d0 Mon Sep 17 00:00:00 2001 From: Boris Pavlovic Date: Mon, 13 May 2013 14:46:50 +0400 Subject: Sync shadow table for 175 and 176 migration To be able to use db archiving our table and shadow table should have the same columns. fixes bug 1176443 Change-Id: I461a6d0e3661e2b60c266dffff38e3317784c113 --- nova/tests/test_migrations.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nova/tests') diff --git a/nova/tests/test_migrations.py b/nova/tests/test_migrations.py index 688db500d..d78928790 100644 --- a/nova/tests/test_migrations.py +++ b/nova/tests/test_migrations.py @@ -1328,6 +1328,10 @@ class TestNovaMigrations(BaseMigrationTestCase, CommonTestsMixIn): cell = cells.select(cells.c.id == 5).execute().first() self.assertEqual(0, cell.deleted) + def _check_180(self, engine, data): + self.assertTrue(db_utils.check_shadow_table(engine, + "volume_usage_cache")) + class TestBaremetalMigrations(BaseMigrationTestCase, CommonTestsMixIn): """Test sqlalchemy-migrate migrations.""" -- cgit