Newer
Older
"test_objective": "Check that you cannot delete an entity with invalid/missing id",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.6.6",
"config_id": "",
"parent_release": "v1.3.1",
"clauses": [
"5.6.6"
],
"pics_selection": "",
lopezaguilar
committed
"initial_condition": "with {\n the SUT containing an initial state\n}",
"test_cases": [
{
"name": "002_02_01 Delete an entity if the Entity Id is not present",
"doc": "Check that you cannot delete an entity with invalid/missing id",
"tags": [
],
"setup": null,
"teardown": null,
"template": "Delete Entity Scenarios",
lopezaguilar
committed
"then": "then {\n the SUT sends a valid Response for the operations:\n Delete Entity by Id with Response Status Code set to 405 and\n Delete Entity by Id with Response Body containing the type '${EMPTY}' and\n Delete Entity by Id 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/entities/{id}'\n method set to 'DELETE'\n Delete Entity Request with id set to '${EMPTY}'\n}",
"http_verb": "DELETE",
"endpoint": "entities/{id}"
},
{
"name": "002_02_02 Delete an entity if the Entity Id is not a valid URI",
"doc": "Check that you cannot delete an entity with invalid/missing id",
"tags": [
],
"setup": null,
"teardown": null,
"template": "Delete Entity Scenarios",
"then": "then {\n the SUT sends a valid Response for the operations:\n Delete Entity by Id with Response Status Code set to 400 and\n Delete Entity by Id with Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/BadRequestData' and\n Delete Entity by Id 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/entities/{id}'\n method set to 'DELETE'\n Delete Entity Request with id set to 'thisisaninvaliduri'\n}",
"http_verb": "DELETE",
"endpoint": "entities/{id}"
}
],
"permutations": [
lopezaguilar
committed
"then",
"when"
],
"robotpath": "ContextInformation/Provision/Entities/DeleteEntity",
"robotfile": "002_02"
}