Commit 1ae3b906 authored by Benjamin Hebgen's avatar Benjamin Hebgen
Browse files

Fix/batcherrors

parent cbd241d0
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -76,7 +76,10 @@ ${registration_filename}= csourceRegistrations/context-source-registration
    ${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 Body Containing ProblemDetails Element Containing Type Element set to
    ...    ${response.json()}
    ...    ${response.json()['errors'][0]['error']}
    ...    ${ERROR_TYPE_LD_CONTEXT_NOT_AVAILABLE}
    Check Response Body Containing ProblemDetails Element Containing Type Element set to
    ...    ${response.json()['errors'][1]['error']}
    ...    ${ERROR_TYPE_LD_CONTEXT_NOT_AVAILABLE}
    Check Response Body Containing ProblemDetails Element Containing Title Element    ${response.json()}
    [Teardown]    Batch Delete Entities    entities_ids_to_be_deleted=@{entities_ids_to_be_created}
+1 −1
Original line number Diff line number Diff line
@@ -22,6 +22,6 @@ ${building_id_prefix}= urn:ngsi-ld:Building:

    Check Response Status Code    400    ${response.status_code}
    Check Response Body Containing ProblemDetails Element Containing Type Element set to
    ...    ${response.json()}
    ...    ${response.json()['errors'][0]['error']}
    ...    ${ERROR_TYPE_BAD_REQUEST_DATA}
    Check Response Body Containing ProblemDetails Element Containing Title Element    ${response.json()}
+1 −1
Original line number Diff line number Diff line
@@ -22,6 +22,6 @@ ${building_id_prefix}= urn:ngsi-ld:Building:

    Check Response Status Code    400    ${response.status_code}
    Check Response Body Containing ProblemDetails Element Containing Type Element set to
    ...    ${response.json()}
    ...    ${response.json()['errors'][0]['error']}
    ...    ${ERROR_TYPE_BAD_REQUEST_DATA}
    Check Response Body Containing ProblemDetails Element Containing Title Element    ${response.json()}
+1 −1
Original line number Diff line number Diff line
@@ -23,6 +23,6 @@ Batch Upsert Entity With Invalid Request Scenarios
    ${response}=    Batch Request Entities From File    upsert    filename=${filename}
    Check Response Status Code    400    ${response.status_code}
    Check RL Response Body Containing ProblemDetails Element Containing Type Element set to
    ...    ${response.json()}
    ...    ${response.json()['errors'][0]['error']}
    ...    ${problem_type}
    Check RL Response Body Containing ProblemDetails Element Containing Title Element    ${response.json()}