]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
DB migration tests
authorIvan Kolodyazhny <e0ne@e0ne.info>
Wed, 29 Oct 2014 13:52:54 +0000 (15:52 +0200)
committerIvan Kolodyazhny <ikolodyazhny@mirantis.com>
Mon, 15 Dec 2014 10:56:56 +0000 (12:56 +0200)
commit9b94302d7b695dc25237a02e6c50ad1496b7c579
tree10488958122c5b37d11548009469a64b23991ce7
parent5259bd7f6010f17a129e6bbb1d8e486e93b33b03
DB migration tests

Refactored migration tests to use OpportunisticTestCase, removed
unused code and ``test_migrations.conf`` file.

The main feature of this approach is to create a new database with
random name for each migration test.  This will avoid migration tests of
race conditions and reduce tests intersection. After this change, database
``openstack_citest`` will be used only for initial connection to the database.

``test_migrations.conf`` file not required anymore, because we create test
database for migration test, so we no longer need to keep database credentials.

Implements blueprint: db-migration-tests
Related-bug: #1266595
Change-Id: I4febd485ff53936b636947c86773a23724e24c65
cinder/cmd/manage.py
cinder/db/migration.py
cinder/db/sqlalchemy/migrate_repo/versions/001_cinder_init.py
cinder/db/sqlalchemy/migrate_repo/versions/011_add_bootable_column.py
cinder/db/sqlalchemy/migration.py [deleted file]
cinder/test.py
cinder/tests/test_cmd.py
cinder/tests/test_migrations.conf [deleted file]
cinder/tests/test_migrations.py
setup.cfg
test-requirements.txt