diff options
| author | Boris Pavlovic <boris@pavlovic.me> | 2013-05-13 14:46:50 +0400 |
|---|---|---|
| committer | Boris Pavlovic <boris@pavlovic.me> | 2013-05-24 14:57:45 +0400 |
| commit | 6eec18975dec823eec513f451492f1befb2e60d0 (patch) | |
| tree | e70dbd3b71eb7b3175280fc07c351d7bcbc4a4f6 /nova/tests | |
| parent | bf4142bc7083120563638d3eaf0e2463ecbfc40b (diff) | |
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
Diffstat (limited to 'nova/tests')
| -rw-r--r-- | nova/tests/test_migrations.py | 4 |
1 files changed, 4 insertions, 0 deletions
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.""" |
