Commit 22c07028 authored by Andrea Il Grande's avatar Andrea Il Grande
Browse files

Modified expected responses in DeleteEntity

parent 1351ccc7
Loading
Loading
Loading
Loading
+2 −0
Changes for TP/NGSI-LD/ContextSource/DistributedOperations/AdditiveInclusive/DeleteEntity/059_01_01.robot: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -25,6 +25,8 @@ ${registration_payload_file_path} csourceRegistrations/context-source-regi
    ${response}=    Delete Entity by Id    ${entity_id}    ${url}
    Check Response Status Code    204    ${response.status_code}

    ${response}=    Retrieve Entity by Id    ${entity_id}
    Check Response Status Code    404    ${response.status_code}

*** Keywords ***
Setup Entities And Registration
+1 −1
Changes for TP/NGSI-LD/ContextSource/DistributedOperations/AdditiveInclusive/DeleteEntity/059_01_02.robot: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ ${registration_payload_file_path} csourceRegistrations/context-source-regi
    [Documentation]    Verify that, when one has an inclusive registration on a Context Producer, one is able to delete entities locally and should get a BatchOperationResult structure
    ${response}=    Delete Entity by Id    ${entity_id}
    Check Response Status Code    207    ${response.status_code}

    Check JSON Value In Response Body    ['status']    404    ${response.json()['errors'][0]['error']}

*** Keywords ***
Setup Entity On Local And Registration
+1 −3
Changes for TP/NGSI-LD/ContextSource/DistributedOperations/AdditiveInclusive/DeleteEntity/059_01_03.robot: 1 added line, 3 removed lines.
Original line number Diff line number Diff line
@@ -24,9 +24,7 @@ ${registration_payload_file_path} csourceRegistrations/context-source-regi
    [Documentation]    Verify that, when one has an inclusive registration on a Context Producer, one is able to delete entities on a Context Repository and should get a BatchOperationResult structure
    ${response}=    Delete Entity by Id    ${entity_id}
    Check Response Status Code    207    ${response.status_code}
    Check JSON Value In Response Body    ['error']    404    ${response.json()['errors'][0]}
    Check JSON Value In Response Body    ['entityId']    ${entity_id}    ${response.json()['errors'][0]}

    Check JSON Value In Response Body    ['status']    404    ${response.json()['errors'][0]['error']}

*** Keywords ***
Setup Entity On Remote And Registration

ngsi-ld-test-suite @ 899ed252

Changes for ngsi-ld-test-suite: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
Subproject commit 899ed25229c892ccc2546c83d8be888effd13242