Skip to content
Commits on Source (10)
......@@ -17,7 +17,7 @@ ${subscription_fragment}= subscriptions/fragments/subscription-update-samp
*** Test Cases ***
044_01_01_endpoint /entities/{entityId}/attrs/{attrId}
044_01_01 endpoint /entities/{entityId}/attrs/{attrId}
[Documentation] Verify that PATCH HTTP requests can be done with "application/merge-patch+json" as Content-Type
[Tags] ea-partial-update 6_3_4
${entity_id}= Generate Random Entity Id ${vehicle_id_prefix}
......@@ -35,7 +35,7 @@ ${subscription_fragment}= subscriptions/fragments/subscription-update-samp
Check Response Status Code 204 ${response.status_code}
[Teardown] Delete Entity by Id ${entity_id}
044_01_02_endpoint /subscriptions/{subscriptionId}
044_01_02 endpoint /subscriptions/{subscriptionId}
[Documentation] Verify that PATCH HTTP requests can be done with "application/merge-patch+json" as Content-Type
[Tags] sub-update 6_3_4
${subscription_id}= Generate Random Entity Id ${subscription_id_prefix}
......
......@@ -21,7 +21,7 @@ ${content_type}= application/json
*** Test Cases ***
044_02_01_endpoint /entities/{entityId}
044_02_01 endpoint /entities/{entityId}
[Documentation] Verify that on a GET HTTP request if nothing is specified on the Accept header, "application/json" is assumed (/entities/{entityId})
[Tags] e-query 6_3_4
${id}= Generate Random Entity Id ${building_id_prefix}
......@@ -36,7 +36,7 @@ ${content_type}= application/json
Check Response Headers Link Not Empty ${response.headers}
[Teardown] Delete Entity by Id Returning Response ${id}
044_02_02_endpoint /subscriptions/{subscriptionId}
044_02_02 endpoint /subscriptions/{subscriptionId}
[Documentation] Verify that on a GET HTTP request if nothing is specified on the Accept header, "application/json" is assumed (/subscriptions/{subscriptionId})
[Tags] sub-retrieve 6_3_4
${id}= Generate Random Entity Id ${subscription_id_prefix}
......@@ -48,7 +48,7 @@ ${content_type}= application/json
Check Response Headers Link Not Empty ${response.headers}
[Teardown] Delete Subscription ${id}
044_02_03_endpoint /csourceRegistrations/
044_02_03 endpoint /csourceRegistrations/
[Documentation] Verify that on a GET HTTP request if nothing is specified on the Accept header, "application/json" is assumed (/csourceRegistrations/)
[Tags] csr-query 6_3_4
${registration_id}= Generate Random Entity Id ${registration_id_prefix}
......@@ -66,7 +66,7 @@ ${content_type}= application/json
Check Response Headers Link Not Empty ${response.headers}
[Teardown] Delete Context Source Registration ${registration_id}
044_02_04_endpoint /temporal/entities
044_02_04 endpoint /temporal/entities
[Documentation] Verify that on a GET HTTP request if nothing is specified on the Accept header, "application/json" is assumed (/temporal/entities)
[Tags] te-query 6_3_4
${temporal_entity_representation_id}= Generate Random Entity Id ${tea_id_prefix}
......
......@@ -22,7 +22,7 @@ ${content_type}= application/xml
*** Test Cases ***
044_03_01_endpoint patch /entities/{entityId}/attrs/{attrId}
044_03_01 endpoint patch /entities/{entityId}/attrs/{attrId}
[Documentation] Verify throwing 415 HTTP status code (Unsupported Media Type) if "Content-Type" header is not "application/json" or "application/ld+json" (patch /entities/{entityId}/attrs/{attrId})
[Tags] ea-partial-update 6_3_4
${entity_id}= Generate Random Entity Id ${vehicle_id_prefix}
......@@ -39,7 +39,7 @@ ${content_type}= application/xml
Check Response Status Code 415 ${response.status_code}
[Teardown] Delete Entity by Id Returning Response ${entity_id}
044_03_02_endpoint patch /subscriptions/{subscriptionId}
044_03_02 endpoint patch /subscriptions/{subscriptionId}
[Documentation] Verify throwing 415 HTTP status code (Unsupported Media Type) if "Content-Type" header is not "application/json" or "application/ld+json" (patch /subscriptions/{subscriptionId})
[Tags] sub-update 6_3_4
${id}= Generate Random Entity Id ${subscription_id_prefix}
......@@ -49,7 +49,7 @@ ${content_type}= application/xml
Check Response Status Code 415 ${response.status_code}
[Teardown] Delete Subscription ${id}
044_03_03_endpoint post /entities/
044_03_03 endpoint post /entities/
[Documentation] Verify throwing 415 HTTP status code (Unsupported Media Type) if "Content-Type" header is not "application/json" or "application/ld+json" (post /entities/)
[Tags] e-create 6_3_4
${entity_id}= Generate Random Entity Id ${building_id_prefix}
......@@ -60,7 +60,7 @@ ${content_type}= application/xml
Check Response Status Code 415 ${response.status_code}
[Teardown] Delete Entity by Id ${entity_id}
044_03_04_endpoint post /subscriptions/
044_03_04 endpoint post /subscriptions/
[Documentation] Verify throwing 415 HTTP status code (Unsupported Media Type) if "Content-Type" header is not "application/json" or "application/ld+json" (post /subscriptions/)
[Tags] sub-create 6_3_4
${subscriptions_id}= Generate Random Entity Id ${subscription_id_prefix}
......@@ -68,7 +68,7 @@ ${content_type}= application/xml
Check Response Status Code 415 ${response.status_code}
[Teardown] Delete Subscription ${subscriptions_id}
044_03_05_endpoint post /entityOperations/create
044_03_05 endpoint post /entityOperations/create
[Documentation] Verify throwing 415 HTTP status code (Unsupported Media Type) if "Content-Type" header is not "application/json" or "application/ld+json" (post /entityOperations/create)
[Tags] be-create 6_3_4
${first_entity_id}= Generate Random Entity Id ${building_id_prefix}
......@@ -81,7 +81,7 @@ ${content_type}= application/xml
Check Response Status Code 415 ${response.status_code}
[Teardown] Batch Delete Entities @{expected_entities_ids}
044_03_06_endpoint post /temporal/entities/
044_03_06 endpoint post /temporal/entities/
[Documentation] Verify throwing 415 HTTP status code (Unsupported Media Type) if "Content-Type" header is not "application/json" or "application/ld+json" (post /temporal/entities/)
[Tags] te-create 6_3_4
${temporal_entity_representation_id}= Generate Random Entity Id ${tea_id_prefix}
......
......@@ -16,7 +16,7 @@ ${subscription_filename}= csourceSubscriptions/subscription-sample.jsonld
*** Test Cases ***
044_04_01_endpoint get /entities/{entityId}
044_04_01 endpoint get /entities/{entityId}
[Documentation] Verify throwing 406 HTTP status code (Not Acceptable Media Type) if the "Accept" header does not imply "application/json" nor "application/ld+json" (get /entities/{entityId})
[Tags] e-query 6_3_4
${entity_id}= Generate Random Entity Id ${building_id_prefix}
......@@ -29,7 +29,7 @@ ${subscription_filename}= csourceSubscriptions/subscription-sample.jsonld
Check Response Status Code ${status_code} ${response.status_code}
[Teardown] Delete Entity by Id Returning Response ${entity_id}
044_04_02_endpoint get /subscriptions/{subscriptionId}
044_04_02 endpoint get /subscriptions/{subscriptionId}
[Documentation] Verify throwing 406 HTTP status code (Not Acceptable Media Type) if the "Accept" header does not imply "application/json" nor "application/ld+json" (get /subscriptions/{subscriptionId})
[Tags] sub-retrieve 6_3_4
${id}= Generate Random Entity Id ${subscription_id_prefix}
......@@ -39,19 +39,19 @@ ${subscription_filename}= csourceSubscriptions/subscription-sample.jsonld
Check Response Status Code ${status_code} ${response.status_code}
[Teardown] Delete Subscription ${id}
044_04_03_endpoint get /csourceRegistrations/
044_04_03 endpoint get /csourceRegistrations/
[Documentation] Verify throwing 406 HTTP status code (Not Acceptable Media Type) if the "Accept" header does not imply "application/json" nor "application/ld+json" (get /csourceRegistrations/)
[Tags] csr-query 6_3_4
${response}= Query Context Source Registrations With Return type=Building accept=${accept}
Check Response Status Code ${status_code} ${response.status_code}
044_04_04_endpoint get /csourceSubscriptions/
044_04_04 endpoint get /csourceSubscriptions/
[Documentation] Verify throwing 406 HTTP status code (Not Acceptable Media Type) if the "Accept" header does not imply "application/json" nor "application/ld+json" (get /csourceSubscriptions/)
[Tags] csrsub-query
Query Context Source Registration Subscriptions accept=${accept}
${response}= Query Context Source Registration Subscriptions accept=${accept}
Check Response Status Code ${status_code} ${response.status_code}
044_04_05_endpoint get /temporal/entities
044_04_05 endpoint get /temporal/entities
[Documentation] Verify throwing 406 HTTP status code (Not Acceptable Media Type) if the "Accept" header does not imply "application/json" nor "application/ld+json" (get /temporal/entities)
[Tags] te-query 6_3_4
${entity_types_to_be_retrieved}= Catenate SEPARATOR=, Vehicle
......
......@@ -16,7 +16,7 @@ ${filename}= building-simple-attributes-sample.json
*** Test Cases ***
Retrieve Detailed Representation Of Available Attribute Without Context
027_01_01 Retrieve Detailed Representation Of Available Attribute Without Context
[Documentation] Check that you cannot retrieve a detailed representation of an unknown NGSI-LD attribute
[Tags] ed-attr 5_7_10
${response}= Retrieve Attribute attribute_name=airQualityLevel
......
......@@ -17,7 +17,7 @@ ${expectation_file}= types/expectations/attribute-027-01-expectation.json
*** Test Cases ***
Retrieve Detailed Representation Of Available Attribute
027_02_01 Retrieve Detailed Representation Of Available Attribute
[Documentation] Check that you can retrieve a list with a detailed representation of NGSI-LD attributes
[Tags] ed-attr 5_7_10
${response}= Retrieve Attribute attribute_name=airQualityLevel context=${ngsild_test_suite_context}
......
......@@ -16,7 +16,7 @@ ${filename}= building-simple-attributes-sample.json
*** Test Cases ***
Retrieve Detailed Representation Of Available Entity Type Without Context
024_01_01 Retrieve Detailed Representation Of Available Entity Type Without Context
[Documentation] Check that you cannot retrieve a detailed representation of an unknown NGSI-LD entity type
[Tags] ed-type 5_7_7
${response}= Retrieve Entity Type type=Building
......
......@@ -17,7 +17,7 @@ ${expectation_file}= types/expectations/entity-type-info-024-01-expectati
*** Test Cases ***
Retrieve Detailed Representation Of Available Entity Type
024_02_01 Retrieve Detailed Representation Of Available Entity Type
[Documentation] Check that you can retrieve a detailed representation of a specified NGSI-LD entity type
[Tags] ed-type 5_7_7
${response}= Retrieve Entity Type type=Building context=${ngsild_test_suite_context}
......
......@@ -17,7 +17,7 @@ ${entity_type}= https://ngsi-ld-test-suite/context#Building
*** Test Cases ***
Query several entities based on ids
019_01_01 Query several entities based on ids
[Documentation] Check that you can query several entities based on ids
[Tags] e-query 5_7_2
${first_entity_id}= Generate Random Entity Id ${building_id_prefix}
......@@ -48,7 +48,7 @@ Query several entities based on ids
... entity_ids=${entities_ids_to_be_retrieved}
... entity_types=${entity_types_to_be_retrieved}
Check Response Status Code 200 ${response.status_code}
Check Response Body Containing List Containing Entity elements
Check Response Body Containing List Containing Entity Elements
... ${expectation_filename}
... ${entities_ids_to_be_compared}
... ${response.json()}
......
......@@ -23,7 +23,7 @@ ${parking_entity_type}= https://ngsi-ld-test-suite/context#OffStreetParking
*** Test Cases ***
Query several entities based on the entities types
019_01_02 Query several entities based on the entities types
[Documentation] Check that you can query several entities based on the entities types
[Tags] e-query 5_7_2
${building_entity_id}= Generate Random Entity Id ${building_id_prefix}
......
......@@ -18,7 +18,7 @@ ${entity_id_pattern}= urn:ngsi-ld:Building:.*
*** Test Cases ***
Query several entities based on the given id pattern
019_01_03 Query several entities based on the given id pattern
[Documentation] Check that you can query several entities based on the given id pattern
[Tags] e-query 5_7_2
${first_entity_id}= Generate Random Entity Id ${building_id_prefix}
......@@ -41,7 +41,7 @@ Query several entities based on the given id pattern
... entity_id_pattern=${entity_id_pattern}
... entity_types=${entity_types_to_be_retrieved}
Check Response Status Code 200 ${response.status_code}
Check Response Body Containing List Containing Entity elements
Check Response Body Containing List Containing Entity Elements
... ${expectation_filename}
... ${entities_ids_to_be_compared}
... ${response.json()}
......
......@@ -20,7 +20,7 @@ ${attribute_subcategory}= https://ngsi-ld-test-suite/context#subCatego
*** Test Cases ***
Query several entities based on attribute names
019_01_04 Query several entities based on attribute names
[Documentation] Check that you can query several entities based on attribute names
[Tags] e-query 5_7_2
${first_entity_id}= Generate Random Entity Id ${building_id_prefix}
......@@ -44,13 +44,13 @@ Query several entities based on attribute names
@{entities_ids_to_be_compared}= Create List ${first_entity_id}
${response}= Query Entities attrs=${attributes_to_be_retrieved}
Check Response Status Code 200 ${response.status_code}
Check Response Body Containing List Containing Entity elements
Check Response Body Containing List Containing Entity Elements
... ${expectation_filename}
... ${entities_ids_to_be_compared}
... ${response.json()}
Check Response Status Code 200 ${response.status_code}
Check Response Body Containing List Containing Entity elements
Check Response Body Containing List Containing Entity Elements
... ${expectation_filename}
... ${entities_ids_to_be_compared}
... ${response.json()}
......
......@@ -18,7 +18,7 @@ ${geometry_property}= location
*** Test Cases ***
Query several entities based on a list of properties
019_01_05 Query several entities based on a list of properties
[Documentation] Check that you can query entitites based on a list of properties
[Tags] e-query 5_7_2
${first_entity_id}= Generate Random Entity Id ${building_id_prefix}
......@@ -43,7 +43,7 @@ Query several entities based on a list of properties
... geoproperty=${geometry_property}
... accept=${CONTENT_TYPE_LD_JSON}
Check Response Status Code 200 ${response.status_code}
Check Response Body Containing List Containing Entity elements
Check Response Body Containing List Containing Entity Elements
... ${expectation_filename}
... ${entities_ids_to_be_compared}
... ${response.json()}
......
......@@ -17,7 +17,7 @@ ${entity_type}= https://ngsi-ld-test-suite/context#Building
*** Test Cases ***
Query several entities via POST Interaction based on ids
019_02_01 Query several entities via POST Interaction based on ids
[Documentation] Check that you can query several entities via POST Interaction based on ids
[Tags] e-query 5_7_2
${first_entity_id}= Generate Random Entity Id ${building_id_prefix}
......@@ -53,7 +53,7 @@ Query several entities via POST Interaction based on ids
... entity_ids=${entities_ids_to_be_retrieved}
... entity_types=${entity_types_to_be_retrieved}
Check Response Status Code 200 ${response.status_code}
Check Response Body Containing List Containing Entity elements
Check Response Body Containing List Containing Entity Elements
... ${expectation_filename}
... ${entities_ids_to_be_compared}
... ${response.json()}
......
......@@ -23,7 +23,7 @@ ${parking_entity_type}= https://ngsi-ld-test-suite/context#OffStreetParking
*** Test Cases ***
Query several entities via POST Interaction based on the entities types
019_02_02 Query several entities via POST Interaction based on the entities types
[Documentation] Check that you can query several entities via POST Interaction based on the entities types
[Tags] e-query 5_7_2
${building_entity_id}= Generate Random Entity Id ${building_id_prefix}
......@@ -51,7 +51,7 @@ Query several entities via POST Interaction based on the entities types
${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_code}
Check Response Body Containing List Containing Entity elements
Check Response Body Containing List Containing Entity Elements
... ${expectation_filename}
... ${entity_types_to_be_compared}
... ${response.json()}
......
......@@ -18,7 +18,7 @@ ${entity_id_pattern}= urn:ngsi-ld:Building:.*
*** Test Cases ***
Query several entities via POST Interaction based on the given id pattern
019_02_03 Query several entities via POST Interaction based on the given id pattern
[Documentation] Check that you can query several entities via POST Interaction based on the given id pattern
[Tags] e-query 5_7_2
${first_entity_id}= Generate Random Entity Id ${building_id_prefix}
......@@ -41,7 +41,7 @@ Query several entities via POST Interaction based on the given id pattern
... entity_id_pattern=${entity_id_pattern}
... entity_types=${entity_types_to_be_retrieved}
Check Response Status Code 200 ${response.status_code}
Check Response Body Containing List Containing Entity elements
Check Response Body Containing List Containing Entity Elements
... ${expectation_filename}
... ${entities_ids_to_be_compared}
... ${response.json()}
......
......@@ -18,7 +18,7 @@ ${attribute_subcategory}= https://ngsi-ld-test-suite/context#subCatego
*** Test Cases ***
Query several entities via POST Interaction based on attribute names
019_02_04 Query several entities via POST Interaction based on attribute names
[Documentation] Check that you can query several entities via POST Interaction based on attribute names
[Tags] e-query 5_7_2
${first_entity_id}= Generate Random Entity Id ${building_id_prefix}
......@@ -42,7 +42,7 @@ Query several entities via POST Interaction based on attribute names
@{entities_ids_to_be_retrieved}= Create List ${first_entity_id} ${second_entity_id}
${response}= Query Entities attrs=${attributes_to_be_retrieved}
Check Response Status Code 200 ${response.status_code}
Check Response Body Containing List Containing Entity elements
Check Response Body Containing List Containing Entity Elements
... ${expectation_filename}
... ${entities_ids_to_be_retrieved}
... ${response.json()}
......
*** Settings ***
Documentation Check that you can query entitites via POST Interaction based on a list of properties
Documentation Check that you can query entities via POST Interaction based on a list of properties
Resource ${EXECDIR}/resources/ApiUtils/ContextInformationConsumption/ApiUtils.resource
# Resource ${EXECDIR}/resources/ApiUtils.resource
......@@ -18,8 +18,8 @@ ${geometry_property}= location
*** Test Cases ***
Query several entities via POST Interaction based on a list of properties
[Documentation] Check that you can query entitites via POST Interaction based on a list of properties
019_02_05 Query several entities via POST Interaction based on a list of properties
[Documentation] Check that you can query entities via POST Interaction based on a list of properties
[Tags] e-query 5_7_2
${first_entity_id}= Generate Random Entity Id ${building_id_prefix}
Set Suite Variable ${first_entity_id}
......@@ -41,7 +41,7 @@ Query several entities via POST Interaction based on a list of properties
... entity_types=${entity_types_to_be_retrieved}
... geoproperty=${geometry_property}
Check Response Status Code 200 ${response.status_code}
Check Response Body Containing List Containing Entity elements
Check Response Body Containing List Containing Entity Elements
... ${expectation_filename}
... ${entities_ids_to_be_compared}
... ${response.json()}
......
......@@ -18,7 +18,7 @@ ${entity_invalid_id_two}= thisisaninvaliduri2
*** Test Cases ***
Query entities based on incorrect ids
019_03_01 Query entities based on incorrect ids
[Documentation] Check that you cannot query entities if the requested ids are incorrect
[Tags] e-query 5_7_2
${first_entity_id}= Generate Random Entity Id ${building_id_prefix}
......
......@@ -19,7 +19,7 @@ ${invalid_entity_type_two}= invalid_entity_type_two
*** Test Cases ***
Query entities based on incorrect entity types
019_03_02 Query entities based on incorrect entity types
[Documentation] Check that you cannot query entities if the requested entity types are incorrect
[Tags] e-query 5_7_2
${building_entity_id}= Generate Random Entity Id ${building_id_prefix}
......