Merge "Update DatastoreNotFound status code to 404"

This commit is contained in:
Jenkins 2015-02-02 19:57:12 +00:00 committed by Gerrit Code Review
commit 4d31433b1e
2 changed files with 3 additions and 2 deletions

View File

@ -338,7 +338,8 @@ class Controller(object):
exception.DatabaseNotFound,
exception.QuotaResourceUnknown,
exception.BackupFileNotFound,
exception.ClusterNotFound
exception.ClusterNotFound,
exception.DatastoreNotFound,
],
webob.exc.HTTPConflict: [
exception.BackupNotCompleteError,

View File

@ -245,7 +245,7 @@ class ListBackups(object):
@test
def test_backup_list_filter_datastore_not_found(self):
"""Test list backups and filter by datastore."""
assert_raises(exceptions.BadRequest, instance_info.dbaas.backups.list,
assert_raises(exceptions.NotFound, instance_info.dbaas.backups.list,
datastore='NOT_FOUND')
@test