{ "tp_id": "TP/NGSI-LD/CI/SUB/046_12", "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}", "test_cases": [ { "name": "046_12_01 Check that lastNotification is updated", "permutation_tp_id": "TP/NGSI-LD/CI/SUB/046_12_01", "doc": "The status, lastNotification and lastSuccess members shall be updated with expected value and dates. This test will check these formats.", "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: '${notification_info}[0][status]' equal to 'ok' and\n Notification received The dictionary `${notification_info}[0]' should contain the key 'status' and\n Notification received The dictionary `${notification_info}[0]' should contain the key 'lastNotification' and\n Notification received The dictionary `${notification_info}[0]' should contain the key 'lastSuccess'\n}", "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_12" }