Commit 5dda9be9 authored by Marco Cavalli's avatar Marco Cavalli
Browse files

hotfix: Retrive Entity by Id, and warning when running statisticsDocumentationData

parent 47074be8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ D013_01_inc Batch Upsert Entities With Inclusive Registration Without Update Fla
    [Documentation]    Check that if one requests the Context Broker to replace a batch of entities that match an inclusive registration, these are replaced on the Context Source too
    [Tags]    since_v1.6.1    dist-ops    4_3_3    cf_06    additive-inclusive    4_3_6_2    5_6_8

    ${response}=    Retrieve Entity by Id    ${first_entity_id}    context=${ngsild_test_suite_context}
    ${response}=    Retrieve Entity    ${first_entity_id}    context=${ngsild_test_suite_context}
    ${old_brandname}=    Get Value From Json    ${response.json()}    $.brandName

    ${new_first_entity}=    Load Entity    ${new_entity_payload_filename}    ${first_entity_id}    
+2 −2
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ ${registration_payload_file_path} csourceRegistrations/context-source-
D013_02_inc Batch Upsert Entities With Inclusive Registration With Update Flag
    [Documentation]    Check that if one requests the Context Broker to update a batch of entities that match an inclusive registration, these are updated on the Context Source too
    [Tags]    since_v1.6.1    dist-ops    4_3_3    cf_06    additive-inclusive    4_3_6_2    5_6_8
    ${response}=    Retrieve Entity by Id    ${first_entity_id}    context=${ngsild_test_suite_context}
    ${response}=    Retrieve Entity    ${first_entity_id}    context=${ngsild_test_suite_context}
    ${old_body}=    Get From Dictionary    ${response.json()}    brandName

    ${new_first_entity}=    Load Entity    ${new_entity_payload_filename}    ${first_entity_id}
@@ -45,7 +45,7 @@ D013_02_inc Batch Upsert Entities With Inclusive Registration With Update Flag
    ...    context=${ngsild_test_suite_context}
    ...    accept=${CONTENT_TYPE_LD_JSON}
    
    ${response}=    Retrieve Entity by Id    ${first_entity_id}    context=${ngsild_test_suite_context}
    ${response}=    Retrieve Entity    ${first_entity_id}    context=${ngsild_test_suite_context}
    ${new_body}=    Get From Dictionary    ${response.json()}    brandName
    Should Not Be Equal    ${old_body}    ${new_body}
    Should Contain    ${response.json()}    isParked2
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ D008_01_exc Merge Entity On Both Context Broker And Context Source
    ${stub_count}=    Get Stub Count    PATCH    /broker1/ngsi-ld/v1/entities/${entity_id}
    Should Be True    ${stub_count}  > 0

    ${response}=    Retrieve Entity by Id    ${entity_id}    context=${ngsild_test_suite_context}    local=true
    ${response}=    Retrieve Entity    ${entity_id}    context=${ngsild_test_suite_context}    local=true
    Should Not Contain    ${response}    speed

*** Keywords ***
+2 −2
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ D008_01_inc Merge Entity On Both Context Broker And Context Source
    [Documentation]    Check that if one requests the Context Broker to merge an entity that matches an inclusive registration, this is merged on the Context Source too
    [Tags]    since_v1.6.1    dist-ops    4_3_3    cf_06    additive-inclusive    4_3_6_2    5_6_17

    ${response}=    Retrieve Entity by Id    ${entity_id}    context=${ngsild_test_suite_context}
    ${response}=    Retrieve Entity    ${entity_id}    context=${ngsild_test_suite_context}
    ${old_isparked}=    Get From Dictionary    ${response.json()}    isParked2
    ${old_brandname}=    Get From Dictionary    ${response.json()}    brandName

@@ -38,7 +38,7 @@ D008_01_inc Merge Entity On Both Context Broker And Context Source
    ${stub_count}=    Get Stub Count    PATCH    /ngsi-ld/v1/entities/${entity_id}
    Should Be True    ${stub_count}  > 0
    
    ${response}=    Retrieve Entity by Id    ${entity_id}    context=${ngsild_test_suite_context}
    ${response}=    Retrieve Entity    ${entity_id}    context=${ngsild_test_suite_context}
    ${new_brandname}=    Get From Dictionary    ${response.json()}    brandName
    ${new_isparked}=    Get From Dictionary    ${response.json()}    isParked2
    Should Be Equal    ${old_brandname}    ${new_brandname}
+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ D007_01_exc Replace Entity
    ${stub_count}=    Get Stub Count    PUT    /broker1/ngsi-ld/v1/entities/${entity_id}
    Should Be Equal    ${stub_count}    1

    ${response}=    Retrieve Entity by Id    ${entity_id}    context=${ngsild_test_suite_context}    local=true
    ${response}=    Retrieve Entity    ${entity_id}    context=${ngsild_test_suite_context}    local=true
    ${body}=    Get From Dictionary    ${response.json()}    speed
    Should Not Contain    ${body}    speed

Loading