{ "tp_id": "TP/NGSI-LD/CS/REGSUB/047_06", "test_objective": "Check that if a cSourceNotification is not sent successfully, the \"notification.timesSent\" member shall be incremented by one and the notification.lastFailure\" and \"notification.lastNotification\" members shall be updated with the current timestamp and the status of the context source registration subscription shall be updated to \"failed\"", "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": [ "Setup Initial Context Source Registration Subscriptions", "Delete Created Context Source Registrations And Subscriptions" ], "teardown": "Delete Created Context Source Registrations And Subscriptions", "initial_condition": "with {\n the SUT in the \"initial state\"\n}", "test_cases": [ { "name": "047_06_01 If A cSourceNotification Is Not Successfully Sent The Notification Member Shall Be Updated", "permutation_tp_id": "TP/NGSI-LD/CS/REGSUB/047_06_01", "doc": "Check that if a cSourceNotification is not sent successfully, the \"notification.timesSent\" member shall be incremented by one and the notification.lastFailure\" and \"notification.lastNotification\" members shall be updated with the current timestamp and the status of the context source registration subscription shall be updated to \"failed\"", "tags": [ "5_11_7", "csrsub-notification" ], "setup": null, "teardown": null, "template": null, "then": "then {\n the SUT sends a valid Response containing:\n Response containing:\n * Notification expectation file path set to 'notifications/expectations/1-timesSent-failed.json'\n * Expected Additional Members set to '${expected_notification_additional_members}'\n * Response Body set to '${response.json()}'\n\n}", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/csourceSubscriptions/{subscription_id}'\n method set to 'GET'\n Retrieve Context Source Registration Subscription with data: and\n Query Parameter: subscription id set to '${subscription_id}'\n}", "http_verb": "GET", "endpoint": "csourceSubscriptions/{subscription_id}" } ], "permutations": [], "robotpath": "ContextSource/RegistrationSubscription/ContextSourceRegistrationSubscriptionNotificationBehaviour", "robotfile": "047_06" }