Merge "modify status code according to the latest API documentation"

This commit is contained in:
Zuul 2020-03-17 13:13:24 +00:00 committed by Gerrit Code Review
commit 4bc12aad2e
2 changed files with 2 additions and 6 deletions

View File

@ -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)

View File

@ -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")