{ "tp_id": "TP/NGSI-LD/CI/Prov/E/001_11", "test_objective": "Check that you can create an entity with one or more scopes", "reference": "ETSI GS CIM 009 V1.5.1 [], clause 4.18", "config_id": "", "parent_release": "v1.5.1", "clauses": [ "4.18" ], "pics_selection": "", "keywords": [ "Create Entity Scenarios", "Delete Initial Entity" ], "teardown": "None", "initial_condition": "with {\n the SUT containing an initial state\n}", "test_cases": [ { "name": "001_11_01 EntityWithOneScope", "permutation_tp_id": "TP/NGSI-LD/CI/Prov/E/001_11_01", "doc": "Check that you can create an entity with one or more scopes", "tags": [ "4_18", "e-create", "since_v1.5.1" ], "setup": null, "teardown": "Delete Initial Entity", "template": "Create Entity Scenarios", "then": "then {\n the SUT sends a valid Response for the operations:\n Create Entity Selecting Content Type with Response Status Code set to 201 and\n Create Entity Selecting Content Type with Response Header: Location containing $${entity_id} and\n Retrieve Entity by Id with Check Created Resource Set To and\n Query Parameter: 'ignored_keys' set to '${None}' list of keys\n}", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/'\n method set to 'POST'\n Request Header['Content-Type'] set to 'application/json' and\n payload defined in file: 'building-minimal-with-one-scope.json'\n}", "http_verb": "POST", "endpoint": "entities/" }, { "name": "001_11_02 EntityWithManyScopes", "permutation_tp_id": "TP/NGSI-LD/CI/Prov/E/001_11_02", "doc": "Check that you can create an entity with one or more scopes", "tags": [ "4_18", "e-create", "since_v1.5.1" ], "setup": null, "teardown": "Delete Initial Entity", "template": "Create Entity Scenarios", "then": "then {\n the SUT sends a valid Response for the operations:\n Create Entity Selecting Content Type with Response Status Code set to 201 and\n Create Entity Selecting Content Type with Response Header: Location containing $${entity_id} and\n Retrieve Entity by Id with Check Created Resource Set To and\n Query Parameter: 'ignored_keys' set to '${None}' list of keys\n}", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/'\n method set to 'POST'\n Request Header['Content-Type'] set to 'application/json' and\n payload defined in file: 'building-minimal-with-many-scopes.json'\n}", "http_verb": "POST", "endpoint": "entities/" } ], "permutations": [ "when" ], "robotpath": "ContextInformation/Provision/Entities/CreateEntity", "robotfile": "001_11" }