summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-02-22 18:50:03 +0000
committerGerrit Code Review <review@openstack.org>2013-02-22 18:50:03 +0000
commit95b7d2c06eaebfd974eae3cd7ddf707bed332f47 (patch)
treeecba12107e52f11d18dae8f40336a615e0e86376 /nova/tests
parent6e2bde838dae4fb1b68ce1457bfd287213e4b212 (diff)
parent9859a572dbfefc93de69a6fddb990060e08b24e1 (diff)
Merge "Migration 146: Execute delete call."
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/test_migrations.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/nova/tests/test_migrations.py b/nova/tests/test_migrations.py
index 2a963290a..7c75a64ea 100644
--- a/nova/tests/test_migrations.py
+++ b/nova/tests/test_migrations.py
@@ -561,6 +561,13 @@ class TestNovaMigrations(BaseMigrationTestCase, CommonTestsMixIn):
aggregate_md.c.aggregate_id == data['id']).execute().first()
self.assertEqual(data['availability_zone'], md['value'])
+ def _post_downgrade_146(self, engine):
+ # Downgrade should delete availability_zone aggregate_metadata entries
+ aggregate_md = get_table(engine, 'aggregate_metadata')
+ num_azs = aggregate_md.count().where(
+ aggregate_md.c.key == 'availability_zone').execute().scalar()
+ self.assertEqual(0, num_azs)
+
# migration 147, availability zone transition for services
def _pre_upgrade_147(self, engine):
az = 'test_zone'