Remove downgrade tests

As per
https://github.com/openstack/openstack-specs/blob/master/specs/no-downward-sql-migration.rst
we no longer support downgrades.

Change-Id: I13edde60a61de09d83811bfa00733b5dec7771b4
This commit is contained in:
Joshua Hesketh 2015-04-21 12:21:12 +10:00
parent 9b2c312aa3
commit 9e8ddc0e1d
1 changed files with 15 additions and 10 deletions

View File

@ -253,19 +253,24 @@ echo "Now test the patchset"
pip_requires
db_sync "patchset"
# Determine the schema version
version=`mysql -u $DB_USER --password=$DB_PASS $DB_NAME -e "select * from migrate_version \G" | grep version | sed 's/.*: //'`
echo "Schema version is $version"
# =============================================================================
# We used to do downgrade testing, but nova no longer supports it
# https://github.com/openstack/openstack-specs/blob/master/specs/no-downward-sql-migration.rst
echo "Now downgrade all the way back to the last stable version (v$last_stable_version)"
db_sync "downgrade" $last_stable_version
# # Determine the schema version
# version=`mysql -u $DB_USER --password=$DB_PASS $DB_NAME -e "select * from migrate_version \G" | grep version | sed 's/.*: //'`
# echo "Schema version is $version"
# Determine the schema version
version=`mysql -u $DB_USER --password=$DB_PASS $DB_NAME -e "select * from migrate_version \G" | grep version | sed 's/.*: //'`
echo "Schema version is $version"
# echo "Now downgrade all the way back to the last stable version (v$last_stable_version)"
# db_sync "downgrade" $last_stable_version
echo "And now back up to head from the start of trunk"
db_sync "patchset"
# # Determine the schema version
# version=`mysql -u $DB_USER --password=$DB_PASS $DB_NAME -e "select * from migrate_version \G" | grep version | sed 's/.*: //'`
# echo "Schema version is $version"
# echo "And now back up to head from the start of trunk"
# db_sync "patchset"
# =============================================================================
# Determine the final schema version
version=`mysql -u $DB_USER --password=$DB_PASS $DB_NAME -e "select * from migrate_version \G" | grep version | sed 's/.*: //'`