1ce4b9a9f5
This is the next step towards CI/CD: This code enables testing of DB migrations against real databases - MySQL and Postgres. Unit testing on in-memory sqlite doesn't work with this patch (there seems to be a problem with Alembic/in-memory-sqlite combination). In case if MySQL and PostgreSQL with specifc user/password and database are present, opportunistic tests will be started automatically. See storyboard/tests/db/sqlalchemy/test_migrations.py for instructions. OpenStack CI infrastructure provides these, so we get tests against MySQL and Postgres with this commit. Note(1): this patch doesn't modify database model. The main goal of this patch is to enable continuous testing of DB migrations. Note(2): most of the code is based on Nova. Which is good because eventually it'll be extracted to Oslo library and we'll be able to use Oslo instead of custom code. Change-Id: Ia763124bea9ac8e39c6604f04fd99fa83645d5ba
23 lines
402 B
Plaintext
23 lines
402 B
Plaintext
hacking>=0.5.6,<0.8
|
|
|
|
coverage>=3.6
|
|
discover
|
|
fixtures>=0.3.14
|
|
mock>=1.0
|
|
python-subunit
|
|
oslo.sphinx
|
|
testrepository>=0.0.17
|
|
testscenarios>=0.4,<0.5
|
|
testtools>=0.9.32
|
|
|
|
# Doc requirements
|
|
sphinx>=1.1.2,<1.2
|
|
sphinxcontrib-pecanwsme>=0.5
|
|
eventlet>=0.13.0
|
|
MySQL-python
|
|
psycopg2
|
|
|
|
# openstack/common/db/sqlalchemy/utils.py depends on this
|
|
# we don't use migrate framework in storyboard
|
|
sqlalchemy-migrate>=0.8.2
|