Commit c9a7ee52 authored by Benoit Orihuela's avatar Benoit Orihuela
Browse files

fix: overwrite is not an allowed option in batch update

parent 8f1b0213
Loading
Loading
Loading
Loading
+7 −2
Original line number Original line Diff line number Diff line
@@ -640,10 +640,15 @@ Batch Upsert Entities
    RETURN    ${response}
    RETURN    ${response}


Batch Update Entities
Batch Update Entities
    [Arguments]    @{entities_to_be_updated}    ${overwrite_option}=overwrite
    [Arguments]    @{entities_to_be_updated}    ${overwrite_option}=${EMPTY}
    @{params}=    Create List
    IF    '${overwrite_option}'!=''
        Append To List    ${params}    options=${overwrite_option}
    END
    ${params_as_string}=    Catenate    SEPARATOR=&    @{params}
    &{headers}=    Create Dictionary    Content-Type=application/ld+json
    &{headers}=    Create Dictionary    Content-Type=application/ld+json
    ${response}=    POST
    ${response}=    POST
    ...    url=${url}/${BATCH_UPDATE_ENDPOINT_PATH}?options=${overwrite_option}
    ...    url=${url}/${BATCH_UPDATE_ENDPOINT_PATH}?${params_as_string}
    ...    json=@{entities_to_be_updated}
    ...    json=@{entities_to_be_updated}
    ...    headers=${headers}
    ...    headers=${headers}
    ...    expected_status=any
    ...    expected_status=any