Loading IOP_TP/NGSI-LD/Interoperability/Consumption/Entity/QueryEntities/IOP_003_03_01.robot +6 −0 Original line number Diff line number Diff line Loading @@ -47,6 +47,12 @@ IOP_003_03_01 Query Entities Of Type OffstreetParking Via GET Check Response Body Containing Entities URIS set to ${entity_ids} ${response.json()} ${first_expected}= Load Entity ${first_full_offstreet_payload_filename} ${first_entity_id} ${latest_attribute_source}= Load Entity ... ${first_offstreet_no_location_payload_filename} ... ${first_entity_id} Set To Dictionary ... ${first_expected} ... availableSpotsNumber=${latest_attribute_source}[availableSpotsNumber] Remove From Dictionary ${first_expected} @context ${first_entity}= Get Value From JSON ${response.json()} $[?(@.id=='${first_entity_id}')] Should Be Equal ${first_entity}[0] ${first_expected} Loading IOP_TP/NGSI-LD/Interoperability/Consumption/Entity/RetrieveEntity/IOP_002_01_01.robot +3 −5 Original line number Diff line number Diff line Loading @@ -13,7 +13,6 @@ ${first_entity_payload_filename} interoperability/offstreet-parki ${second_entity_payload_filename} interoperability/offstreet-parking2-full.jsonld ${inclusive_registration_payload_file_path} csourceRegistrations/interoperability/context-source-registration-inclusive-2.jsonld ${exclusive_registration_payload_file_path} csourceRegistrations/interoperability/context-source-registration-exclusive-2.jsonld ${expected_payload_file_path} interoperability/query-entity-IOP-003-01-01-first.json ${broker_A_url} ${EMPTY} ${broker_B_url} ${EMPTY} ${broker_C_url} ${EMPTY} Loading @@ -31,10 +30,9 @@ IOP_002_01_01 Retrieve OffStreetParking:1 ... context=${ngsild_test_suite_context} ... broker_url=${broker_A_url} Check Response Status Code 200 ${response.status_code} Check Response Body Containing Entity element by id ... ${expected_payload_file_path} ... ${first_entity_id} ... ${response.json()} ${expected_payload}= Load Entity ${first_entity_payload_filename} ${first_entity_id} Keep In Dictionary ${expected_payload} id type availableSpotsNumber totalSpotsNumber Should Be Equal ${response.json()} ${expected_payload} *** Keywords *** Loading IOP_TP/NGSI-LD/Interoperability/Consumption/Entity/RetrieveEntity/IOP_002_02_01.robot +1 −1 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ IOP_002_02_01 Retrieve OffStreetParking:1 ... ${first_entity_id} ... context=${ngsild_test_suite_context} ... broker_url=${broker_A_url} Check Response Status Code 207 ${response.status_code} Check Response Status Code 200 ${response.status_code} ${expected_payload}= Load Entity ${entity_payload_filename} ${first_entity_id} ${location_source}= Load Entity ${first_full_entity_payload_filename} ${first_entity_id} Set To Dictionary ${expected_payload} location=${location_source}[location] Loading IOP_TP/NGSI-LD/Interoperability/Consumption/Entity/RetrieveEntity/IOP_002_02_02.robot +1 −1 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ IOP_002_02_02 Retrieve OffStreetParking:1 Location Attribute ... ${first_entity_id} ... context=${ngsild_test_suite_context} ... broker_url=${broker_A_url} Check Response Status Code 207 ${response.status_code} Check Response Status Code 200 ${response.status_code} ${expected_payload}= Load Entity ${first_full_entity_payload_filename} ${first_entity_id} ${location_source}= Load Entity ${entity_payload_filename} ${first_entity_id} Set To Dictionary ${expected_payload} location=${location_source}[location] Loading IOP_TP/NGSI-LD/Interoperability/Consumption/Entity/RetrieveEntity/IOP_002_03_01.robot +1 −1 Original line number Diff line number Diff line Loading @@ -32,7 +32,7 @@ IOP_002_03_01 Retrieve OffStreetParking:1 ... ${first_entity_id} ... context=${ngsild_test_suite_context} ... broker_url=${broker_A_url} Check Response Status Code 207 ${response.status_code} Check Response Status Code 200 ${response.status_code} ${expected_payload}= Load Entity ${entity_payload_filename} ${first_entity_id} Remove From Dictionary ${expected_payload} @context Should Be Equal ${response.json()} ${expected_payload} Loading Loading
IOP_TP/NGSI-LD/Interoperability/Consumption/Entity/QueryEntities/IOP_003_03_01.robot +6 −0 Original line number Diff line number Diff line Loading @@ -47,6 +47,12 @@ IOP_003_03_01 Query Entities Of Type OffstreetParking Via GET Check Response Body Containing Entities URIS set to ${entity_ids} ${response.json()} ${first_expected}= Load Entity ${first_full_offstreet_payload_filename} ${first_entity_id} ${latest_attribute_source}= Load Entity ... ${first_offstreet_no_location_payload_filename} ... ${first_entity_id} Set To Dictionary ... ${first_expected} ... availableSpotsNumber=${latest_attribute_source}[availableSpotsNumber] Remove From Dictionary ${first_expected} @context ${first_entity}= Get Value From JSON ${response.json()} $[?(@.id=='${first_entity_id}')] Should Be Equal ${first_entity}[0] ${first_expected} Loading
IOP_TP/NGSI-LD/Interoperability/Consumption/Entity/RetrieveEntity/IOP_002_01_01.robot +3 −5 Original line number Diff line number Diff line Loading @@ -13,7 +13,6 @@ ${first_entity_payload_filename} interoperability/offstreet-parki ${second_entity_payload_filename} interoperability/offstreet-parking2-full.jsonld ${inclusive_registration_payload_file_path} csourceRegistrations/interoperability/context-source-registration-inclusive-2.jsonld ${exclusive_registration_payload_file_path} csourceRegistrations/interoperability/context-source-registration-exclusive-2.jsonld ${expected_payload_file_path} interoperability/query-entity-IOP-003-01-01-first.json ${broker_A_url} ${EMPTY} ${broker_B_url} ${EMPTY} ${broker_C_url} ${EMPTY} Loading @@ -31,10 +30,9 @@ IOP_002_01_01 Retrieve OffStreetParking:1 ... context=${ngsild_test_suite_context} ... broker_url=${broker_A_url} Check Response Status Code 200 ${response.status_code} Check Response Body Containing Entity element by id ... ${expected_payload_file_path} ... ${first_entity_id} ... ${response.json()} ${expected_payload}= Load Entity ${first_entity_payload_filename} ${first_entity_id} Keep In Dictionary ${expected_payload} id type availableSpotsNumber totalSpotsNumber Should Be Equal ${response.json()} ${expected_payload} *** Keywords *** Loading
IOP_TP/NGSI-LD/Interoperability/Consumption/Entity/RetrieveEntity/IOP_002_02_01.robot +1 −1 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ IOP_002_02_01 Retrieve OffStreetParking:1 ... ${first_entity_id} ... context=${ngsild_test_suite_context} ... broker_url=${broker_A_url} Check Response Status Code 207 ${response.status_code} Check Response Status Code 200 ${response.status_code} ${expected_payload}= Load Entity ${entity_payload_filename} ${first_entity_id} ${location_source}= Load Entity ${first_full_entity_payload_filename} ${first_entity_id} Set To Dictionary ${expected_payload} location=${location_source}[location] Loading
IOP_TP/NGSI-LD/Interoperability/Consumption/Entity/RetrieveEntity/IOP_002_02_02.robot +1 −1 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ IOP_002_02_02 Retrieve OffStreetParking:1 Location Attribute ... ${first_entity_id} ... context=${ngsild_test_suite_context} ... broker_url=${broker_A_url} Check Response Status Code 207 ${response.status_code} Check Response Status Code 200 ${response.status_code} ${expected_payload}= Load Entity ${first_full_entity_payload_filename} ${first_entity_id} ${location_source}= Load Entity ${entity_payload_filename} ${first_entity_id} Set To Dictionary ${expected_payload} location=${location_source}[location] Loading
IOP_TP/NGSI-LD/Interoperability/Consumption/Entity/RetrieveEntity/IOP_002_03_01.robot +1 −1 Original line number Diff line number Diff line Loading @@ -32,7 +32,7 @@ IOP_002_03_01 Retrieve OffStreetParking:1 ... ${first_entity_id} ... context=${ngsild_test_suite_context} ... broker_url=${broker_A_url} Check Response Status Code 207 ${response.status_code} Check Response Status Code 200 ${response.status_code} ${expected_payload}= Load Entity ${entity_payload_filename} ${first_entity_id} Remove From Dictionary ${expected_payload} @context Should Be Equal ${response.json()} ${expected_payload} Loading