Skip to content
046_02.json 2.67 KiB
Newer Older
{
  "tp_id": "TP/NGSI-LD/CI/SUB/046_02",
  "test_objective": "If a Subscription defines a timeInterval member, a Notification shall be sent periodically, when the time interval (in seconds) specified in such value field is reached, regardless of Attribute changes.",
  "reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.11.7",
  "config_id": "",
  "parent_release": "v1.3.1",
  "pics_selection": "PICS_5_11_7",
  "keywords": [
    "Before Test",
    "After Test"
  ],
  "teardown": "After Test",
  "initial_condition": "with {\n    the SUT in the \"initial state\"\n}",
  "test_cases": [
    {
      "name": "046_02_01 Check that a notification is sent on the timeInterval",
      "permutation_tp_id": "TP/NGSI-LD/CI/SUB/046_02_01",
      "doc": "If a Subscription defines a timeInterval member, a Notification shall be sent periodically, when the time interval (in seconds) specified in such value field is reached, regardless of Attribute changes.",
      "tags": [
        "046_02",
        "5_11_7",
        "sub-notification"
      ],
      "setup": null,
      "teardown": null,
      "template": null,
      "then": "then {\n    the client at '${endpoint}' receives a valid Notification containing:\n        After waiting '15' seconds and\n        After waiting '15' seconds and\n        Notification data: '${notification}[subscriptionId]' equal to '${subscription_id}' and\n        Notification data: '${notification}[data][0][id]' equal to '${entity_id}' and\n        Notification data: '${notification}[data][0][name][value]' equal to 'Eiffel Tower' and\n        The dictionary `${notification}' should contain the key 'data' and\n        The variable `${notification}[data]' should not be '${EMPTY}' and\n        The expression `'${notification}[data][0][airQualityLevel][value]'=='4.0' or '${notification}[data][0][airQualityLevel][value]'=='4'' should be True\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",
      "http_verb": "",
      "endpoint": ""
    }
  ],
  "permutations": [],
  "robotpath": "ContextInformation/Subscription/Notification",
  "robotfile": "046_02"
}