feat: improve diff rules for contexts and lists of elements

  • when comparing list of elements, ensure elements are compared based on their ids
  • when expecting a single context, allow a string or a list of one context
  • when checking for default core context, allow any version

Merge request reports

Loading
+1 −0
Changes for TP/NGSI-LD/ContextInformation/Consumption/Entity/QueryEntities/019_01_02.robot: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -54,6 +54,7 @@ Query several entities based on the entities types
    ...    ${expectation_filename}
    ...    ${entities_ids_to_be_compared}
    ...    ${response.json()}
    ...    ${True}


*** Keywords ***
+1 −0
Changes for TP/NGSI-LD/ContextInformation/Consumption/Entity/QueryEntities/019_01_05.robot: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -46,6 +46,7 @@ Query several entities based on a list of properties
    ...    ${expectation_filename}
    ...    ${entities_ids_to_be_compared}
    ...    ${response.json()}
    ...    ${True}


*** Keywords ***
+5 −1
Changes for TP/NGSI-LD/ContextInformation/Consumption/Entity/RetrieveEntity/018_01_01.robot: 5 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -27,7 +27,11 @@ ${expectation_filename}= building-simple-attributes-expectation.jsonld
    Check Response Status Code    201    ${response.status_code}
    ${response}=    Query Entity    ${entity_id}    ${CONTENT_TYPE_LD_JSON}
    Check Response Status Code    200    ${response.status_code}
    Check Response Body Containing Entity element    ${expectation_filename}    ${entity_id}    ${response.json()}
    Check Response Body Containing Entity element
    ...    ${expectation_filename}
    ...    ${entity_id}
    ...    ${response.json()}
    ...    ${True}


*** Keywords ***
+5 −1
Changes for TP/NGSI-LD/ContextInformation/Consumption/Entity/RetrieveEntity/018_01_02.robot: 5 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -36,7 +36,11 @@ ${attribute_subcategory}= https://ngsi-ld-test-suite/context#subCatego
    ...    ${CONTENT_TYPE_LD_JSON}
    ...    attrs=${attributes_to_be_retrieved}
    Check Response Status Code    200    ${response.status_code}
    Check Response Body Containing Entity element    ${expectation_filename}    ${entity_id}    ${response.json()}
    Check Response Body Containing Entity element
    ...    ${expectation_filename}
    ...    ${entity_id}
    ...    ${response.json()}
    ...    ${True}


*** Keywords ***
+5 −1
Changes for TP/NGSI-LD/ContextInformation/Consumption/Entity/RetrieveEntity/018_01_03.robot: 5 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -31,7 +31,11 @@ ${geometry_property}= location
    ...    ${CONTENT_TYPE_LD_JSON}
    ...    geoproperty=${geometry_property}
    Check Response Status Code    200    ${response.status_code}
    Check Response Body Containing Entity element    ${expectation_filename}    ${entity_id}    ${response.json()}
    Check Response Body Containing Entity element
    ...    ${expectation_filename}
    ...    ${entity_id}
    ...    ${response.json()}
    ...    ${True}


*** Keywords ***
Loading
Loading