Merge "Added new exception to handle CinderClientException"

This commit is contained in:
Jenkins
2016-05-11 19:25:41 +00:00
committed by Gerrit Code Review
6 changed files with 45 additions and 1 deletions
@@ -262,6 +262,12 @@ class MigrateServerTestsV21(admin_only_action_common.CommonTests):
self._test_migrate_live_failed_with_exception(
exception.MigrationPreCheckError(reason=''))
def test_migrate_live_migration_precheck_client_exception(self):
self._test_migrate_live_failed_with_exception(
exception.MigrationPreCheckClientException(reason=''),
expected_exc=webob.exc.HTTPInternalServerError,
check_response=False)
def test_migrate_live_migration_with_unexpected_error(self):
self._test_migrate_live_failed_with_exception(
exception.MigrationError(reason=''),