{ "tp_id": "TP/NGSI-LD/CI/Prov/TEA/014_03", "test_objective": "Check that an error is raised if you add an attribute to a non-existent entity", "reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.6.12", "config_id": "", "parent_release": "v1.3.1", "clauses": [ "5.6.12" ], "pics_selection": "", "keywords": [ "Delete Temporal Entity" ], "teardown": "Delete Temporal Entity", "initial_condition": "with {\n the SUT containing an initial state\n}", "test_cases": [ { "name": "014_03_01 Add Attribute To Temporal Entity", "permutation_tp_id": "TP/NGSI-LD/CI/Prov/TEA/014_03_01", "doc": "Check that an error is raised if you add an attribute to a non-existent entity", "tags": [ "5_6_12", "tea-append" ], "setup": null, "teardown": null, "template": null, "then": "then {\n the SUT sends a valid Response for the operations:\n Create Or Update Temporal Representation Of Entity Selecting Content Type with Response Status Code set to 201 and\n Append Attribute To Temporal Entity with Response Status Code set to 404\n}", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/temporal/entities/{temporal_entity_id}/attrs'\n method set to 'POST'\n Append Attribute to Temporal Entity and\n Query Parameter: id set to '${not_found_temporal_entity_representation_id}' and\n Query Parameter: fragment_filename set to 'vehicle-temporal-representation-fragment.jsonld' and\n Query Parameter: content_type set to 'application/ld+json'\n}", "http_verb": "POST", "endpoint": "temporal/entities/{temporal_entity_id}/attrs" } ], "permutations": [], "robotpath": "ContextInformation/Provision/TemporalEntityAttributes/AddAttributes", "robotfile": "014_03" }