Commit 19a14aae authored by Benoit Orihuela's avatar Benoit Orihuela
Browse files

fix(043): call batch entity delete with list of ids to delete

parent 428ac458
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -69,13 +69,14 @@ ${registration_filename}= csourceRegistrations/context-source-registration
    ${first_entity}=    Load Entity    ${building_filename}    ${first_entity_id}
    ${first_entity}=    Load Entity    ${building_filename}    ${first_entity_id}
    ${second_entity}=    Load Entity    ${building_filename}    ${second_entity_id}
    ${second_entity}=    Load Entity    ${building_filename}    ${second_entity_id}
    @{entities_to_be_created}=    Create List    ${first_entity}    ${second_entity}
    @{entities_to_be_created}=    Create List    ${first_entity}    ${second_entity}
    @{entities_ids_to_be_created}=    Create List    ${first_entity_id}    ${second_entity_id}
    ${response}=    Batch Create Entities    @{entities_to_be_created}    content_type=${CONTENT_TYPE_LD_JSON}
    ${response}=    Batch Create Entities    @{entities_to_be_created}    content_type=${CONTENT_TYPE_LD_JSON}
    Check Response Status Code    ${expected_status_code}    ${response.status_code}
    Check Response Status Code    ${expected_status_code}    ${response.status_code}
    Check Response Body Containing ProblemDetails Element Containing Type Element set to
    Check Response Body Containing ProblemDetails Element Containing Type Element set to
    ...    ${response.json()}
    ...    ${response.json()}
    ...    ${ERROR_TYPE_LD_CONTEXT_NOT_AVAILABLE}
    ...    ${ERROR_TYPE_LD_CONTEXT_NOT_AVAILABLE}
    Check Response Body Containing ProblemDetails Element Containing Title Element    ${response.json()}
    Check Response Body Containing ProblemDetails Element Containing Title Element    ${response.json()}
    [Teardown]    Batch Delete Entities    @{entities_to_be_created}
    [Teardown]    Batch Delete Entities    @{entities_ids_to_be_created}


043_05 Create context source registration
043_05 Create context source registration
    [Documentation]    Verify throwing 503 – LdContextNotAvailable error if remote JSON-LD @context cannot be retrieved (Create context source registration)
    [Documentation]    Verify throwing 503 – LdContextNotAvailable error if remote JSON-LD @context cannot be retrieved (Create context source registration)