#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.
#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 OffstreetParking:1 in A is the same as the one in B and that OffstreetParking:2 in A contains the attributes of both OffstreetParking:2 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]
#Agent checks that OffStreetParking:1 in A is the same as the one in B and that OffStreetParking:2 in A contains the attributes of both OffStreetParking:2 in B and C.
Should Be Equal${response.json()}${first_expected_payload}
Should Contain${response.json()}${second_expected_payload}
IOP_003_01_02 Query Entities Of Type OffstreetParking Via POST
[Documentation]Pre-conditions: no user context. Data only on leaves. B contains OffStreetParking:1 and OffStreetParking:2 without location and totalSpotsNumber. C contains OffStreetParking:2.
[Documentation]Pre-conditions: no user context. Data only on leaves. B contains OffStreetParking:1 and OffStreetParking:2 without location. C contains OffStreetParking:2.
...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.
#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 OffstreetParking:1 in A is the same as the one in B and that OffstreetParking:2 in A contains the attributes of both OffstreetParking:2 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]
Should Be Equal${response.json()}${first_expected_payload}
Should Contain${response.json()}${first_expected_payload}
Should Contain${response.json()}${second_expected_payload}
#Agent checks that OffstreetParking:1 in A has the same availableSpotsNumber and totalSpotsNumber as the one in B and the same location attribute found in C. The OffstreetParking:2 entity in A contains the attributes of both OffstreetParking:2 availableSpotsNumber and totalSpotsNumber in C and the same location found in D.
#Agent checks that OffStreetParking:1 in A has the same availableSpotsNumber and totalSpotsNumber as the one in B and the same location attribute found in C. The OffStreetParking:2 entity in A contains the attributes of both OffStreetParking:2 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]
#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.