]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add time_type dictionary to test_migrations
authorJay S. Bryant <jsbryant@us.ibm.com>
Mon, 6 Jan 2014 22:32:00 +0000 (16:32 -0600)
committerGerrit Code Review <review@openstack.org>
Tue, 7 Jan 2014 21:22:09 +0000 (21:22 +0000)
commita9527de9ed3a2eae951564c3c74b7319113e8bf5
treef851f5401de7dbadb34e3670bd071fa168f151dc
parent2a7b11922bd9389287915c45de92ca5eed3d448e
Add time_type dictionary to test_migrations

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

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

Change-Id: Ic9921ff9fda001a66c0ea3a6a75c8adefa60b107
Closes-bug: 1262426
cinder/tests/test_migrations.py