Skip to content
001_01.json 5.64 KiB
Newer Older
lopezaguilar's avatar
lopezaguilar committed
{
  "tp_id": "TP/NGSI-LD/CI/Prov/E/001_01",
  "test_objective": "Check that you can create an entity",
lopezaguilar's avatar
lopezaguilar committed
  "reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.6.1",
  "config_id": "",
  "parent_release": "v1.3.1",
  "clauses": [
    "5.6.1"
  ],
  "pics_selection": "",
lopezaguilar's avatar
lopezaguilar committed
  "keywords": [
    "Create Entity Scenarios",
    "Delete Initial Entity"
  ],
lopezaguilar's avatar
lopezaguilar committed
  "teardown": "None",
  "initial_condition": "with {\n   the SUT containing an initial state\n}",
lopezaguilar's avatar
lopezaguilar committed
  "test_cases": [
    {
      "name": "001_01_01 MinimalEntity",
      "permutation_tp_id": "TP/NGSI-LD/CI/Prov/E/001_01_01",
      "doc": "Check that you can create an entity",
lopezaguilar's avatar
lopezaguilar committed
      "tags": [
        "5_6_1",
        "e-create"
      ],
      "setup": null,
      "teardown": "Delete Initial Entity",
      "template": "Create Entity Scenarios",
lopezaguilar's avatar
lopezaguilar committed
      "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: 'created_resource' set to 'created_entity' and\n            Query Parameter: 'response_body' set to 'response1.json()' 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-without-context-sample.jsonld'\n}",
lopezaguilar's avatar
lopezaguilar committed
      "http_verb": "POST",
      "endpoint": "entities/"
    },
    {
      "name": "001_01_02 EntityWithSimpleProperties",
      "permutation_tp_id": "TP/NGSI-LD/CI/Prov/E/001_01_02",
      "doc": "Check that you can create an entity",
lopezaguilar's avatar
lopezaguilar committed
      "tags": [
        "5_6_1",
        "e-create"
      ],
      "setup": null,
      "teardown": "Delete Initial Entity",
      "template": "Create Entity Scenarios",
lopezaguilar's avatar
lopezaguilar committed
      "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: 'created_resource' set to 'created_entity' and\n            Query Parameter: 'response_body' set to 'response1.json()' 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/ld+json' and\n payload defined in file: 'building-simple-attributes-sample.jsonld'\n}",
lopezaguilar's avatar
lopezaguilar committed
      "http_verb": "POST",
      "endpoint": "entities/"
    },
    {
      "name": "001_01_03 EntityWithRelationshipsProperties",
      "permutation_tp_id": "TP/NGSI-LD/CI/Prov/E/001_01_03",
      "doc": "Check that you can create an entity",
lopezaguilar's avatar
lopezaguilar committed
      "tags": [
        "5_6_1",
        "e-create"
      ],
      "setup": null,
      "teardown": "Delete Initial Entity",
      "template": "Create Entity Scenarios",
lopezaguilar's avatar
lopezaguilar committed
      "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: 'created_resource' set to 'created_entity' and\n            Query Parameter: 'response_body' set to 'response1.json()' 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/ld+json' and\n payload defined in file: 'building-relationship-of-property-sample.jsonld'\n}",
      "http_verb": "POST",
      "endpoint": "entities/"
    },
    {
      "name": "001_01_04 EntityWithLocationAttribute",
      "permutation_tp_id": "TP/NGSI-LD/CI/Prov/E/001_01_04",
      "doc": "Check that you can create an entity",
      "tags": [
        "5_6_1",
        "e-create"
      ],
      "setup": null,
      "teardown": "Delete Initial Entity",
      "template": "Create Entity Scenarios",
lopezaguilar's avatar
lopezaguilar committed
      "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: 'created_resource' set to 'created_entity' and\n            Query Parameter: 'response_body' set to 'response1.json()' 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/ld+json' and\n payload defined in file: 'building-location-attribute-sample.jsonld'\n}",
lopezaguilar's avatar
lopezaguilar committed
      "http_verb": "POST",
      "endpoint": "entities/"
    }
  ],
  "permutations": [
lopezaguilar's avatar
lopezaguilar committed
  ],
  "robotpath": "ContextInformation/Provision/Entities/CreateEntity",
lopezaguilar's avatar
lopezaguilar committed
}