Commit a5e2d001 authored by lopesg's avatar lopesg
Browse files

added missing test validation

parent bce63fb7
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -7,7 +7,8 @@ Resource ${EXECDIR}/resources/JsonUtils.resource
*** Variable ***
${vehicle_id_prefix}=  urn:ngsi-ld:Vehicle:
${filename}=  vehicle-temporal-representation-sample.jsonld
${fragment_filename}=  vehicle-temporal-intanceid-update-fragment.jsonld
${fragment_filename}=  vehicle-temporal-instanceid-update-fragment.jsonld
${expectation_filename}=  vehicle-temporal-representation-update-expectation.jsonld
${attributeId}=  speed

*** Test Cases ***
@@ -37,4 +38,9 @@ ${attributeId}= speed
    ${modifiedAt_after_update_date}=  Convert Date  ${modifiedAt_after_update}  epoch
    Should Be True  ${modifiedAt_before_update_date}<${modifiedAt_after_update_date}

    ${temporal_entity_expectation_payload}=    Load Test Sample   temporalEntities/expectations/${expectation_filename}    ${temporal_entity_representation_id}
    Retrieve Temporal Representation Of Entity   ${temporal_entity_representation_id}    context=${ngsild_test_suite_context}   accept=${CONTENT_TYPE_LD_JSON}
    ${ignored_attributes}=  Create List    ${status_regex_expr}    instanceId
    Check Updated Resource Set To     ${temporal_entity_expectation_payload}

    [Teardown]    Delete Temporal Representation Of Entity    ${temporal_entity_representation_id}
 No newline at end of file
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ Test Template Partially Update Temporal Entity
*** Variable ***
${vehicle_id_prefix}=  urn:ngsi-ld:Vehicle:
${filename}=  vehicle-temporal-representation-sample.jsonld
${fragment_filename}=  vehicle-temporal-intanceid-update-fragment.jsonld
${fragment_filename}=  vehicle-temporal-instanceid-update-fragment.jsonld
${status_code}=  400

*** Test Cases ***                                                                                                              TEMPORAL_ENTITY_ID                          ATTRIBUTE_ID               INSTANCE_ID                                               
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ Test Template Partially Update Temporal Entity
*** Variable ***
${vehicle_id_prefix}=  urn:ngsi-ld:Vehicle:
${filename}=  vehicle-temporal-representation-sample.jsonld
${fragment_filename}=  vehicle-temporal-intanceid-update-fragment.jsonld
${fragment_filename}=  vehicle-temporal-instanceid-update-fragment.jsonld
${status_code}=  404

*** Test Cases ***                                                                                                               TEMPORAL_ENTITY_ID                          ATTRIBUTE_ID               INSTANCE_ID