Merge "Update DatastoreNotFound status code to 404"
This commit is contained in:
commit
4d31433b1e
@ -338,7 +338,8 @@ class Controller(object):
|
||||
exception.DatabaseNotFound,
|
||||
exception.QuotaResourceUnknown,
|
||||
exception.BackupFileNotFound,
|
||||
exception.ClusterNotFound
|
||||
exception.ClusterNotFound,
|
||||
exception.DatastoreNotFound,
|
||||
],
|
||||
webob.exc.HTTPConflict: [
|
||||
exception.BackupNotCompleteError,
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user