subunit2sql/subunit2sql/tests/migrations/test_migrations.conf
Matthew Treinish 51a06bb7e3 Add migration tests with data
This commit adds a test class based on the glance test_migrations code
and using some of the code from the WIP oslo.db alembic migration test
mixin.[1] This framework will run the migrations against a real db and
using _pre_upgrade*, _post_upgrade*, and _check* methods data can be
injected and validated during migrations.

[1] https://review.openstack.org/99965

Change-Id: Idb8f203e9e0c721cc3459af2aa75d3c0b20b48fa
2014-09-30 21:07:06 -04:00

18 lines
630 B
Plaintext

[unit_tests]
# Set up any number of databases to test concurrently.
# The "name" used in the test is the config variable key.
#mysql=mysql+mysqldb://openstack_citest:openstack_citest@localhost/openstack_citest
#postgresql=postgresql+psycopg2://openstack_citest:openstack_citest@localhost/openstack_citest
[migration_dbs]
# Migration DB details are listed separately as they can't be connected to
# concurrently. These databases can't be the same as above
#mysql=mysql+mysqldb://user:pass@localhost/test_migrations
#postgresql=postgresql+psycopg2://user:pass@localhost/test_migrations
[walk_style]
snake_walk=yes
downgrade=yes