Skip to content
Snippets Groups Projects

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

Merged Karel van Klink requested to merge feature/fix-lso-return-code into develop
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
@@ -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)
Loading