Newer
Older
"test_objective": "Check that you cannot append entity attributes with invalid/missing id or invalid request body",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.6.3",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_5_6_3",
"keywords": [],
"teardown": "None",
lopezaguilar
committed
"initial_condition": "with {\n the SUT being in the \"initial state\" and\n the SUT containing an initial Entity ${entity} \n with an id set to ${entityId} \n}",
"test_cases": [
{
"name": "010_05_01 Append entity attributes with invalid entity fragments",
"doc": "Check that you cannot append entity attributes with invalid entity fragments",
"tags": [
"5_6_3",
"ea-append"
],
"setup": "Create Initial Entity",
"teardown": "Delete Initial Entity",
"then": "then {\n the SUT sends a valid Response for the operations:\n Append Entity Attributes with Response Status Code set to 400 and\n Append Entity Attributes with Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/InvalidRequest' and\n Append Entity Attributes 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}/attrs'\n method set to 'POST'\n Append Entity Attributes and\n Query Parameter: id set to '${entity_id}' and\n Query Parameter: fragment_filename set to 'invalid-fragment.jsonld' and\n Query Parameter: content_type set to 'application/ld+json'\n}",
"http_verb": "POST",
"endpoint": "entities/{id}/attrs"
}
],
"permutations": [],
"robotpath": "ContextInformation/Provision/EntityAttributes/AppendEntityAttributes",
"robotfile": "010_05"
}