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

added new features in resources

parent f20410a1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -211,7 +211,7 @@ Retrieve Attributes
    RETURN    ${response}

Retrieve Entity by Id
    [Arguments]    ${id}    ${accept}=${CONTENT_TYPE_LD_JSON}    ${context}=${EMPTY}    ${local}=${EMPTY}    ${options}=${EMPTY}
    [Arguments]    ${id}    ${accept}=${CONTENT_TYPE_LD_JSON}    ${context}=${EMPTY}    ${local}=${EMPTY}    ${base_url}=${url}    ${options}=${EMPTY}
    ${headers}=    Create Dictionary
    &{params}=    Create Dictionary
    ${options_length}=    Get Length    ${options}
@@ -226,7 +226,7 @@ Retrieve Entity by Id
        Set To Dictionary    ${params}    options=${options}
    END
    ${response}=    GET
    ...    url=${url}/${ENTITIES_ENDPOINT_PATH}${id}
    ...    url=${base_url}/${ENTITIES_ENDPOINT_PATH}${id}
    ...    headers=${headers}
    ...    params=${params}
    ...    expected_status=any
+2 −2
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}
    [Arguments]    ${id}    ${registration_file}    ${entity_id}=${EMPTY}    ${mode}=${EMPTY}    ${endpoint}=${EMPTY}

    ${payload}=    Load JSON From File    ${EXECDIR}/data/${registration_file}
    ${registration_payload}=    Update Value To JSON
@@ -32,7 +32,7 @@ Prepare Context Source Registration From File
    ${registration_payload}=    Update Value To JSON
    ...    ${registration_payload}
    ...    $..endpoint
    ...    ${context_source_url}
    ...    ${context_source_url}${endpoint}
    IF    '${entity_id}' != ''
        ${dict}=    Create Dictionary    id=${entity_id}
        ${registration_payload}=    Add Object To JSON