From 04f0d7688ac4a46fc46f4428765bd05b4b022470 Mon Sep 17 00:00:00 2001 From: Boris Pavlovic Date: Mon, 13 May 2013 17:36:10 +0400 Subject: [PATCH] Sync shadow table for 159 migration To be able to use db archiving our table and shadow table should have the same columns. fixes bug 1179507 Change-Id: Ia8a0271505d374456a9ff14d314e80af9bad4a2b --- nova/tests/test_migrations.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nova/tests/test_migrations.py b/nova/tests/test_migrations.py index 0b7e361f..00cfdbf6 100644 --- a/nova/tests/test_migrations.py +++ b/nova/tests/test_migrations.py @@ -1408,6 +1408,13 @@ class TestNovaMigrations(BaseMigrationTestCase, CommonTestsMixIn): table_name = 'security_group_default_rules' self.assertTrue(db_utils.check_shadow_table(engine, table_name)) + def _check_184(self, engine, data): + self.assertTrue(db_utils.check_shadow_table(engine, 'instances')) + self.assertTrue(db_utils.check_shadow_table(engine, 'networks')) + self.assertTrue(db_utils.check_shadow_table(engine, 'fixed_ips')) + self.assertTrue(db_utils.check_shadow_table(engine, 'floating_ips')) + self.assertTrue(db_utils.check_shadow_table(engine, 'console_pools')) + class TestBaremetalMigrations(BaseMigrationTestCase, CommonTestsMixIn): """Test sqlalchemy-migrate migrations."""