1e1423e106
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
16 lines
261 B
Plaintext
16 lines
261 B
Plaintext
coverage>=3.6
|
|
discover
|
|
# Hacking already pins down pep8, pyflakes and flake8
|
|
hacking>=0.8.0,<0.9
|
|
lockfile>=0.8
|
|
mock>=1.0
|
|
mox>=0.5.3
|
|
MySQL-python
|
|
oslosphinx
|
|
oslotest
|
|
psycopg2
|
|
sphinx>=1.1.2,!=1.2.0,<1.3
|
|
testrepository>=0.0.18
|
|
testscenarios>=0.4
|
|
testtools>=0.9.34
|