Skip to content
047_05.json 2.56 KiB
Newer Older
lopezaguilar's avatar
lopezaguilar committed
{
  "tp_id": "TP/NGSI-LD/CS/REGSUB/047_05",
  "test_objective": "Check that if a cSourceNotification is sent successfully to the \"endpoint\" member, the \"notification.timesSent\" member shall be incremented by one and the \"notification.lastSuccess\" and \"notification.lastNotification\" members shall be updated with the current timestamp and the status of the context source registration subscription shall be updated to \"ok\"",
  "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_05_01 If A cSourceNotification Is Successfully Sent The Notification Member Shall Be Updated",
      "permutation_tp_id": "TP/NGSI-LD/CS/REGSUB/047_05_01",
      "doc": "Check that if a cSourceNotification is sent successfully to the \"endpoint\" member, the \"notification.timesSent\" member shall be incremented by one and the \"notification.lastSuccess\" and \"notification.lastNotification\" members shall be updated with the current timestamp and the status of the context source registration subscription shall be updated to \"ok\"",
      "tags": [
        "5_11_7",
        "csrsub-notification"
      ],
      "setup": null,
      "teardown": null,
      "template": null,
      "then": "then {\n    the SUT sends a valid Response for the operation:\n        Retrieve Context Source Registration Subscription with Response containing:\n            * Notification expectation file path set to 'notifications/expectations/1-timesSent-ok.json'\n            * Expected Additional Members set to '${expected_notification_additional_members}'\n            * Response Body set to '${response.json()}'\n\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/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_05"
}