Merge "Update DatastoreNotFound status code to 404"
This commit is contained in:
commit
4d31433b1e
@ -338,7 +338,8 @@ class Controller(object):
|
|||||||
exception.DatabaseNotFound,
|
exception.DatabaseNotFound,
|
||||||
exception.QuotaResourceUnknown,
|
exception.QuotaResourceUnknown,
|
||||||
exception.BackupFileNotFound,
|
exception.BackupFileNotFound,
|
||||||
exception.ClusterNotFound
|
exception.ClusterNotFound,
|
||||||
|
exception.DatastoreNotFound,
|
||||||
],
|
],
|
||||||
webob.exc.HTTPConflict: [
|
webob.exc.HTTPConflict: [
|
||||||
exception.BackupNotCompleteError,
|
exception.BackupNotCompleteError,
|
||||||
|
@ -245,7 +245,7 @@ class ListBackups(object):
|
|||||||
@test
|
@test
|
||||||
def test_backup_list_filter_datastore_not_found(self):
|
def test_backup_list_filter_datastore_not_found(self):
|
||||||
"""Test list backups and filter by datastore."""
|
"""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')
|
datastore='NOT_FOUND')
|
||||||
|
|
||||||
@test
|
@test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user