From fb67362ad3da6cc4601c9b3e267c6ef6e7595084 Mon Sep 17 00:00:00 2001 From: Fiete Ostkamp Date: Sat, 21 Feb 2026 13:58:41 +0100 Subject: [PATCH] Fix SDNC enhanced healthcheck failure - add expected_status=any to DELETE On Session call in RUN SDNC Delete Request Issue-ID: INT-2356 Change-Id: I498079d980dd99033f62ef57447c166f76b6d00e Signed-off-by: Fiete Ostkamp --- robot/resources/sdnc_interface.robot | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/robot/resources/sdnc_interface.robot b/robot/resources/sdnc_interface.robot index 7d2fb4b6..7bb5075b 100644 --- a/robot/resources/sdnc_interface.robot +++ b/robot/resources/sdnc_interface.robot @@ -64,12 +64,15 @@ Run SDNC Health Check Generic Resource API Should Be Equal As Strings ${delete_response.status_code} 204 Run SDNC Delete Request - [Documentation] Runs an SDNC Delete Request + [Documentation] Runs an SDNC Delete Request and returns the response. + ... expected_status=any is used because the /rests/ (RFC 8040) endpoint + ... returns 409 instead of 404 for non-existing resources. Callers are + ... responsible for validating the status code. [Arguments] ${URL} Disable Warnings ${session}= Create Session SDNC ${SDNC_REST_ENDPOINT} auth=${GLOBAL_SDNC_AUTHENTICATION} ${headers}= Create Dictionary Accept=*/* Accept-Encoding=gzip, deflate, br Connection=keep-alive - ${resp}= Delete On Session SDNC ${URL} data=${None} headers=${headers} + ${resp}= Delete On Session SDNC ${URL} data=${None} headers=${headers} expected_status=any [Return] ${resp} Preload Vcpe Networks -- 2.16.6