Commit 459789de authored by Patricia dos Santos Oliveira's avatar Patricia dos Santos Oliveira
Browse files

Merge branch 'review-minor-tests-issues' into 'develop'

reviewed test queries and files context

See merge request !38
parents 1977e497 260ddd91
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ ${filename}= building-simple-attributes-sample.jsonld
${attribute_not_known}=  property_not_found

*** Test Cases ***                                                 
Get an entity if an atris not known to the system           
Get an entity if an attribute is not known to the system           
    [Documentation]  Check that you cannot get an entity if an attribute is not known to the system
    [Tags]  mandatory

+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ Query several entities based on ids
    ${entities_ids_to_be_retrieved}=  Catenate    SEPARATOR=,   ${first_entity_id}    ${second_entity_id}

    @{entity_types_to_be_retrieved}=  Create List   ${entity_type}
    ${response}=    Query Entities    entity_ids=${entities_ids_to_be_retrieved}    entity_types=${entity_types_to_be_retrieved}
    ${response}=    Query Entities    entity_ids=${entities_ids_to_be_retrieved}    entity_types=@{entity_types_to_be_retrieved} 
    Check Response Status Code  200    ${response['status']}
    Check Response Body Containing List Containing Entity elements    ${expectation_filename}    ${entities_ids_to_be_compared}    ${response['body']}

+0 −1
Original line number Diff line number Diff line
@@ -32,7 +32,6 @@ Query several entities based on the entities types
    ${request}    ${response}=    Create Entity Selecting Content Type  ${parking_filename}     ${parking_entity_id}    ${CONTENT_TYPE_LD_JSON}
    Check Response Status Code  201    ${response['status']}

    #@{entity_types_to_be_retrieved}=  Create List    ${vehicle_entity_type}    ${parking_entity_type}
    ${entity_types_to_be_retrieved}=  Catenate    SEPARATOR=,   ${vehicle_entity_type}    ${parking_entity_type}
    ${response}=    Query Entities    entity_types=${entity_types_to_be_retrieved}
    Check Response Status Code  200    ${response['status']}
+3 −3
Original line number Diff line number Diff line
@@ -9,9 +9,9 @@ ${building_id_prefix}= urn:ngsi-ld:Building:
${filename}=  building-simple-attributes-sample.jsonld
${filename2}=  building-minimal-sample.jsonld
${expectation_filename}=  building-attributes-query-sample-expectation.jsonld
${entity_type}=  https://uri.fiware.org/ns/data-models#Building
${attribute_airqualitylevel}=  https://uri.fiware.org/ns/data-models#airQualityLevel
${attribute_subcategory}=  https://uri.fiware.org/ns/data-models#subCategory
${entity_type}=  https://ngsi-ld-test-suite/context#Building
${attribute_airqualitylevel}=  https://ngsi-ld-test-suite/context#airQualityLevel
${attribute_subcategory}=  https://ngsi-ld-test-suite/context#subCategory

*** Test Cases ***                                                 
Query several entities based on attribute names
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ Resource ${EXECDIR}/resources/JsonUtils.resource
${building_id_prefix}=  urn:ngsi-ld:Building:
${filename}=  building-location-attribute-sample.jsonld
${expectation_filename}=  building-location-attribute-sample-expectation-query-geoproperty.jsonld
${entity_type}=  https://uri.fiware.org/ns/data-models#Building
${entity_type}=  https://ngsi-ld-test-suite/context#Building
${geometry_property}=  location

*** Test Cases ***                                                 
Loading