summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-02-28 01:54:15 +0000
committerGerrit Code Review <review@openstack.org>2013-02-28 01:54:15 +0000
commitf86f9a8cb508da22bf02ac602710bacd8e2c1ff2 (patch)
treef3802ffdedb3c5c67eda9a81fc7224a14bc83910 /nova/tests
parent6d9bbb17b7685830e2c497d5aac778b2f69d7c94 (diff)
parent09a3566a46bf2d19bc30065f31a2cc3ad15a33b1 (diff)
Merge "BM Migration 004: Actually drop column"
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/test_migrations.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/nova/tests/test_migrations.py b/nova/tests/test_migrations.py
index d359cbdb5..ebccb84df 100644
--- a/nova/tests/test_migrations.py
+++ b/nova/tests/test_migrations.py
@@ -1023,3 +1023,7 @@ class TestBaremetalMigrations(BaseMigrationTestCase, CommonTestsMixIn):
def _check_002(self, engine, data):
self.assertRaises(sqlalchemy.exc.NoSuchTableError,
get_table, engine, 'bm_deployments')
+
+ def _post_downgrade_004(self, engine):
+ bm_nodes = get_table(engine, 'bm_nodes')
+ self.assertNotIn(u'instance_name', [c.name for c in bm_nodes.columns])