Commit 1194f78a authored by kzangeli's avatar kzangeli
Browse files

fix(local): CSR discovery expectations match the spec-faithful broker

Align the QueryContextSourceRegistrations expectations with a broker that follows
the spec rather than the previous over-constrained shapes (broker --testConformance
retired):
- 037-05-01 / 037-08: information[] narrowed to the entries matching the discovery
  filter (clause 5.10.2.5 "should") -- see forge issue #118
- 037-07: geo-coverage location rendered as bare GeoJSON, consistent with the
  single-CSR retrieve endpoint (clause 5.2.9) -- see forge issue #119
parent eb289c17
Loading
Loading
Loading
Loading
+1 −16
Original line number Diff line number Diff line
@@ -3,21 +3,6 @@
    "id": "urn:ngsi-ld:ContextSourceRegistration:randomUUID",
    "type": "ContextSourceRegistration",
    "information": [
      {
        "entities": [
          {
            "id": "urn:ngsi-ld:Vehicle:A456",
            "type": "Vehicle"
          }
        ],
        "propertyNames": [
          "brandName",
          "speed"
        ],
        "relationshipNames": [
          "isParked"
        ]
      },
      {
        "entities": [
          {
+22 −25
Original line number Diff line number Diff line
@@ -12,14 +12,11 @@
      }
    ],
    "location": {
         "type":"GeoProperty",
         "value":{
      "type": "Point",
      "coordinates": [
        -8.521,
        41.2
      ]
         }
    },
    "endpoint": "http://my.csource.org:1026"
  }
+22 −31
Original line number Diff line number Diff line
@@ -10,22 +10,13 @@
            "type": "Vehicle"
          }
        ],
         "propertyNames": ["brandName","speed"],
         "relationshipNames": ["isParked"]
         },
         {
         "entities": [
             {
                 "idPattern": ".*downtown$",
                 "type": "OffStreetParking"
             },
             {
                 "idPattern": ".*47$",
                 "type": "OffStreetParking"
             }
        "propertyNames": [
          "brandName",
          "speed"
        ],
         "propertyNames": ["availableSpotNumber","totalSpotNumber"],
         "relationshipNames": ["isNextToBuilding"]
        "relationshipNames": [
          "isParked"
        ]
      }
    ],
    "endpoint": "http://my.csource.org:1026"