Skip to content
046_04.json 2.81 KiB
Newer Older
{
  "tp_id": "TP/NGSI-LD/CI/SUB/046_04",
  "test_objective": "If a Subscription does not define a timeInterval member, the notification shall be sent whenever there is a change in the watched Attributes. The notification message shall include all the subscribed Entities that changed and that match (as mandated by clauses 4.9 and 4.10) the query and geoquery conditions",
lopezaguilar's avatar
lopezaguilar committed
  "reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.8.6",
  "config_id": "",
  "parent_release": "v1.3.1",
lopezaguilar's avatar
lopezaguilar committed
  "pics_selection": "PICS_5_8_6",
  "keywords": [
    "Before Test",
    "After Test"
  ],
  "teardown": "After Test",
  "initial_condition": "with {\n   the SUT containing an initial state\n}",
  "test_cases": [
    {
      "name": "046_04_01 Check that a notification is sent with all entities",
      "permutation_tp_id": "TP/NGSI-LD/CI/SUB/046_04_01",
      "doc": "The notification message shall include all the subscribed Entities that changed and that match (as mandated by clauses 4.9 and 4.10) the query and geoquery conditions",
      "tags": [
lopezaguilar's avatar
lopezaguilar committed
        "5_8_6",
        "sub-notification"
      ],
      "setup": null,
      "teardown": null,
      "template": null,
      "then": "then {\n    the client at '${endpoint}' receives a valid Notification containing:\n        Notification received After waiting '5' seconds     and\n        Notification received Notification data: '${notification}[subscriptionId]' equal to '${subscription_id}'     and\n        Notification received Notification data: '${notification}[data][0][id]' equal to '${entity_id}'     and\n        Notification received Notification data: '${notification}[data][0][airQualityLevel][value]' equal to '${5}'     and\n        Notification received Notification data: '${notification}[data][0][name][value]' equal to 'Eiffel Tower'     and\n        Notification received The dictionary `${notification}' should contain the key 'data'     and\n        Notification received The variable `${notification}[data]' should not be '${EMPTY}'\n}",
      "when": "The client at ${endpoint} receives a valid Notification containing a subscription with id set to ${subscriptionId} \n           and status equals 'active'\n           and timeInterval is set to '${timeInterval}'\n           and watchedAttributes is 'Empty'\n           and q is 'Empty'\n           and geoQ is 'Empty'\n           and with subscription.entity with type 'Building'\n           and notification.endpoint.accept is 'application/json'\n           \n           When the timeinterval is reached at ${timeInterval} seconds\n           the SUT needs to send out a notification to the client \n           sends a notification to the client every ${timeInterval} seconds",
lopezaguilar's avatar
lopezaguilar committed
      "http_verb": "",
      "endpoint": ""
lopezaguilar's avatar
lopezaguilar committed
  "robotpath": "ContextInformation/Subscription/SubscriptionNotificationBehaviour",