Skip to content
Snippets Groups Projects
Verified Commit 9a2d9279 authored by Karel van Klink's avatar Karel van Klink :smiley_cat:
Browse files

don't make GSO fail when LSO returns a status 201 (which is also ok)

parent a9809341
No related branches found
No related tags found
1 merge request!123don't make GSO fail when LSO returns a status 201 (which is also ok)
Pipeline #85079 failed
......@@ -73,7 +73,8 @@ def _send_request(operation: CUDOperation, endpoint: str, parameters: dict, call
elif operation == CUDOperation.DELETE:
request = requests.delete(url, json=parameters, timeout=10000)
if request.status_code != HTTPStatus.OK:
if not HTTPStatus.OK <= request.status_code < HTTPStatus.MULTIPLE_CHOICES:
# :term:`LSO` has returned a status code that is outside the 2xx range, and has therefore failed
logger.debug(request.content)
raise AssertionError(request.content)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment