Loading TP/NGSI-LD/ContextInformation/Consumption/Entity/001_03.robot +1 −1 Original line number Diff line number Diff line Loading @@ -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 ${geometry_property}= test ${geometry_property}= location *** Test Cases *** 001_03_Query the geometry property from an entity Loading TP/NGSI-LD/ContextInformation/Consumption/Entity/002.robot +2 −6 Original line number Diff line number Diff line Loading @@ -5,13 +5,9 @@ Resource ${EXECDIR}/resources/AssertionUtils.resource Test Template Get Entity With Invalid/Missing Id *** Variable *** ${entity_id_empty}= ${entity_id_not_valid}= thisisaninvaliduri *** Test Cases *** ENTITY_ID EXPECTED_STATUS_CODE PROBLEM_TYPE 002_01_Get an entity if the Entity Id is not present ${entity_id_empty} 400 ${ERROR_TYPE_BAD_REQUEST_DATA} 002_02_Get an entity if the Entity Id is not a valid URI ${entity_id_not_valid} 400 ${ERROR_TYPE_BAD_REQUEST_DATA} 002_01_Get an entity if the Entity Id is not present ${EMPTY} 400 ${ERROR_TYPE_BAD_REQUEST_DATA} 002_02_Get an entity if the Entity Id is not a valid URI thisisaninvaliduri 400 ${ERROR_TYPE_BAD_REQUEST_DATA} *** Keywords *** Get Entity With Invalid/Missing Id Loading TP/NGSI-LD/ContextInformation/Consumption/Entity/004.robot +1 −1 Original line number Diff line number Diff line Loading @@ -21,6 +21,6 @@ ${options_parameter}= keyValues ${response}= Query Entity ${entity_id} ${CONTENT_TYPE_LD_JSON} options=${options_parameter} Check Response Status Code 200 ${response['status']} Check Response Body Containing Entity element ${expectation_filename} ${entity_id} ${response} Check Response Body Containing Entity element ${expectation_filename} ${entity_id} ${response['body']} [Teardown] Delete Entity by Id Returning Response ${entity_id} No newline at end of file TP/NGSI-LD/ContextInformation/Consumption/Entity/005.robot +1 −1 Original line number Diff line number Diff line Loading @@ -22,6 +22,6 @@ ${accept_header}= application/geo+json ${response}= Query Entity ${entity_id} ${accept_header} options=${options_parameter} Check Response Status Code 200 ${response['status']} #Check Response Body Containing Entity element ${expectation_filename} ${entity_id} ${response} Check Response Body Containing Entity element ${expectation_filename} ${entity_id} ${response} [Teardown] Delete Entity by Id Returning Response ${entity_id} No newline at end of file TP/NGSI-LD/ContextInformation/Consumption/Entity/006_01.robot +2 −2 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ Resource ${EXECDIR}/resources/JsonUtils.resource *** Variable *** ${building_id_prefix}= urn:ngsi-ld:Building: ${filename}= building-minimal-sample.jsonld ${expection_filename}= building-minimal-sample-expectation.jsonld ${expectation_filename}= building-minimal-sample-expectation.jsonld ${entity_type}= https://uri.fiware.org/ns/data-models#Building *** Test Cases *** Loading @@ -29,7 +29,7 @@ ${entity_type}= https://uri.fiware.org/ns/data-models#Building @{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} Check Response Status Code 200 ${response['status']} Check Response Body Containing List Containing Entity elements ${expection_filename} ${entities_ids_to_be_retrieved} ${response['body']} Check Response Body Containing List Containing Entity elements ${expectation_filename} ${entities_ids_to_be_retrieved} ${response['body']} [Teardown] Delete Entities ${first_entity_id} ${second_entity_id} ${third_entity_id} Loading Loading
TP/NGSI-LD/ContextInformation/Consumption/Entity/001_03.robot +1 −1 Original line number Diff line number Diff line Loading @@ -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 ${geometry_property}= test ${geometry_property}= location *** Test Cases *** 001_03_Query the geometry property from an entity Loading
TP/NGSI-LD/ContextInformation/Consumption/Entity/002.robot +2 −6 Original line number Diff line number Diff line Loading @@ -5,13 +5,9 @@ Resource ${EXECDIR}/resources/AssertionUtils.resource Test Template Get Entity With Invalid/Missing Id *** Variable *** ${entity_id_empty}= ${entity_id_not_valid}= thisisaninvaliduri *** Test Cases *** ENTITY_ID EXPECTED_STATUS_CODE PROBLEM_TYPE 002_01_Get an entity if the Entity Id is not present ${entity_id_empty} 400 ${ERROR_TYPE_BAD_REQUEST_DATA} 002_02_Get an entity if the Entity Id is not a valid URI ${entity_id_not_valid} 400 ${ERROR_TYPE_BAD_REQUEST_DATA} 002_01_Get an entity if the Entity Id is not present ${EMPTY} 400 ${ERROR_TYPE_BAD_REQUEST_DATA} 002_02_Get an entity if the Entity Id is not a valid URI thisisaninvaliduri 400 ${ERROR_TYPE_BAD_REQUEST_DATA} *** Keywords *** Get Entity With Invalid/Missing Id Loading
TP/NGSI-LD/ContextInformation/Consumption/Entity/004.robot +1 −1 Original line number Diff line number Diff line Loading @@ -21,6 +21,6 @@ ${options_parameter}= keyValues ${response}= Query Entity ${entity_id} ${CONTENT_TYPE_LD_JSON} options=${options_parameter} Check Response Status Code 200 ${response['status']} Check Response Body Containing Entity element ${expectation_filename} ${entity_id} ${response} Check Response Body Containing Entity element ${expectation_filename} ${entity_id} ${response['body']} [Teardown] Delete Entity by Id Returning Response ${entity_id} No newline at end of file
TP/NGSI-LD/ContextInformation/Consumption/Entity/005.robot +1 −1 Original line number Diff line number Diff line Loading @@ -22,6 +22,6 @@ ${accept_header}= application/geo+json ${response}= Query Entity ${entity_id} ${accept_header} options=${options_parameter} Check Response Status Code 200 ${response['status']} #Check Response Body Containing Entity element ${expectation_filename} ${entity_id} ${response} Check Response Body Containing Entity element ${expectation_filename} ${entity_id} ${response} [Teardown] Delete Entity by Id Returning Response ${entity_id} No newline at end of file
TP/NGSI-LD/ContextInformation/Consumption/Entity/006_01.robot +2 −2 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ Resource ${EXECDIR}/resources/JsonUtils.resource *** Variable *** ${building_id_prefix}= urn:ngsi-ld:Building: ${filename}= building-minimal-sample.jsonld ${expection_filename}= building-minimal-sample-expectation.jsonld ${expectation_filename}= building-minimal-sample-expectation.jsonld ${entity_type}= https://uri.fiware.org/ns/data-models#Building *** Test Cases *** Loading @@ -29,7 +29,7 @@ ${entity_type}= https://uri.fiware.org/ns/data-models#Building @{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} Check Response Status Code 200 ${response['status']} Check Response Body Containing List Containing Entity elements ${expection_filename} ${entities_ids_to_be_retrieved} ${response['body']} Check Response Body Containing List Containing Entity elements ${expectation_filename} ${entities_ids_to_be_retrieved} ${response['body']} [Teardown] Delete Entities ${first_entity_id} ${second_entity_id} ${third_entity_id} Loading