Commit c68d8614 authored by Andrea Il Grande's avatar Andrea Il Grande
Browse files

feat: added 'mode' parameter to registration_payload

parent fd3fc8b1
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ ${context_source_url} http://${context_source_host}:${

*** Keywords ***
Prepare Context Source Registration From File
    [Arguments]    ${id}    ${registration_file}    ${entity_id}=${EMPTY}    ${mode}=${EMPTY}    ${endpoint}=${EMPTY}
    [Arguments]    ${id}    ${registration_file}    ${entity_id}=${EMPTY}    ${mode}=${EMPTY}    ${endpoint}=${EMPTY}    ${operations}=[]

    ${payload}=    Load JSON From File    ${EXECDIR}/data/${registration_file}
    ${registration_payload}=    Update Value To JSON
@@ -47,6 +47,13 @@ Prepare Context Source Registration From File
        ...    $
        ...    ${dict}
    END
    IF    ${operations}
        ${dict}=    Create Dictionary    operations=${operations}
        ${registration_payload}=    Add Object To JSON
        ...    ${registration_payload}
        ...    $
        ...    ${dict}
    END
    RETURN    ${registration_payload}

Create Context Source Registration