Skip to content
011_05.json 3.04 KiB
Newer Older
{
  "tp_id": "TP/NGSI-LD/CI/Prov/EA/011_05",
  "test_objective": "Check that you can update a scope in an entity",
  "reference": "ETSI GS CIM 009 V1.5.1 [], clauses 4.18, 5.6.2",
  "config_id": "",
  "parent_release": "v1.5.1",
  "clauses": [
    "4.18",
    "5.6.2"
  ],
  "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": "011_05_01 Update scope to an entity already having a scope",
      "permutation_tp_id": "TP/NGSI-LD/CI/Prov/EA/011_05_01",
      "doc": "Check that scope is replaced if entity already has a scope",
      "tags": [
        "4_18",
        "5_6_2",
        "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        Update Entity Attributes with Response Status Code set to 204     and\n        Update 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": "011_05_02 Update scope to an entity not having a scope",
      "permutation_tp_id": "TP/NGSI-LD/CI/Prov/EA/011_05_02",
      "doc": "Check that scope is not added if entity does not already have a scope",
      "tags": [
        "4_18",
        "5_6_2",
        "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        Update Entity Attributes with Response Status Code set to 207     and\n        Update 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": ""
    }
  ],
  "permutations": [
    "then"
  ],
  "robotpath": "ContextInformation/Provision/EntityAttributes/UpdateEntityAttributes",
  "robotfile": "011_05"
}