Newer
Older
{
"tp_id": "TP/NGSI-LD/CI/SUB/046_13",
"test_objective": "If the response to the notification request is different than 200 OK then implementations shall: Update notification.lastFailure with a timestamp representing the current date and time, update notification.status to \"failed\"",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.8.6",
"config_id": "",
"parent_release": "v1.3.1",
"clauses": [
"5.8.6"
],
"pics_selection": "",
"keywords": [
"Before Test",
"After Test"
],
"teardown": "After Test",
lopezaguilar
committed
"initial_condition": "with {\n the SUT containing an initial state\n}",
"test_cases": [
{
"name": "046_13_01 Check that lastFailure and status are updated if a notification could not be sent",
"permutation_tp_id": "TP/NGSI-LD/CI/SUB/046_13_01",
"doc": "If the response to the notification request is different than 200 OK then implementations shall: Update notification.lastFailure with a timestamp representing the current date and time, update notification.status to \"failed\"",
"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 Notification data: '${notification_info}[0][status]' equal to 'failed' 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 'lastFailure'\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_13"
}