IOP_CNF_01_01 Create Entity In A And Query Entity In All Brokers
[Documentation]Check that quering the offparking type returns the entities in B and C and said entities have the same attributes as the ones queried from A.
IOP_CNF_01_01 Query Entities Of Type OffstreetParking Via GET
[Documentation]Pre-conditions: no user context. Data only on leaves. B contains OffStreetParking1 and OffStreetParking2 without location and totalSpotsNumber. C contains OffStreetParking2.
...Registrations established: Inclusive in A to B. Exclusive in A to C.
#Agent queries all entities with type OffstreetParking in A and checks for a successful response that contains the attributes of both entities in B and C.
Check Response Body Containing Entities URIS set to${entity_id}${response.json()}
#Agent checks that OffstreetParking1 in A is the same as the one in B and that OffstreetParking2 in A contains the attributes of both OffstreetParking2 in B and C.
Should Be Equal${payload}\[OffstreetParking1]${first_expected_payload}\[OffstreetParking1]
Should Contain${payload}\[OffstreetParking2]${first_expected_payload}\[OffstreetParking2][totalSpotsNumber]
Should Contain${payload}\[OffstreetParking2]${second_expected_payload}\[OffstreetParking2][location]
*** Keywords ***
Setup Initial Context Source Registrations
[Documentation]Pre-conditions: no user context. Data only on leaves.
...Broker B contains OffStreetParking1 and OffStreetParking2 without location and totalSpotsNumber.
...Broker C contains OffStreetParking2.
...CSR in A to B and in A to C.
${entity_id}=Generate Random Parking Entity Id
Set Suite Variable${entity_id}
${second_entity_id}=Generate Random Parking Entity Id
IOP_CNF_01_01 Create Entity In A And Query Entity In All Brokers
[Documentation]Check that quering the offparking type returns the entities in B and C and said entities have the same attributes as the ones queried from A.
IOP_CNF_01_01 Query Entities Of Type OffstreetParking Via POST
[Documentation]Pre-conditions: no user context. Data only on leaves. B contains OffStreetParking1 and OffStreetParking2 without location and totalSpotsNumber. C contains OffStreetParking2.
...Registrations established: Inclusive in A to B. Exclusive in A to C.
#Agent queries all entities with type OffstreetParking in A and checks for a successful response that contains the attributes of both entities in B and C.
Check Response Body Containing Entities URIS set to${entity_id}${response.json()}
#Agent checks that OffstreetParking1 in A is the same as the one in B and that OffstreetParking2 in A contains the attributes of both OffstreetParking2 in B and C.
Should Be Equal${payload}\[OffstreetParking1]${first_expected_payload}\[OffstreetParking1]
Should Contain${payload}\[OffstreetParking2]${first_expected_payload}\[OffstreetParking2][totalSpotsNumber]
Should Contain${payload}\[OffstreetParking2]${second_expected_payload}\[OffstreetParking2][location]
*** Keywords ***
Setup Initial Context Source Registrations
[Documentation]Pre-conditions: no user context. Data only on leaves.
...Broker B contains OffStreetParking1 and OffStreetParking2 without location and totalSpotsNumber.
...Broker C contains OffStreetParking2.
...CSR in A to B and in A to C.
${entity_id}=Generate Random Parking Entity Id
Set Suite Variable${entity_id}
${second_entity_id}=Generate Random Parking Entity Id
IOP_CNF_02_01 Create Entity In A And Query Entity In All Brokers
[Documentation]Check that quering the offparking type returns the entities in B, C and D and said entities have the same attributes as the ones queried from A.
IOP_CNF_02_01 Query Entities Of Type OffstreetParking Via GET
[Documentation]Pre-conditions: no user context. Data on every broker. B contains OffStreetParking1 without location and OffStreetParking2 without location. C contains OffStreetParking1 and OffStreetParking2. D contains OffStreetParking2 with location and name only.
...Registrations established: Inclusive in A to B. Redirect in A to C. Redirect in A to D.
@@ -51,6 +54,7 @@ IOP_CNF_02_01 Create Entity In A And Query Entity In All Brokers
@{entities_b4}=Set Variable${response.json()}
${b4_payload}=Get From List${entities_b4}0
#Agent checks that OffstreetParking1 in A has the same availableSpotsNumber and totalSpotsNumber as the one in B and the same location attribute found in C. The OffstreetParking2 entity in A contains the attributes of both OffstreetParking2 availableSpotsNumber and totalSpotsNumber in C and the same location found in D.
Should Be Equal${first_payload}[availableSpotsNumber]${first_b2_payload}[availableSpotsNumber]
Should Be Equal${first_payload}[totalSpotsNumber]${first_b2_payload}[totalSpotsNumber]
Should Be Equal${first_payload}[location]${b3_payload}[location]
@@ -61,11 +65,6 @@ IOP_CNF_02_01 Create Entity In A And Query Entity In All Brokers
*** Keywords ***
Setup Initial Context Source Registrations
[Documentation]Pre-conditions: no user context. Data on every broker.
...Broker B contains OffStreetParking1 without location and OffStreetParking2 without location.
...Broker C contains OffStreetParking1 and OffStreetParking2.
...Broker D contains OffStreetParking2 with location and name only.
...CSR in A to B, in A to C and in A to D.
${entity_id}=Generate Random Parking Entity Id
Set Suite Variable${entity_id}
${second_entity_id}=Generate Random Parking Entity Id
IOP_CNF_02_02 Create Entity In A And Query Entity In All Brokers
[Documentation]Verify that the entities found in B, C and D can be queried via HTTP GET and said entities have the same attributes as the ones queried from A.
IOP_CNF_02_02 Query Properties Of Entities Of Type OffstreetParking And Vehicle
[Documentation]Pre-conditions: no user context. Data only on leaves. B contains OffStreetParking1 and Vehicle1. C contains OffStreetParking1 with location and name only and OffStreetParking2. D contains OffStreetParking2 with location and name only and Vehicle2.
...Registrations established: Inclusive in A to B. Redirect in A to C. Redirect in A to D.
#Client queries all entities with type OffstreetParking and Vehicle in A and checks for a successful response that contains the location attribute for all entities.
IOP_CNF_03_01 Create Entity In A And Query Entity In All Brokers
[Documentation]Verify that the entity found in B, C and D can be queried via HTTP GET and said entities have the same attributes as the ones queried from A.
IOP_CNF_03_01 Query Entities Of Type OffstreetParking Via GET
[Documentation]Pre-conditions: No user context. Data only on leaves. B contains OffStreetParking2 without location. C contains OffStreetParking1. D contains OffStreetParking1 without location.
...Registration established: Auxiliary in A to B. Inclusive in A to C. Inclusive in A to D.