Commit f9fa61d8 authored by kzangeli's avatar kzangeli
Browse files

fix: D001_02_exc/D002_02_exc register without the operation under test

These verify create/delete is blocked when the registration does NOT support
the operation, but pointed at the redirectionOps fixture - and per clause 9.2
the redirectionOps group INCLUDES createEntity and deleteEntity, so the op is
supported and the broker correctly forwards (so the tests' no-forward premise
never held).

Point both at a new exclusive fixture,
context-source-registration-vehicle-speed-with-retrieve-ops.jsonld, with
operations:["retrieveOps"] (no create/delete) claiming the speed property (not
the locally-held attributes, so the exclusive registration is valid). The
operation is then genuinely unsupported: create -> 409, delete -> 207 (local
delete plus the unforwardable registered portion), neither forwards. New
fixture only; the shared redirection-ops fixture (~38 users) is untouched.
parent 6f18cd27
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ ${entity_id_prefix} urn:ngsi-ld:Vehicle:
${entity_payload_filename}              vehicle-simple-attributes.jsonld
${entity_speed_filename}                vehicle-speed-attribute.jsonld
${registration_id_prefix}               urn:ngsi-ld:Registration:
${registration_payload_file_path}       csourceRegistrations/context-source-registration-vehicle-redirection-ops.jsonld
${registration_payload_file_path}       csourceRegistrations/context-source-registration-vehicle-speed-with-retrieve-ops.jsonld


*** Test Cases ***
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ Test Teardown Delete Created Entity And Registration And Stop Context Sour
${entity_id_prefix}                     urn:ngsi-ld:Vehicle:
${entity_payload_filename}              vehicle-simple-attributes.jsonld
${registration_id_prefix}               urn:ngsi-ld:Registration:
${registration_payload_file_path}       csourceRegistrations/context-source-registration-vehicle-redirection-ops.jsonld
${registration_payload_file_path}       csourceRegistrations/context-source-registration-vehicle-speed-with-retrieve-ops.jsonld


*** Test Cases ***
+20 −0
Original line number Diff line number Diff line
{
  "id": "urn:ngsi-ld:ContextSourceRegistration:randomUUID",
  "type": "ContextSourceRegistration",
  "information": [
    {
      "entities": [
        {
          "id": "urn:ngsi-ld:Vehicle:randomUUID",
          "type": "Vehicle"
        }
      ],
      "propertyNames": ["speed"]
    }
  ],
  "operations": ["retrieveOps"],
  "endpoint": "http://my.csource.org:1026",
  "@context": [
    "https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld"
  ]
}