Tests for database migrations. This test case reads the configuration file test_migrations.conf for database connection settings to use in the tests. For each connection found in the config file, the test case runs a series of test cases to ensure that migrations work properly both upgrading and downgrading, and that no data loss occurs if possible.
Bases: cinder.test.TestCase
Test sqlalchemy-migrate migrations
Test that we can trigger a mysql connection failure and we fail gracefully to ensure we don’t break people without mysql
Test that table creation on mysql only builds InnoDB tables
Walks all version scripts for each tested database, ensuring that there are no errors in the version scripts for each engine