Commit 5619ebfb authored by Marco Cavalli's avatar Marco Cavalli
Browse files

fix: add type to retrieve entity and relative tests

fix: add missing terms in context
parent 4eac6e72
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@ IOP_002_01_01 Retrieve OffStreetParking:1
    ...    ${first_entity_id}
    ...    context=${ngsild_test_suite_context}
    ...    broker_url=${broker_A_url}
    ...    type=OffStreetParking
    Check Response Status Code    200    ${response.status_code}
    ${expected_payload}=    Load Entity    ${first_entity_payload_filename}    ${first_entity_id}
    Keep In Dictionary    ${expected_payload}    id    type    availableSpotsNumber    totalSpotsNumber
+1 −0
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ IOP_002_01_02 Retrieve OffStreetParking:2
    ...    ${entity_id}
    ...    context=${ngsild_test_suite_context}
    ...    broker_url=${broker_A_url}
    ...    type=OffStreetParking
    Check Response Status Code    200    ${response.status_code}
    Check Response Body Containing Entity element by id
    ...    ${expected_payload_file_path}
+1 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ IOP_002_02_01 Retrieve OffStreetParking:1
    ...    ${first_entity_id}
    ...    context=${ngsild_test_suite_context}
    ...    broker_url=${broker_A_url}
    ...    type=OffStreetParking
    Check Response Status Code    200    ${response.status_code}
    ${expected_payload}=    Load Entity    ${entity_payload_filename}    ${first_entity_id}
    Keep In Dictionary    ${expected_payload}    id    type    availableSpotsNumber    totalSpotsNumber
+1 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ IOP_002_02_02 Retrieve OffStreetParking:1 Location Attribute
    ...    ${first_entity_id}
    ...    context=${ngsild_test_suite_context}
    ...    broker_url=${broker_A_url}
    ...    type=OffStreetParking
    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}
+1 −0
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@ IOP_002_03_01 Retrieve OffStreetParking:1
    ...    ${first_entity_id}
    ...    context=${ngsild_test_suite_context}
    ...    broker_url=${broker_A_url}
    ...    type=OffStreetParking
    Check Response Status Code    200    ${response.status_code}
    ${expected_payload}=    Load Entity    ${entity_payload_filename}    ${first_entity_id}
    Remove From Dictionary    ${expected_payload}    @context
Loading