Merge "modify status code according to the latest API documentation"
This commit is contained in:
commit
4bc12aad2e
@ -116,10 +116,6 @@ class NamespaceTagsClient(rest_client.RestClient):
|
||||
url = 'metadefs/namespaces/%s/tags' % namespace
|
||||
resp, _ = self.delete(url)
|
||||
|
||||
# NOTE(rosmaita): Bug 1656183 fixed the success response code for
|
||||
# this call to make it consistent with the other metadefs delete
|
||||
# calls. Accept both codes in case tempest is being run against
|
||||
# an old Glance.
|
||||
self.expected_success([200, 204], resp.status)
|
||||
self.expected_success(204, resp.status)
|
||||
|
||||
return rest_client.ResponseBody(resp)
|
||||
|
@ -130,5 +130,5 @@ class TestNamespaceTagsClient(base.BaseServiceTest):
|
||||
self.check_service_client_function(
|
||||
self.client.delete_namespace_tags,
|
||||
'tempest.lib.common.rest_client.RestClient.delete',
|
||||
{}, status=200,
|
||||
{}, status=204,
|
||||
namespace="OS::Compute::Hypervisor")
|
||||
|
Loading…
Reference in New Issue
Block a user