{ "tp_id": "TP/NGSI-LD/CI/Prov/EA/010_07", "test_objective": "Check that you can append a scope to an entity", "reference": "ETSI GS CIM 009 V1.5.1 [], clauses 4.18, 5.6.3", "config_id": "", "parent_release": "v1.5.1", "clauses": [ "4.18", "5.6.3" ], "pics_selection": "", "keywords": [ "Create Initial Entity", "Delete Initial Entity" ], "teardown": "None", "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_07_01 Append scope to an entity with overwrite enabled", "permutation_tp_id": "TP/NGSI-LD/CI/Prov/EA/010_07_01", "doc": "Check that scope is replaced if overwrite is enabled", "tags": [ "4_18", "5_6_3", "ea-append", "since_v1.5.1" ], "setup": "Create Initial Entity", "teardown": "Delete Initial Entity", "template": null, "then": "then {\n the SUT sends a valid Response for the operations:\n Append Entity Attributes with Response Status Code set to 204 and\n Append Entity Attributes with Updated Entity set to ${entity}\n}", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/'\n method set to 'GET'\n Request Retrieve Entity by Id and\n Query Parameter: id set to '${entity_id}' and\n Query Parameter: accept set to 'application/json' and\n Query Parameter: context set to 'https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld'\n}", "http_verb": "GET", "endpoint": "" }, { "name": "010_07_01 Append scope to an entity with overwrite disabled", "permutation_tp_id": "TP/NGSI-LD/CI/Prov/EA/010_07_01", "doc": "Check that scope is appended if overwrite is disabled", "tags": [ "4_18", "5_6_3", "ea-append", "since_v1.5.1" ], "setup": "Create Initial Entity", "teardown": "Delete Initial Entity", "template": null, "then": "then {\n the SUT sends a valid Response for the operations:\n Append Entity Attributes With Parameters with Response Status Code set to 204 and\n Append Entity Attributes With Parameters with Updated Entity set to ${entity}\n}", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/'\n method set to 'GET'\n Request Retrieve Entity by Id and\n Query Parameter: id set to '${entity_id}' and\n Query Parameter: accept set to 'application/json' and\n Query Parameter: context set to 'https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld'\n}", "http_verb": "GET", "endpoint": "" } ], "permutations": [ "then" ], "robotpath": "ContextInformation/Provision/EntityAttributes/AppendEntityAttributes", "robotfile": "010_07" }