Update object_storage container creation using metadata tests to accept 204 reponses

2 object_storage test_create_container_with_remove_metadata tests are failing because they receive a 204 error when expecting a 202 or 201
This patch allows for the acceptance of 204 responses

Closes-Bug: #2026296
Change-Id: Idd99342481a693f6523e5b81c60d3ede6094cefb
This commit is contained in:
alfrgarc
2023-07-06 16:34:27 +00:00
committed by Alfredo Garcia
parent 71d069df16
commit 8766b0472c
@@ -43,7 +43,7 @@ class ContainerClient(rest_client.RestClient):
url = str(container_name)
resp, body = self.put(url, body=None, headers=headers)
self.expected_success([201, 202], resp.status)
self.expected_success([201, 202, 204], resp.status)
return resp, body
# NOTE: This alias is for the usability because PUT can be used for both