]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add bool_type dictionary to test_migrations
authorJay S. Bryant <jsbryant@us.ibm.com>
Mon, 6 Jan 2014 20:45:34 +0000 (14:45 -0600)
committerJay S. Bryant <jsbryant@us.ibm.com>
Tue, 7 Jan 2014 20:09:01 +0000 (14:09 -0600)
commit2a7b11922bd9389287915c45de92ca5eed3d448e
tree6ffd3169a05a60d5bebd13df76e5c3dd71e95ca0
parent86f6fde84ee1987c1ec2dad377e2596612aa97e4
Add bool_type dictionary to test_migrations

A number of MySQL migration tests fail because the test case
is verifying that an sqlalchemy.types.BOOLEAN column was created.
When the column type is checked, however, mysql reports the type as
sqlalchemy.dialects.mysql.TINYINT.  The mismatch causes numerous
test cases to fail for MySQL.

This creates a dictionary for each engine being tested to handle the
different boolean types.

postgresql and DB2 encounter similar issues.  Subsequent patches
will make the appropriate changes for those databases.

Change-Id: I81cb3c6feeacf887f1f473ec54414e0e215d2c24
Closes-bug: 1260126
cinder/tests/test_migrations.py