fix(distops): exclusive registrations name the entity ids and do not overlap local data (TS 104-175 clause 9.3.3)
Exclusive registrations in the Distributed Operations setups.
Spec: TS 104-175 clause 4.3.3.2: an exclusive registration "always relates to specific Attributes of a single Entity", and the Context Broker "holds no data locally about the registered Attributes". Clause 9.3.3 (proxied registrations) builds on that.
Change:
- D012-D016 (batch create, upsert, update, delete, merge): the exclusive registration names the two entity ids the Test Case creates instead of an id pattern.
context-source-registration-vehicle-speed-with-batch-ops.jsonldnow has one information item per entity id. The locally created entities do not carry the registered attribute (speed). D013 checks that the forwarded entities are the two ids, withspeed. - D003 (append): the attribute fragment is sent with the suite's @context, so its names expand to the registration's IRIs. The local entity is created
local=trueand lacksspeed. - D005: the local entity does not carry the registered attribute.
- D006 (redirect): no local copy of the entity is created.
- 033_01_02: the registration names an idPattern, so it is
redirect, notexclusive. - Keywords:
Append Entity AttributesandAppend Entity Attributes With Parameterstake an optionalcontext(a Link header);Prepare Context Source Registration From Filetakes a second entity id.
Effect (against coraine): 12 Test Cases fail on develop and pass with this MR: D003_01_exc, D003_02_exc, D006_01_red, D006_02_red, D012_01_exc, D013_01_exc, D013_02_exc, D014_01_exc, D014_02_exc, D015_01_exc, D016_01_exc, 033_01_02. D005_01_exc passes on both. None breaks. In a run of the whole DistributedOperations/Provision directory, D001_02_inc and D001_03_03_inc also pass: on develop they fail on entities left over by earlier Test Cases.
Checks run: robocop format --check (0 files), scripts/find_unused_test_data.py (nothing new), statisticsDocumentationData.py (0 of 625 failed), doc unit tests OK.
Fix MR 9 of the plan: https://famzang.com/ttf/ngsi-ld-suite-plan.html