Commit 3deddfae authored by Benedetta Arena's avatar Benedetta Arena
Browse files

fix: change variable names to mirror document and improve tests documentation

parent 5619ebfb
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
*** Settings ***
Documentation       Three brokers are set up A, B and C. A has two registrations, one inclusive for the entities in B and one exclusive for the entity in C.
...                 The client sends a HTTP GET request to check that quering the OffStreetParking type returns the entities in B and C.
...                 Check that the OffStreetParking:1 entity in A is the same as the one in B. Check that the OffStreetParking:2 entity in A has the same totalSpotsNumber attribute as the one found in B. Check that the OffStreetParking:2 entity in A has the same location attribute as the one in C.

Resource            ${EXECDIR}/resources/IOPUtils/InteroperabilityUtils.resource

@@ -9,9 +9,9 @@ Test Teardown Delete Entities and Delete Registrations


*** Variables ***
${first_entity_payload_filename}                interoperability/offstreet-parking1-full.jsonld
${second_entity_payload_filename}               interoperability/offstreet-parking2-full.jsonld
${third_entity_payload_filename}                interoperability/offstreet-parking2-no-location-and-totalspotsnumber.jsonld
${first_entity_payload_filename}                interoperability/full-version-of-offstreetparking1.jsonld
${second_entity_payload_filename}               interoperability/full-version-of-offstreetparking2.jsonld
${third_entity_payload_filename}                interoperability/offstreetparking2-without-location-and-totalspotsnumber.jsonld
${inclusive_registration_payload_file_path}     csourceRegistrations/interoperability/context-source-registration-inclusive-1.jsonld
${exclusive_registration_payload_file_path}     csourceRegistrations/interoperability/context-source-registration-exclusive-1.jsonld
${first_expected_payload_file_path}             interoperability/query-entity-IOP-003-01-01-first.json
+4 −4
Original line number Diff line number Diff line
*** Settings ***
Documentation       Three brokers are set up A, B and C. A has two registrations, one inclusive for the entities in B and one exclusive for the entity in C.
...                 The client sends and HTTP POST request to check that the entities with type OffStreetParking can be queried from all brokers.
...                 Check that the OffStreetParking:1 entity in A is the same as the one in B. Check that the OffStreetParking:2 entity in A has the same totalSpotsNumber attribute as the one found in B. Check that the OffStreetParking:2 entity in A has the same location attribute as the one in C.

Resource            ${EXECDIR}/resources/IOPUtils/InteroperabilityUtils.resource

@@ -9,9 +9,9 @@ Test Teardown Delete Entities and Delete Registrations


*** Variables ***
${first_entity_payload_filename}                interoperability/offstreet-parking1-full.jsonld
${second_entity_payload_filename}               interoperability/offstreet-parking2-full.jsonld
${third_entity_payload_filename}                interoperability/offstreet-parking2-no-location-and-totalspotsnumber.jsonld
${first_entity_payload_filename}                interoperability/full-version-of-offstreetparking1.jsonld
${second_entity_payload_filename}               interoperability/full-version-of-offstreetparking2.jsonld
${third_entity_payload_filename}                interoperability/offstreetparking2-without-location-and-totalspotsnumber.jsonld
${inclusive_registration_payload_file_path}     csourceRegistrations/interoperability/context-source-registration-inclusive-1.jsonld
${exclusive_registration_payload_file_path}     csourceRegistrations/interoperability/context-source-registration-exclusive-1.jsonld
${first_expected_payload_file_path}             interoperability/query-entity-IOP-003-01-01-first.json
+7 −6
Original line number Diff line number Diff line
*** Settings ***
Documentation       Four brokers are set up A, B, C and D. A has three registrations, one inclusive for the entities in B, one redirect for the entities in C and D and one redirect for the entity in D.
...                 The client sends a HTTP GET request to check that quering the type OffStreetParking returns the entities in B, C and D. Said entities shall have the same attributes as the ones queried from A.
...                 Check that the OffStreetParking:1 entity in A has the same availableSpotsNumber and totalSpotsNumber attributes as the one in B. Check that the OffStreetParking:1 entity in A has the same location attribute as the one found in C. Check that the OffStreetParking:2 entity in A has the same availableSpotsNumber and totalSpotsNumber attributes as the one in C. Check that the OffStreetParking:2 entity in A has the same location attribute as the one in D.


Resource            ${EXECDIR}/resources/IOPUtils/InteroperabilityUtils.resource

@@ -9,11 +10,11 @@ Test Teardown Delete Entities and Delete Registrations


