Commit 056029ff authored by Benoit Orihuela's avatar Benoit Orihuela
Browse files

fix: response checks for 007_02

parent 321c8859
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -26,8 +26,8 @@ Create Temporal Entity From File
    [Documentation]  Check that you cannot create a temporal entity with an empty/invalid json/id
    [Tags]  mandatory

    ${response}=  Create Temporal Representation Of Entity Selecting Content Type Using Session  ${filename}     ${CONTENT_TYPE_LD_JSON}
    Check Response Status Code  <Response [400]>    ${response['status']}
    Create Temporal Representation Of Entity Selecting Content Type Using Session  ${filename}     ${CONTENT_TYPE_LD_JSON}
    Check RL Response Status Code Set To    400
    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()}

+3 −3
Original line number Diff line number Diff line
@@ -321,9 +321,9 @@ Create Temporal Representation Of Entity Selecting Content Type Using Session
    ${file_content}=    Get File    ${EXECDIR}/data/temporalEntities/${filename}
    Create Session    OneRequest      ${url}
    &{headers}=  Create Dictionary  Content-Type=${content_type}
    ${response}=  POST On Session      OneRequest   ${TEMPORAL_ENTITIES_ENDPOINT_PATH}    data=${file_content}    headers=${headers}
    Output  request
    Output  response
    ${response}=  POST On Session      OneRequest   ${TEMPORAL_ENTITIES_ENDPOINT_PATH}    data=${file_content}    headers=${headers}   expected_status=any
    Output  ${response.json()}
    Set Test Variable  ${response}
    [return]    ${response}

Append Attribute To Temporal Entity