modify status code according to the latest API documentation
modify delete all tag definitions interface status code according to the latest API document Change-Id: I4095cfeff213317bb20caec74c1887c968a52624
This commit is contained in:
committed by
Martin Kopec
parent
9ef4316091
commit
7eb1d2dc99
@@ -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)
|
||||
|
||||
@@ -122,5 +122,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")
|
||||
|
||||
Reference in New Issue
Block a user