*** Variables ***
${location_name_payload_filename}                       interoperability/offstreet-parking2-location-and-name.jsonld
${first_entity_no_location_payload_filename}            interoperability/offstreet-parking1-no-location.jsonld
${second_entity_no_location_payload_filename}           interoperability/offstreet-parking2-no-location.jsonld
${first_full_entity_payload_filename}                   interoperability/offstreet-parking1-full.jsonld
${second_full_entity_payload_filename}                  interoperability/offstreet-parking2-full.jsonld
${location_name_payload_filename}                       interoperability/offstreetparking2-location-and-name-only.jsonld
${first_entity_no_location_payload_filename}            interoperability/offstreetparking1-without-location.jsonld
${second_entity_no_location_payload_filename}           interoperability/offstreetparking2-without-location.jsonld
${first_full_entity_payload_filename}                   interoperability/full-version-of-offstreetparking1.jsonld
${second_full_entity_payload_filename}                  interoperability/full-version-of-offstreetparking2.jsonld
${inclusive_registration_payload_file_path}             csourceRegistrations/interoperability/context-source-registration-inclusive-2.jsonld
${first_redirect_registration_payload_file_path}        csourceRegistrations/interoperability/context-source-registration-redirect-2.jsonld
${second_redirect_registration_payload_file_path}       csourceRegistrations/interoperability/context-source-registration-redirect-3.jsonld
+7 −7
Original line number Diff line number Diff line
*** Settings ***
Documentation       Four brokers are set up A, B, C and D. A has five registrations, two inclusive for the entities in B, one redirect for the entities in C and two redirect for the entity in D.
...                 Check that the entities in B, C and D have the same attributes as the ones queried from A.
...                 Check that the Vehicle:1 entity in A is the same as the one in B. Check that the entity OffStreetParking:1 in A is the same as the one in C. Check that the entities Vehicle:2 and OffStreetParking:2 in A are the same as the ones in D.

Resource            ${EXECDIR}/resources/IOPUtils/InteroperabilityUtils.resource

@@ -9,12 +9,12 @@ Test Teardown Delete Entities and Delete Registrations


*** Variables ***
${first_vehicle_payload_filename}                       interoperability/vehicle1-full.jsonld
${second_vehicle_payload_filename}                      interoperability/vehicle2-full.jsonld
${first_offstreet_payload_filename}                     interoperability/offstreet-parking1-full.jsonld
${second_offstreet_payload_filename}                    interoperability/offstreet-parking2-full.jsonld
${first_parking_location_name_payload_filename}         interoperability/offstreet-parking1-location-and-name.jsonld
${second_parking_location_name_payload_filename}        interoperability/offstreet-parking2-location-and-name.jsonld
${first_vehicle_payload_filename}                       interoperability/full-version-of-vehicle1.jsonld
${second_vehicle_payload_filename}                      interoperability/full-version-of-vehicle2.jsonld
${first_offstreet_payload_filename}                     interoperability/full-version-of-offstreetparking1.jsonld
${second_offstreet_payload_filename}                    interoperability/full-version-of-offstreetparking2.jsonld
${first_parking_location_name_payload_filename}         interoperability/offstreetparking1-with-location-and-name-only.jsonld
${second_parking_location_name_payload_filename}        interoperability/offstreetparking2-with-location-and-name-only.jsonld
${first_inclusive_registration_payload_file_path}       csourceRegistrations/interoperability/context-source-registration-inclusive-2.jsonld
${second_inclusive_registration_payload_file_path}      csourceRegistrations/interoperability/context-source-registration-inclusive-3.jsonld
${first_redirect_registration_payload_file_path}        csourceRegistrations/interoperability/context-source-registration-redirect-2.jsonld
+5 −5
Original line number Diff line number Diff line
*** Settings ***
Documentation       Four brokers are set up A, B, C and D. A has three registrations, one auxiliary for the entities in B, one inclusive for the entities in C and one inclusive for the entity in D.
...                 Check that the entities returned from A match the attributes of the entities in B, C and D.
...                 Check that the OffStreetParking:1 entity in A has the same name and location attributes as the ones in C. Check that the entity OffStreetParking:1 in A has the same availableSpotsNumber and totalSpotsNumber attributes as the one in D. Check that the OffStreetParking:2 entity is the same as the one in B.

Resource            ${EXECDIR}/resources/IOPUtils/InteroperabilityUtils.resource

@@ -9,10 +9,10 @@ Test Teardown Delete Entities and Delete Registrations


*** Variables ***
${offstreet_no_location_payload_filename}               interoperability/offstreet-parking2-no-location.jsonld
${first_offstreet_no_location_payload_filename}         interoperability/offstreet-parking1-no-location.jsonld
${first_full_offstreet_payload_filename}                interoperability/offstreet-parking1-full.jsonld
${second_full_offstreet_payload_filename}               interoperability/offstreet-parking2-full.jsonld
${offstreet_no_location_payload_filename}               interoperability/offstreetparking2-without-location.jsonld
${first_offstreet_no_location_payload_filename}         interoperability/offstreetparking1-without-location.jsonld
${first_full_offstreet_payload_filename}                interoperability/full-version-of-offstreetparking1.jsonld
${second_full_offstreet_payload_filename}               interoperability/full-version-of-offstreetparking2.jsonld
${first_inclusive_registration_payload_file_path}       csourceRegistrations/interoperability/context-source-registration-inclusive-1.jsonld
${second_inclusive_registration_payload_file_path}      csourceRegistrations/interoperability/context-source-registration-inclusive-2.jsonld
${auxiliary_registration_payload_file_path}             csourceRegistrations/interoperability/context-source-registration-auxiliary-1.jsonld
Loading