Commit d1ab6a71 authored by Benoit Orihuela's avatar Benoit Orihuela
Browse files

fix(035_02): expected status code when no id in delete operation

parent a043f5ee
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -15,21 +15,21 @@ ${registration_id_prefix}= urn:ngsi-ld:Registration:
${filename}=                    context-source-registration-sample.jsonld


*** Test Cases ***    INVALID_REGISTRATION_ID
*** Test Cases ***    INVALID_REGISTRATION_ID    EXPECTED_STATUS_CODE
035_02_01 Delete a Context Source Registration if the Id is not present
    [Tags]    csr-delete    5_9_4
    ${EMPTY}
    ${EMPTY}    405
035_02_02 Delete a Context Source Registration if the Id is not a valid URI
    [Tags]    csr-delete    5_9_4
    invalidURI
    invalidURI    400


*** Keywords ***
Delete A Context Source
    [Documentation]    Check that you cannot delete a context source registration under some conditions
    [Arguments]    ${invalid_registration_id}
    [Arguments]    ${invalid_registration_id}    ${expected_status_code}
    ${response}=    Delete Context Source Registration With Return    ${invalid_registration_id}
    Check Response Status Code    400    ${response.status_code}
    Check Response Status Code    ${expected_status_code}    ${response.status_code}
    Check Response Body Containing ProblemDetails Element Containing Title Element    ${response.json()}

Delete Created Context Source Registrations