diff options
author | Simon Chang <schang@tesora.com> | 2014-08-12 12:24:54 -0400 |
---|---|---|
committer | Simon Chang <schang@tesora.com> | 2014-09-19 16:56:31 -0400 |
commit | 06e0aa25a066cb889fb8cb72708dd504cf84a4bd (patch) | |
tree | d23b735d8faf232ceeb6ba46db6ac12cf1399f27 /run_tests.py | |
parent | 5e7675db4a060335924f2cc6da74dd1ea4819cfa (diff) | |
download | trove-06e0aa25a066cb889fb8cb72708dd504cf84a4bd.tar.gz |
Fixed database migration script issues
The db downgrade scripts are currently not dropping foreign key
constraints, causing errors when the script tries to drop related
tables on downgrade.
This commit address issues in the migration scripts, and also
introduces a new test script to test the migration scripts, so that
issues can be prevented in the future. The new test script is based
on the existing migration test script implementated in Nova.
Change-Id: I240d81afc3e43fd3711de8c156cfb43fd14850bf
Closes-Bug: #1347114
Diffstat (limited to 'run_tests.py')
-rw-r--r-- | run_tests.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/run_tests.py b/run_tests.py index 617cf35a..9340fb35 100644 --- a/run_tests.py +++ b/run_tests.py @@ -209,6 +209,7 @@ if __name__ == "__main__": from trove.tests.api.mgmt import instances_actions as mgmt_actions # noqa from trove.tests.api.mgmt import storage # noqa from trove.tests.api.mgmt import malformed_json # noqa + from trove.tests.db import migrations # noqa except Exception as e: print("Run tests failed: %s" % e) traceback.print_exc() |