Commit 8451e7dd authored by Benoit Orihuela's avatar Benoit Orihuela
Browse files

feat: improve diff rules for contexts and lists of elements

parent 384b4ae8
Loading
Loading
Loading
Loading
+1 −0
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
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
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
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
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