Skip to content
032_01.json 2.37 KiB
Newer Older
lopezaguilar's avatar
lopezaguilar committed
{
  "tp_id": "TP/NGSI-LD/CI/SUB/032_01",
  "test_objective": "Check that you cannot delete a subscription: If the subscription Id is not present or it is not a valid URI, then an error of type BadRequestData shall be raised",
  "reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.8.5",
  "config_id": "",
  "parent_release": "v1.3.1",
  "pics_selection": "PICS_5_8_5",
  "keywords": [],
  "teardown": "None",
  "initial_condition": "with {\n    the SUT in the \"initial state\"\n}",
  "test_cases": [
    {
      "name": "032_01_01 NotPresentId",
      "permutation_tp_id": "TP/NGSI-LD/CI/SUB/032_01_01",
      "doc": "",
      "tags": [
        "5_8_5",
        "sub-delete"
      ],
      "setup": null,
      "teardown": null,
      "template": "Delete Subscription With Non present Or Invalid Id",
      "then": "then {\n    the SUT sends a valid Response containing:\n        Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/BadRequestData' and\n        Response body containing 'title' element and\n        Response Status Code set to 400\n}",
      "when": "when {\n    the SUT receives a Request from the client containing:\n        URL set to '/ngsi-ld/v1/subscriptions/{subscription_id}'\n        method set to 'DELETE'\n        Delete Subscription with id set to '${EMPTY}'\n}",
      "http_verb": "DELETE",
      "endpoint": "subscriptions/{subscription_id}"
    },
    {
      "name": "032_01_02 InvalidId",
      "permutation_tp_id": "TP/NGSI-LD/CI/SUB/032_01_02",
      "doc": "",
      "tags": [
        "5_8_5",
        "sub-delete"
      ],
      "setup": null,
      "teardown": null,
      "template": "Delete Subscription With Non present Or Invalid Id",
      "then": "then {\n    the SUT sends a valid Response containing:\n        Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/BadRequestData' and\n        Response body containing 'title' element and\n        Response Status Code set to 400\n}",
      "when": "when {\n    the SUT receives a Request from the client containing:\n        URL set to '/ngsi-ld/v1/subscriptions/{subscription_id}'\n        method set to 'DELETE'\n        Delete Subscription with id set to 'InvalidUri'\n}",
      "http_verb": "DELETE",
      "endpoint": "subscriptions/{subscription_id}"
    }
  ],
  "permutations": [
    "when"
  ],
  "robotpath": "ContextInformation/Subscription/DeleteSubscription",
  "robotfile": "032_01"
}