Commit 7d609da8 authored by Daniel Kastl's avatar Daniel Kastl Committed by kzangeli
Browse files

fix(D005_01_inc): create the entity with a speed that the update can change

D005_01_inc sends a partial update of "speed" without a datasetId
(vehicle-speed-two-datasetid-01-fragment.jsonld, value 99), so the
update targets the default instance of speed. But the entity is created
from vehicle-simple-different-attributes.jsonld, whose only speed
instance has the datasetId urn:ngsi-ld:Property:speedometerA4567-speed2.
There is no default instance to update, so the local value stays 56 and
"Should Not Be Equal ${old_speed} ${new_speed}" fails.

Create the entity from vehicle-speed-attribute.jsonld instead: the same
speed (56) as a default instance. The fragment, shared with five other
tests, stays as it is.

(cherry picked from commit 7fc393165922f0beda24c25985327df702b5573e)
parent 604d111b
Loading
Loading
Loading
Loading
+1 −1
Changes for TP/NGSI-LD/DistributedOperations/Provision/EntityAttributes/PartialAttributeUpdate/D005_01_inc.robot: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ Test Teardown Delete Registration And Stop Context Source Mock Server


*** Variables ***
${entity_payload_filename}              vehicle-simple-different-attributes.jsonld
${entity_payload_filename}              vehicle-speed-attribute.jsonld
${fragment_filename}                    vehicle-speed-two-datasetid-01-fragment.jsonld
${registration_payload_file_path}       csourceRegistrations/context-source-registration-vehicle-redirection-ops.jsonld
${attribute_id}                         speed