Fix test_mysql_innodb
If the default table engine in MySQL wasn't set to be InnoDB, then the sqlalchemy migration version table would cause 'test_mysql_innodb' to fail. Change-Id: I38787d4c3e3f2896fdc349d6f7817d3ef78cc2a5
This commit is contained in:
@@ -243,7 +243,8 @@ class TestMigrations(test.TestCase):
|
||||
noninnodb = connection.execute("SELECT count(*) "
|
||||
"from information_schema.TABLES "
|
||||
"where TABLE_SCHEMA='openstack_citest' "
|
||||
"and ENGINE!='InnoDB'")
|
||||
"and ENGINE!='InnoDB' "
|
||||
"and TABLE_NAME!='migrate_version'")
|
||||
count = noninnodb.scalar()
|
||||
self.assertEqual(count, 0, "%d non InnoDB tables created" % count)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user