Newer
Older
lopezaguilar
committed
"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 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",
lopezaguilar
committed
"initial_condition": "with {\n the SUT containing an initial state\n}",
"test_cases": [
{
"name": "032_01_01 NotPresentId",
"permutation_tp_id": "TP/NGSI-LD/CI/SUB/032_01_01",
lopezaguilar
committed
"doc": "Check that you cannot delete a subscription: If the subscription Id is not present or it is not a valid URI, then an error shall be raised",
"tags": [
"5_8_5",
"sub-delete"
],
"setup": null,
"teardown": null,
"template": "Delete Subscription With Non present Or Invalid Id",
lopezaguilar
committed
"then": "then {\n the SUT sends a valid Response for the operations:\n Delete Subscription with Response Status Code set to 405 and\n Delete Subscription with Response Body containing the type '${EMPTY}' and\n Delete Subscription with Response body containing 'title' element\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",
lopezaguilar
committed
"doc": "Check that you cannot delete a subscription: If the subscription Id is not present or it is not a valid URI, then an error shall be raised",
"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 for the operations:\n Delete Subscription with Response Status Code set to 400 and\n Delete Subscription with Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/BadRequestData' and\n Delete Subscription with Response body containing 'title' element\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": [
lopezaguilar
committed
"then",
"when"
],
"robotpath": "ContextInformation/Subscription/DeleteSubscription",
"robotfile": "032_01"
}