Commit 1a620d56 authored by lopesg's avatar lopesg
Browse files

added entity attributes and fixed bugs

parent 456872aa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ Test Template Get Entity With Invalid/Missing Id
Get Entity With Invalid/Missing Id
    [Arguments]  ${entity_id}    ${expected_status_code}    ${problem_type}
    [Documentation]  Check that you cannot get an entity with invalid/missing id
    [Tags]  mandatory    failing
    [Tags]  mandatory

    ${response}=    Query Entity    ${entity_id}    ${CONTENT_TYPE_LD_JSON}
    Check Response Status Code  ${expected_status_code}    ${response['status']}
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ ${building_id_prefix}= urn:ngsi-ld:Building:
*** Test Cases ***                                                 
Get an entity if the Entity Id is not known to the system           
    [Documentation]  Check that you cannot get an entity if the entity id or attributes are not known to the system
    [Tags]  mandatory    failing
    [Tags]  mandatory

    ${entity_id}=     Generate Random Entity Id    ${building_id_prefix}
    ${response}=    Query Entity    ${entity_id}    ${CONTENT_TYPE_LD_JSON}
+1 −1
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ ${attribute_not_known}= property_not_found
*** Test Cases ***                                                 
Get an entity if an atris not known to the system           
    [Documentation]  Check that you cannot get an entity if an attribute is not known to the system
    [Tags]  mandatory    failing
    [Tags]  mandatory

    ${entity_id}=     Generate Random Entity Id    ${building_id_prefix}
    ${request}    ${response}=    Create Entity Selecting Content Type  ${filename}     ${entity_id}    ${CONTENT_TYPE_LD_JSON}
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ ${options_parameter}= keyValues
*** Test Cases ***                                                 
Get an entity in a simplified representation          
    [Documentation]  Check that the queried entity by Id can be returned in a simplified representation
    [Tags]  mandatory    failing
    [Tags]  mandatory

    ${entity_id}=     Generate Random Entity Id    ${building_id_prefix}
    ${request}    ${response}=    Create Entity Selecting Content Type  ${filename}     ${entity_id}    ${CONTENT_TYPE_LD_JSON}
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ ${accept_header}= application/geo+json
*** Test Cases ***                                                 
Get an entity by id that can be returned in a geoJSON format       
    [Documentation]  Check that the queried entity by id can be returned in a geoJSON format
    [Tags]  mandatory    failing
    [Tags]  mandatory

    ${entity_id}=     Generate Random Entity Id    ${building_id_prefix}
    ${request}    ${response}=    Create Entity Selecting Content Type  ${filename}     ${entity_id}    ${CONTENT_TYPE_LD_JSON}
Loading