Skip to content
046_11.json 2.06 KiB
Newer Older
lopezaguilar's avatar
lopezaguilar committed
{
  "tp_id": "TP/NGSI-LD/CI/SUB/046_11",
  "test_objective": "A Notification shall be sent (as mandated by each concrete binding and including any optional endpoint.info defined by clause 5.2.22) to the endpoint specified by the endpoint.uri member of the notification structure defined by clause 5.2.14",
  "reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.8.6",
  "config_id": "",
  "parent_release": "v1.3.1",
  "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}",
lopezaguilar's avatar
lopezaguilar committed
  "test_cases": [
    {
      "name": "046_11_01 Check that timesSent is increased by one",
      "permutation_tp_id": "TP/NGSI-LD/CI/SUB/046_11_01",
      "doc": "The notification.timesSent member shall be incremented by one.",
      "tags": [
        "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 '10' seconds     and\n        Notification received Notification data: '${response.json()}[notification][timesSent]' equal to '${1}'     and\n        Retrieve Subscription received The dictionary `${response.json()}[notification]' should contain the key 'timesSent'\n}",
lopezaguilar's avatar
lopezaguilar committed
      "when": "when {\n    the SUT receives a Request from the client containing:\n        URL set to '/ngsi-ld/v1/subscriptions/{id}'\n        method set to 'GET'\n        Subscription Retrieve with the following data: and\n    Query Parameter: id set to '${subscription_id}' and\n    Query Parameter: accept set to 'application/ld+json' and\n    Query Parameter: context set to 'https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld'\n}",
      "http_verb": "GET",
      "endpoint": "subscriptions/{id}"
    }
  ],
  "permutations": [],
  "robotpath": "ContextInformation/Subscription/SubscriptionNotificationBehaviour",
  "robotfile": "046_11"
}