heat/heat
Victor Sergeyev 1e1423e106 Run migration tests on PostgreSQL and MySQL
Refactored migration tests due to use OpportunisticTestCase.
This change allows tests use database ``openstack_citest`` only
for connection to the database backend - for each migration test
a new database, with a random name, will be created. This will avoid
migration tests of race conditions and reduce tests interaction.
Added MySQL-python and psycopg2 to test-requirements, because we need
some database connectors to run tests on PostgreSQL and MySQL.

``test_migrations.conf`` file was removed, because we create test
database for migration test, so we no longer need test database
credentials.

Some migrations scripts was modified to ensure, that they executed
with a single DB connection.

Removed get_table() method - we can use a similar function from
oslo.db.sqlalchemy.utils module.

This patch also add "forward compatibility" with the next version of oslo.db
- class BaseMigrationsTestCase was removed from master, so we should
avoid of it's usage and signature of method _walk_versions() from class
test_migrations.WalkVersionsMixin

Co-Authored-By: Roman Podoliaka <rpodolyaka@mirantis.com>

Change-Id: Ia503f01fdf2df00cce7212fcc9e0b6cc98ad6520
2014-08-19 08:24:28 +03:00
..
api Merge "Appropriate exception for signal handling failure" 2014-08-14 19:13:39 +00:00
cloudinit Remove translation from loguserdata 2014-06-01 17:45:46 +02:00
cmd Sync latest oslo.db code 2014-04-11 10:48:46 +03:00
common Merge "Add log output about HTTP calls in cinderclient" 2014-08-18 01:33:02 +00:00
db Run migration tests on PostgreSQL and MySQL 2014-08-19 08:24:28 +03:00
doc Move resource doc generation to doc/source/ext 2013-11-13 15:21:04 +13:00
engine Merge "Add "backup" column to stack table" 2014-08-19 00:13:07 +00:00
locale Imported Translations from Transifex 2014-07-04 06:02:38 +00:00
openstack Migrate to oslo.db 2014-07-15 10:14:56 +02:00
rpc Merge "Add stack-check action to the API" 2014-08-13 07:00:18 +00:00
scaling Use add_resource() to build autoscaling templates 2014-06-05 13:45:14 -04:00
tests Run migration tests on PostgreSQL and MySQL 2014-08-19 08:24:28 +03:00
__init__.py Make the first line of every file consistent. 2014-03-04 09:03:04 -06:00
version.py Make the first line of every file consistent. 2014-03-04 09:03:04 -06:00