Commit 2f84900c authored by Benoit Orihuela's avatar Benoit Orihuela
Browse files

fix: check on status code in 010_02

parent 17e2904c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ Append entity attributes with invalid entity fragments
    Check Response Status Code  201    ${response['status']}

    Append Entity Attributes Using Session    ${entity_id}    ${invalid_fragment_filename}    ${CONTENT_TYPE_LD_JSON}    ${EMPTY}
    Check Response Status Code  400    ${response['status']}
    Check RL Response Status Code Set To    ${status_code}
    Check Response Body Type When Using Session Request      ${response.json()}     ${ERROR_TYPE_BAD_REQUEST_DATA}
    Check Response Body Title When Using Session Request    ${response.json()}

+1 −1
Original line number Diff line number Diff line
@@ -156,7 +156,7 @@ Append Entity Attributes Using Session
    Create Session    OneRequest      ${url}
    &{headers}=  Create Dictionary  Content-Type=${content_type}
    ${response}=    POST On Session      OneRequest   ${ENTITIES_ENDPOINT_PATH}${id}/attrs/    params=options=${options}    data=${file_content}    headers=${headers}   expected_status=any
    [return]    ${response}
    Set Test Variable  ${response}

Update Entity Attributes Using Session
    [Arguments]  ${id}    ${fragment_filename}    ${content_type}    ${options}