Commit 5837cc6b authored by Marco Cavalli's avatar Marco Cavalli
Browse files

fix: update comments for clarity in entity retrieval tests

parent ff12b969
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -41,8 +41,8 @@ IOP_003_01_01 Query Entities Of Type OffstreetParking Via GET
    ...    context=${ngsild_test_suite_context}

    # Agent checks that a success response has been returned and that the following Entities were returned:
    # OffstreetParking:1 with the attributes availableSpotsNumber and totalSpotsNumber
    # OffstreetParking:2 with the attributes availableSpotsNumber and location
    # - OffstreetParking:1 with the attributes availableSpotsNumber and totalSpotsNumber
    # - OffstreetParking:2 with the attributes availableSpotsNumber and location
    Check Response Status Code    200    ${response_b1.status_code}
    ${expected_b1_ids}=    Create List    ${first_entity_id}    ${second_entity_id}
    Check Response Body Containing Entities URIS set to    ${expected_b1_ids}    ${response_b1.json()}
+2 −2
Original line number Diff line number Diff line
@@ -43,8 +43,8 @@ IOP_003_01_02 Query Entities Of Type OffstreetParking Via POST
    ...    context=${ngsild_test_suite_context}

    # Agent checks that a success response has been returned and that the following Entities were returned:
    # OffstreetParking:1 with the attributes availableSpotsNumber and totalSpotsNumber
    # OffstreetParking:2 with the attributes availableSpotsNumber and location
    # - OffstreetParking:1 with the attributes availableSpotsNumber and totalSpotsNumber
    # - OffstreetParking:2 with the attributes availableSpotsNumber and location
    Check Response Status Code    200    ${response_b1.status_code}
    ${expected_b1_ids}=    Create List    ${first_entity_id}    ${second_entity_id}
    Check Response Body Containing Entities URIS set to    ${expected_b1_ids}    ${response_b1.json()}
+3 −3
Original line number Diff line number Diff line
@@ -56,9 +56,9 @@ IOP_002_01_02 Retrieve OffStreetParking:2
    Remove From Dictionary    ${expected_b3}    @context
    Check Resource Set To    ${expected_b3}    ${response_b3.json()}

    # Agent checks that the Entity returned in step (2) is structured as follows
    # The attributes "availableSpotsNumber" and "totalSpotsNumber" match the ones from the Entity returned in step (3)
    # The attribute "location" matches the one from the Entity returned in step (4)
    # Agent checks that the Entity returned in step (2) is structured as follows:
    # - The attributes "availableSpotsNumber" and "totalSpotsNumber" match the ones from the Entity returned in step (3)
    # - The attribute "location" matches the one from the Entity returned in step (4)
    ${expected_b1}=    Load Entity    ${entity_payload_filename}    ${entity_id}
    Keep In Dictionary    ${expected_b1}    id    type    availableSpotsNumber    totalSpotsNumber
    Set To Dictionary
+3 −3
Original line number Diff line number Diff line
@@ -58,9 +58,9 @@ IOP_002_02_01 Retrieve OffStreetParking:1
    Remove From Dictionary    ${expected_b3}    @context
    Check Resource Set To    ${expected_b3}    ${response_b3.json()}

    # Agent checks that the Entity returned in step (2) is structured as follows
    # The attributes "availableSpotsNumber" and "totalSpotsNumber" match the ones from the Entity returned in step (3)
    # The attribute "location" matches the one from the Entity returned in step (4)
    # Agent checks that the Entity returned in step (2) is structured as follows:
    # - The attributes "availableSpotsNumber" and "totalSpotsNumber" match the ones from the Entity returned in step (3)
    # - The attribute "location" matches the one from the Entity returned in step (4)
    ${expected_b1}=    Load Entity    ${entity_payload_filename}    ${first_entity_id}
    Keep In Dictionary    ${expected_b1}    id    type    availableSpotsNumber    totalSpotsNumber
    Set To Dictionary
+3 −3
Original line number Diff line number Diff line
@@ -71,9 +71,9 @@ IOP_002_04_01 Retrieve OffStreetParking:1
    Remove From Dictionary    ${expected_b5}    @context
    Check Resource Set To    ${expected_b5}    ${response_b5.json()}

    # Agent checks that the Entity returned in step (2) is structured as follows
    # The attributes "availableSpotsNumber" and "totalSpotsNumber" match the ones from the Entity returned in step (3)
    # The attribute "location" matches the one from the Entity returned in step (4)
    # Agent checks that the Entity returned in step (2) is structured as follows:
    # - The attributes "availableSpotsNumber" and "totalSpotsNumber" match the ones from the Entity returned in step (3)
    # - The attribute "location" matches the one from the Entity returned in step (4)
    ${expected_b1}=    Load Entity    ${no_location_entity_payload_filename}    ${entity_id}
    Keep In Dictionary    ${expected_b1}    id    type    availableSpotsNumber    totalSpotsNumber
    Set To Dictionary
Loading