Skip to content
047_16.json 5.85 KiB
Newer Older
lopezaguilar's avatar
lopezaguilar committed
{
  "tp_id": "TP/NGSI-LD/CS/REGSUB/047_16",
  "test_objective": "Check if you update a context source registration subscription, a CsourceNotification will be sent with all currently matching context source registrations",
  "reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.11.7",
  "config_id": "",
  "parent_release": "v1.3.1",
  "clauses": [
    "5.11.7"
  ],
  "pics_selection": "",
lopezaguilar's avatar
lopezaguilar committed
  "keywords": [],
  "teardown": "None",
  "initial_condition": "with {\n    the SUT being in the \"initial state\" and\n    the SUT containing a list of Context Source Registrations (CSRs) providing latest information about some entities\n    and the SUT containing a Context Source Registration Subscription (CSRS1)\n}",
lopezaguilar's avatar
lopezaguilar committed
  "test_cases": [
    {
      "name": "047_16_01 MatchFirstContextSourceRegistration",
      "permutation_tp_id": "TP/NGSI-LD/CS/REGSUB/047_16_01",
      "doc": "Check if you update a context source registration subscription, a CsourceNotification will be sent with all currently matching context source registrations",
      "tags": [
        "5_11_7",
        "csrsub-notification"
      ],
      "setup": "Create Initial Context Source Registrations And Context Source Registration Subscription",
      "teardown": "Delete Created Context Source Registrations And Context Source Registration Subscription",
lopezaguilar's avatar
lopezaguilar committed
      "template": "Receive cSourceNotification For Newly Matching Context Source Registrations",
      "then": "then {\n    the client at '${endpoint}' receives a valid Notification containing:\n        Notification received Waiting for Notification and validate it and\n    Query Parameter: expected_subscription_id set to 'subscription_id' and\n    Query Parameter: expected_context_source_registration_ids set to 'notification_csr_ids' and\n    Query Parameter: expected_trigger_reason set to 'newlyMatching' and\n    Query Parameter: expected_notification_data_entities set to '${EMPTY}' and\n    Query Parameter: timeout set to '5'\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 'PATCH'\n        Update Context Source Registration Subscription with subscription id set to '${subscription_id}' and subscription update fragment set to '${subscription_update_fragment}'\n}",
      "http_verb": "PATCH",
      "endpoint": "csourceSubscriptions/{subscription_id}"
    },
    {
      "name": "047_16_02 MatchSecondContextSourceRegistration",
      "permutation_tp_id": "TP/NGSI-LD/CS/REGSUB/047_16_02",
      "doc": "Check if you update a context source registration subscription, a CsourceNotification will be sent with all currently matching context source registrations",
      "tags": [
        "5_11_7",
        "csrsub-notification"
      ],
      "setup": "Create Initial Context Source Registrations And Context Source Registration Subscription",
      "teardown": "Delete Created Context Source Registrations And Context Source Registration Subscription",
lopezaguilar's avatar
lopezaguilar committed
      "template": "Receive cSourceNotification For Newly Matching Context Source Registrations",
      "then": "then {\n    the client at '${endpoint}' receives a valid Notification containing:\n        Notification received Waiting for Notification and validate it and\n    Query Parameter: expected_subscription_id set to 'subscription_id' and\n    Query Parameter: expected_context_source_registration_ids set to 'notification_csr_ids' and\n    Query Parameter: expected_trigger_reason set to 'newlyMatching' and\n    Query Parameter: expected_notification_data_entities set to '${EMPTY}' and\n    Query Parameter: timeout set to '5'\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 'PATCH'\n        Update Context Source Registration Subscription with subscription id set to '${subscription_id}' and subscription update fragment set to '${subscription_update_fragment}'\n}",
      "http_verb": "PATCH",
      "endpoint": "csourceSubscriptions/{subscription_id}"
    },
    {
      "name": "047_16_03 MatchBothContextSourceRegistrations",
      "permutation_tp_id": "TP/NGSI-LD/CS/REGSUB/047_16_03",
      "doc": "Check if you update a context source registration subscription, a CsourceNotification will be sent with all currently matching context source registrations",
      "tags": [
        "5_11_7",
        "csrsub-notification"
      ],
      "setup": "Create Initial Context Source Registrations And Context Source Registration Subscription",
      "teardown": "Delete Created Context Source Registrations And Context Source Registration Subscription",
lopezaguilar's avatar
lopezaguilar committed
      "template": "Receive cSourceNotification For Newly Matching Context Source Registrations",
      "then": "then {\n    the client at '${endpoint}' receives a valid Notification containing:\n        Notification received Waiting for Notification and validate it and\n    Query Parameter: expected_subscription_id set to 'subscription_id' and\n    Query Parameter: expected_context_source_registration_ids set to 'notification_csr_ids' and\n    Query Parameter: expected_trigger_reason set to 'newlyMatching' and\n    Query Parameter: expected_notification_data_entities set to '${EMPTY}' and\n    Query Parameter: timeout set to '5'\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 'PATCH'\n        Update Context Source Registration Subscription with subscription id set to '${subscription_id}' and subscription update fragment set to '${subscription_update_fragment}'\n}",
      "http_verb": "PATCH",
      "endpoint": "csourceSubscriptions/{subscription_id}"
    }
  ],
  "permutations": [],
  "robotpath": "ContextSource/RegistrationSubscription/ContextSourceRegistrationSubscriptionNotificationBehaviour",
  "robotfile": "047_16"
}