Skip to content
Snippets Groups Projects
Commit c7496cfe authored by Karel van Klink's avatar Karel van Klink :smiley_cat: Committed by Neda Moeini
Browse files

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

parent 58f5dbb0
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !125. Comments created here will be created in the context of that merge request.
......@@ -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.
Please register or to comment