summaryrefslogtreecommitdiff
path: root/ironic/tests/unit/db/sqlalchemy/test_migrations.py
diff options
context:
space:
mode:
Diffstat (limited to 'ironic/tests/unit/db/sqlalchemy/test_migrations.py')
-rw-r--r--ironic/tests/unit/db/sqlalchemy/test_migrations.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ironic/tests/unit/db/sqlalchemy/test_migrations.py b/ironic/tests/unit/db/sqlalchemy/test_migrations.py
index f9081a6df..4abd1cbc4 100644
--- a/ironic/tests/unit/db/sqlalchemy/test_migrations.py
+++ b/ironic/tests/unit/db/sqlalchemy/test_migrations.py
@@ -1257,6 +1257,10 @@ class MigrationCheckersMixin(object):
self.assertIsInstance(node_inventory.c.node_id.type,
sqlalchemy.types.Integer)
+ def _check_4dbec778866e(self, engine, data):
+ nodes = db_utils.get_table(engine, 'nodes')
+ self.assertIsInstance(nodes.c.shard.type, sqlalchemy.types.String)
+
def test_upgrade_and_version(self):
with patch_with_engine(self.engine):
self.migration_api.upgrade('head')