Skip to content
{
"tp_id": "TP/NGSI-LD/CI/Cons/TE/021_04",
"test_objective": "Check that you can query the temporal evolution of entities using a context",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.7.4",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_5_7_4",
"keywords": [
"Setup Initial Entities",
"Delete Initial Entities"
],
"teardown": "Delete Initial Entities",
"initial_condition": "with {\n the SUT in the \"initial state\"\n}",
"test_cases": [
{
"name": "021_04 Query the temporal evolution of entities using a context",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/TE/021_04",
"doc": "Check that you can query the temporal evolution of entities using a context",
"tags": [
"5_7_4",
"te-query"
],
"setup": null,
"teardown": null,
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Request response body containing a list that contains Entity Temporal Elements\n compared with file 'vehicles-temporal-representation-021-04-expectation.jsonld'\n and using the list of entity ids define in '${temporal_entities_representation_ids}' and\n Response Status Code set to 200\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/temporal/entities'\n method set to 'GET'\n and\n Query Parameter: entity_types set to '${entity_types_to_be_retrieved}' and\n Query Parameter: timerel set to 'after' and\n Query Parameter: timeAt set to '2020-07-01T12:05:00Z' 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": "temporal/entities"
}
],
"permutations": [],
"robotpath": "ContextInformation/Consumption/TemporalEntity/QueryTemporalEvolutionOfEntities",
"robotfile": "021_04"
}
\ No newline at end of file
{
"tp_id": "TP/NGSI-LD/CI/Cons/TE/021_05",
"test_objective": "Check that you can query the temporal evolution of entities matching the given type(s)",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.7.4",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_5_7_4",
"keywords": [
"Setup Initial Entities",
"Delete Initial Entities"
],
"teardown": "Delete Initial Entities",
"initial_condition": "with {\n the SUT in the \"initial state\"\n}",
"test_cases": [
{
"name": "021_05_01 Query the temporal evolution of entities matching the given type(s)",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/TE/021_05_01",
"doc": "Check that you can query the temporal evolution of entities matching the given type(s)",
"tags": [
"5_7_4",
"te-query"
],
"setup": null,
"teardown": null,
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Request response body containing a list that contains Entity Temporal Elements\n compared with file 'vehicles-temporal-representation-021-05-expectation.jsonld'\n and using the list of entity ids define in '${temporal_entities_representation_ids}' and\n Response Status Code set to 200\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/temporal/entities'\n method set to 'GET'\n and\n Query Parameter: entity_types set to '${entity_types_to_be_retrieved}' and\n Query Parameter: timerel set to 'after' and\n Query Parameter: timeAt set to '2020-07-01T12:05:00Z' 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": "temporal/entities"
}
],
"permutations": [],
"robotpath": "ContextInformation/Consumption/TemporalEntity/QueryTemporalEvolutionOfEntities",
"robotfile": "021_05"
}
\ No newline at end of file
{
"tp_id": "TP/NGSI-LD/CI/Cons/TE/021_06",
"test_objective": "Check that you can query the temporal evolution of entities matching the given identifier(s)",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.7.4",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_5_7_4",
"keywords": [
"Setup Initial Entities",
"Delete Initial Entities"
],
"teardown": "Delete Initial Entities",
"initial_condition": "with {\n the SUT in the \"initial state\"\n}",
"test_cases": [
{
"name": "021_06_01 Query the temporal evolution of entities matching the given identifier(s)",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/TE/021_06_01",
"doc": "Check that you can query the temporal evolution of entities matching the given identifier(s)",
"tags": [
"5_7_4",
"te-query"
],
"setup": null,
"teardown": null,
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Request response body containing a list that contains Entity Temporal Elements\n compared with file 'vehicles-temporal-representation-021-06-expectation.jsonld'\n and using the list of entity ids define in '${temporal_entities_representation_ids}' and\n Response Status Code set to 200\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/temporal/entities'\n method set to 'GET'\n and\n Query Parameter: entity_types set to '${entity_types_to_be_retrieved}' and\n Query Parameter: entity_ids set to '${entity_ids_to_be_retrieved}' and\n Query Parameter: timerel set to 'after' and\n Query Parameter: timeAt set to '2020-07-01T12:05:00Z' 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": "temporal/entities"
}
],
"permutations": [],
"robotpath": "ContextInformation/Consumption/TemporalEntity/QueryTemporalEvolutionOfEntities",
"robotfile": "021_06"
}
\ No newline at end of file
{
"tp_id": "TP/NGSI-LD/CI/Cons/TE/021_07",
"test_objective": "Check that you can query the temporal evolution of entities matching the given id pattern",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.7.4",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_5_7_4",
"keywords": [
"Setup Initial Entities",
"Delete Initial Entities"
],
"teardown": "Delete Initial Entities",
"initial_condition": "with {\n the SUT in the \"initial state\"\n}",
"test_cases": [
{
"name": "021_07_01 Query the temporal evolution of entities matching the given id pattern",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/TE/021_07_01",
"doc": "Check that you can query the temporal evolution of entities matching the given id pattern",
"tags": [
"5_7_4",
"te-query"
],
"setup": null,
"teardown": null,
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Request response body containing a list that contains Entity Temporal Elements\n compared with file 'vehicles-temporal-representation-021-07-expectation.jsonld'\n and using the list of entity ids define in '${temporal_entities_representation_ids}' and\n Response Status Code set to 200\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/temporal/entities'\n method set to 'GET'\n and\n Query Parameter: entity_types set to '${entity_types_to_be_retrieved}' and\n Query Parameter: entity_id_pattern set to 'urn:ngsi-ld:Vehicle:.*' and\n Query Parameter: timerel set to 'after' and\n Query Parameter: timeAt set to '2020-07-01T12:05:00Z' 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": "temporal/entities"
}
],
"permutations": [],
"robotpath": "ContextInformation/Consumption/TemporalEntity/QueryTemporalEvolutionOfEntities",
"robotfile": "021_07"
}
\ No newline at end of file
{
"tp_id": "TP/NGSI-LD/CI/Cons/TE/021_08",
"test_objective": "Check that you can query the temporal evolution of entities matching the given NGSI-LD query",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.7.4",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_5_7_4",
"keywords": [
"Setup Initial Entities",
"Delete Initial Entities"
],
"teardown": "Delete Initial Entities",
"initial_condition": "with {\n the SUT in the \"initial state\"\n}",
"test_cases": [
{
"name": "021_08_01 Query the temporal evolution of entities matching the given NGSI-LD query",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/TE/021_08_01",
"doc": "Check that you can query the temporal evolution of entities matching the given NGSI-LD query",
"tags": [
"5_7_4",
"te-query"
],
"setup": null,
"teardown": null,
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Request response body containing a list that contains Entity Temporal Elements\n compared with file 'vehicles-temporal-representation-021-08-expectation.jsonld'\n and using the list of entity ids define in '${temporal_entities_representation_ids}' and\n Response Status Code set to 200\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/temporal/entities'\n method set to 'GET'\n and\n Query Parameter: entity_types set to '${entity_types_to_be_retrieved}' and\n Query Parameter: ngsild_query set to 'speed>90' and\n Query Parameter: timerel set to 'after' and\n Query Parameter: timeAt set to '2020-07-01T12:05:00Z' 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": "temporal/entities"
}
],
"permutations": [],
"robotpath": "ContextInformation/Consumption/TemporalEntity/QueryTemporalEvolutionOfEntities",
"robotfile": "021_08"
}
\ No newline at end of file
{
"tp_id": "TP/NGSI-LD/CI/Cons/TE/021_10",
"test_objective": "Check that you can query the temporal evolution of entities matching the given NGSI-LD Context Source filter",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.7.4",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_5_7_4",
"keywords": [
"Create Initial Context Source Registration",
"Delete Initial Context Source Registration"
],
"teardown": "Delete Initial Context Source Registration",
"initial_condition": "with {\n the SUT in the \"initial state\"\n}",
"test_cases": [
{
"name": "021_10_01 Query the temporal evolution of entities matching the given NGSI-LD context source filter",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/TE/021_10_01",
"doc": "Check that you can query the temporal evolution of entities matching the given NGSI-LD Context Source filter",
"tags": [
"5_7_4",
"te-query"
],
"setup": null,
"teardown": null,
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 200\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/temporal/entities'\n method set to 'GET'\n and\n Query Parameter: entity_types set to '${entity_types_to_be_retrieved}' and\n Query Parameter: csf set to 'endpoint' and\n Query Parameter: timerel set to 'after' and\n Query Parameter: timeAt set to '2020-07-01T12:05:00Z' 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": "temporal/entities"
}
],
"permutations": [],
"robotpath": "ContextInformation/Consumption/TemporalEntity/QueryTemporalEvolutionOfEntities",
"robotfile": "021_10"
}
\ No newline at end of file
{
"tp_id": "TP/NGSI-LD/CI/Cons/TE/021_12",
"test_objective": "Check that you cannot query the temporal evolution of entities with an invalid request or invalid request content",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.7.4",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_5_7_4",
"keywords": [
"Setup Initial Entities",
"Delete Initial Entities"
],
"teardown": "Delete Initial Entities",
"initial_condition": "with {\n the SUT in the \"initial state\"\n}",
"test_cases": [
{
"name": "021_12_01 Query the temporal evolution of entities with an invalid request",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/TE/021_12_01",
"doc": "Check that you cannot query the temporal evolution of entities with an invalid request",
"tags": [
"5_7_4",
"te-query"
],
"setup": null,
"teardown": null,
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/BadRequestData' and\n Response body containing 'title' element and\n Response Status Code set to 400\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/temporal/entities'\n method set to 'GET'\n and\n Query Parameter: timerel set to 'after' and\n Query Parameter: timeAt set to '2020-07-01T12:05:00Z' 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": "temporal/entities"
}
],
"permutations": [],
"robotpath": "ContextInformation/Consumption/TemporalEntity/QueryTemporalEvolutionOfEntities",
"robotfile": "021_12"
}
\ No newline at end of file
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
"teardown": null, "teardown": null,
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/ResourceNotFound' and\n Response body containing 'title' element and\n Response Status Code set to 404\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/ResourceNotFound' and\n Response body containing 'title' element and\n 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/types/{type}'\n method set to 'GET'\n Retrieve Entity Type, with type set to 'Building'", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/types/{type}'\n method set to 'GET'\n Retrieve Entity Type, with type set to 'Building'\n}",
"http_verb": "GET", "http_verb": "GET",
"endpoint": "types/{type}" "endpoint": "types/{type}"
} }
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
"teardown": null, "teardown": null,
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Body containing an Entity Type Info and\n Response Status Code set to 200\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Body containing an Entity Type Info and\n Response Status Code set to 200\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/types/{type}'\n method set to 'GET'\n Retrieve Entity Type, with type set to 'Building', with Header['Link'] containing 'https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld'", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/types/{type}'\n method set to 'GET'\n Retrieve Entity Type, with type set to 'Building', with Header['Link'] containing '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", "http_verb": "GET",
"endpoint": "types/{type}" "endpoint": "types/{type}"
} }
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
"teardown": null, "teardown": null,
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/ResourceNotFound' and\n Response body containing 'title' element and\n Response Status Code set to 404\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/ResourceNotFound' and\n Response body containing 'title' element and\n 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/attributes/{attribute_name}'\n method set to 'GET'\n Retrieve Attribute with attributeName set to 'airQualityLevel'", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/attributes/{attribute_name}'\n method set to 'GET'\n Retrieve Attribute with attributeName set to 'airQualityLevel'\n}",
"http_verb": "GET", "http_verb": "GET",
"endpoint": "attributes/{attribute_name}" "endpoint": "attributes/{attribute_name}"
} }
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
"teardown": null, "teardown": null,
"template": null, "template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Body containing an array of Attributes and\n Response Status Code set to 200\n}", "then": "then {\n the SUT sends a valid Response containing:\n Response Body containing an array of Attributes and\n Response Status Code set to 200\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/attributes/{attribute_name}'\n method set to 'GET'\n Retrieve Attribute with attributeName set to 'airQualityLevel'", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/attributes/{attribute_name}'\n method set to 'GET'\n Retrieve Attribute with attributeName set to 'airQualityLevel'\n}",
"http_verb": "GET", "http_verb": "GET",
"endpoint": "attributes/{attribute_name}" "endpoint": "attributes/{attribute_name}"
} }
......
{
"tp_id": "TP/NGSI-LD/CI/Prov/E/001_03",
"test_objective": "Check that you cannot create an entity with an existing id",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.6.1",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_5_6_1",
"keywords": [
"Delete Initial Entity"
],
"teardown": "Delete Initial Entity",
"initial_condition": "with {\n the SUT in the \"initial state\"\n}",
"test_cases": [
{
"name": "001_03_01 Create one valid entity and one invalid entity",
"permutation_tp_id": "TP/NGSI-LD/CI/Prov/E/001_03_01",
"doc": "Check that you cannot create an entity with an existing id",
"tags": [
"5_6_1",
"e-create"
],
"setup": null,
"teardown": null,
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/AlreadyExists' and\n Response body containing 'title' element and\n Response Status Code set to 409\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-minimal-sample.jsonld'\n}",
"http_verb": "POST",
"endpoint": "entities/"
}
],
"permutations": [],
"robotpath": "ContextInformation/Provision/Entities/CreateEntity",
"robotfile": "001_03"
}
\ No newline at end of file
{
"tp_id": "TP/NGSI-LD/CI/Prov/E/001_05",
"test_objective": "Check that the default @context is used if the Content-Type header is \"application/json\" and the Link header does not contain a JSON-LD @context",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 6.3.5",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_6_3_5",
"keywords": [
"Delete Initial Entity"
],
"teardown": "Delete Initial Entity",
"initial_condition": "with {\n the SUT in the \"initial state\"\n}",
"test_cases": [
{
"name": "001_05_01 Create one entity using the default context with JSON content type and request without context",
"permutation_tp_id": "TP/NGSI-LD/CI/Prov/E/001_05_01",
"doc": "Check that the default @context is used if the Content-Type header is \"application/json\" and the Link header does not contain a JSON-LD @context",
"tags": [
"6_3_5",
"e-create"
],
"setup": null,
"teardown": null,
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Body contains the attribute: 'almostFull'\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/{id}'\n method set to 'GET'\n Request Retrieve Entity by Id and\n Query Parameter: id set to '${entity_id}'\n}",
"http_verb": "GET",
"endpoint": "entities/{id}"
},
{
"name": "001_05_02 Create one entity using the default context with JSON content type and request with context",
"permutation_tp_id": "TP/NGSI-LD/CI/Prov/E/001_05_02",
"doc": "Check that the default @context is used if the Content-Type header is \"application/json\" and the Link header does not contain a JSON-LD @context",
"tags": [
"6_3_5",
"e-create"
],
"setup": null,
"teardown": null,
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Body contains the attribute: 'ngsi-ld:default-context/almostFull'\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/{id}'\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": "entities/{id}"
}
],
"permutations": [
"then",
"when"
],
"robotpath": "ContextInformation/Provision/Entities/CreateEntity",
"robotfile": "001_05"
}
\ No newline at end of file
{
"tp_id": "TP/NGSI-LD/CI/Prov/E/001_06",
"test_objective": "Check that an HTTP error response of type BadRequestData is raised if the Content-Type header is \"application/json\" and the request payload body (as JSON) contains a \"@context\" term",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 6.3.5",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_6_3_5",
"keywords": [],
"teardown": "None",
"initial_condition": "with {\n the SUT in the \"initial state\"\n}",
"test_cases": [
{
"name": "001_06_01 Create one entity containing a JSON-LD @context with a JSON content type",
"permutation_tp_id": "TP/NGSI-LD/CI/Prov/E/001_06_01",
"doc": "Check that an HTTP error response of type BadRequestData is raised if the Content-Type header is \"application/json\" and the request payload body (as JSON) contains a \"@context\" term",
"tags": [
"6_3_5",
"e-create"
],
"setup": null,
"teardown": null,
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/BadRequestData' and\n Response body containing 'title' element and\n Response Status Code set to 400\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-simple-attributes-sample.jsonld'\n}",
"http_verb": "POST",
"endpoint": "entities/"
}
],
"permutations": [],
"robotpath": "ContextInformation/Provision/Entities/CreateEntity",
"robotfile": "001_06"
}
\ No newline at end of file
{
"tp_id": "TP/NGSI-LD/CI/Prov/E/001_08",
"test_objective": "Check that an HTTP error response of type BadRequestData is raised if the Content-Type header is \"application/ld+json\" and the request payload body does not contain a @context term",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 6.3.5",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_6_3_5",
"keywords": [],
"teardown": "None",
"initial_condition": "with {\n the SUT in the \"initial state\"\n}",
"test_cases": [
{
"name": "001_08_01 Create one entity not containing a JSON-LD @context with a JSON-LD content type",
"permutation_tp_id": "TP/NGSI-LD/CI/Prov/E/001_08_01",
"doc": "Check that an HTTP error response of type BadRequestData is raised if the Content-Type header is \"application/ld+json\" and the request payload body does not contain a @context term",
"tags": [
"6_3_5",
"e-create"
],
"setup": null,
"teardown": null,
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/BadRequestData' and\n Response body containing 'title' element and\n Response Status Code set to 400\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.json'\n}",
"http_verb": "POST",
"endpoint": "entities/"
}
],
"permutations": [],
"robotpath": "ContextInformation/Provision/Entities/CreateEntity",
"robotfile": "001_08"
}
\ No newline at end of file
{
"tp_id": "TP/NGSI-LD/CI/Prov/E/001_09",
"test_objective": "Check that an HTTP error response of type BadRequestData is raised if the Content-Type header is \"application/ld+json\" and a JSON-LD Link header is present in the incoming HTTP request",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 6.3.5",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_6_3_5",
"keywords": [],
"teardown": "None",
"initial_condition": "with {\n the SUT in the \"initial state\"\n}",
"test_cases": [
{
"name": "001_09_01 Create one entity with a Link header and a JSON-LD content type",
"permutation_tp_id": "TP/NGSI-LD/CI/Prov/E/001_09_01",
"doc": "Check that an HTTP error response of type BadRequestData is raised if the Content-Type header is \"application/ld+json\" and a JSON-LD Link header is present in the incoming HTTP request",
"tags": [
"6_3_5",
"e-create"
],
"setup": null,
"teardown": null,
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/BadRequestData' and\n Response body containing 'title' element and\n Response Status Code set to 400\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}",
"http_verb": "POST",
"endpoint": "entities/"
}
],
"permutations": [],
"robotpath": "ContextInformation/Provision/Entities/CreateEntity",
"robotfile": "001_09"
}
\ No newline at end of file
{
"tp_id": "TP/NGSI-LD/CI/Prov/Entities/DeleteEntity/002_03",
"test_objective": "Check that you cannot delete an entity if the entity id is not known to the system",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.6.6",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_5_6_6",
"keywords": [],
"teardown": "None",
"initial_condition": "with {\n the SUT in the \"initial state\"\n}",
"test_cases": [
{
"name": "002_03_01 Delete an entity with an id not known to the system",
"permutation_tp_id": "TP/NGSI-LD/CI/Prov/Entities/DeleteEntity/002_03_01",
"doc": "Check that you cannot delete an entity if the entity id is not known to the system",
"tags": [
"5_6_6",
"e-delete"
],
"setup": null,
"teardown": null,
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/ResourceNotFound' and\n Response body containing 'title' element and\n 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/entities/{id}'\n method set to 'DELETE'\n Delete Entity Request with id set to '${entity_id}'\n}",
"http_verb": "DELETE",
"endpoint": "entities/{id}"
}
],
"permutations": [],
"robotpath": "ContextInformation/Provision/Entities/DeleteEntity",
"robotfile": "002_03"
}
\ No newline at end of file
{
"tp_id": "TP/NGSI-LD/CI/Prov/BatchEntities/CreateBatchOfEntities/003_06",
"test_objective": "Check that an HTTP error response of type BadRequestData is raised if the Content-Type header is \"application/json\" and the request payload body (as JSON) contains a \"@context\" term",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 6.3.5",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_6_3_5",
"keywords": [],
"teardown": "None",
"initial_condition": "with {\n the SUT in the \"initial state\"\n}",
"test_cases": [
{
"name": "003_06_01 Create a batch of one entity containing a JSON-LD @context with a JSON content type",
"permutation_tp_id": "TP/NGSI-LD/CI/Prov/BatchEntities/CreateBatchOfEntities/003_06_01",
"doc": "Check that an HTTP error response of type BadRequestData is raised if the Content-Type header is \"application/json\" and the request payload body (as JSON) contains a \"@context\" term",
"tags": [
"6_3_5",
"be-create"
],
"setup": null,
"teardown": null,
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/BadRequestData' and\n Response body containing 'title' element and\n Response Status Code set to 400\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entityOperations/create'\n method set to 'POST'\n Request Header['Content-Type'] set to 'application/json' and\n payload set to a list of entities to be created\n}",
"http_verb": "POST",
"endpoint": "entityOperations/create"
}
],
"permutations": [],
"robotpath": "ContextInformation/Provision/BatchEntities/CreateBatchOfEntities",
"robotfile": "003_06"
}
\ No newline at end of file
{
"tp_id": "TP/NGSI-LD/CI/Prov/BatchEntities/CreateBatchOfEntities/003_08",
"test_objective": "Check that an HTTP error response of type BadRequestData is raised if the Content-Type header is \"application/ld+json\" and the request payload body does not contain a @context term",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 6.3.5",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_6_3_5",
"keywords": [],
"teardown": "None",
"initial_condition": "with {\n the SUT in the \"initial state\"\n}",
"test_cases": [
{
"name": "003_08_01 Create a batch of one entity not containing a JSON-LD @context with a JSON-LD content type",
"permutation_tp_id": "TP/NGSI-LD/CI/Prov/BatchEntities/CreateBatchOfEntities/003_08_01",
"doc": "Check that an HTTP error response of type BadRequestData is raised if the Content-Type header is \"application/ld+json\" and the request payload body does not contain a @context term",
"tags": [
"6_3_5",
"be-create"
],
"setup": null,
"teardown": null,
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/BadRequestData' and\n Response body containing 'title' element and\n Response Status Code set to 400\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entityOperations/create'\n method set to 'POST'\n Request Header['Content-Type'] set to 'application/ld+json' and\n payload set to a list of entities to be created\n}",
"http_verb": "POST",
"endpoint": "entityOperations/create"
}
],
"permutations": [],
"robotpath": "ContextInformation/Provision/BatchEntities/CreateBatchOfEntities",
"robotfile": "003_08"
}
\ No newline at end of file
{
"tp_id": "TP/NGSI-LD/CI/Prov/BatchEntities/CreateBatchOfEntities/003_09",
"test_objective": "Check that an HTTP error response of type BadRequestData is raised if the Content-Type header is \"application/ld+json\" and a JSON-LD Link header is present in the incoming HTTP request",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 6.3.5",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_6_3_5",
"keywords": [],
"teardown": "None",
"initial_condition": "with {\n the SUT in the \"initial state\"\n}",
"test_cases": [
{
"name": "003_09_01 Create a batch of one entity with a Link header and a JSON-LD content type",
"permutation_tp_id": "TP/NGSI-LD/CI/Prov/BatchEntities/CreateBatchOfEntities/003_09_01",
"doc": "Check that an HTTP error response of type BadRequestData is raised if the Content-Type header is \"application/ld+json\" and a JSON-LD Link header is present in the incoming HTTP request",
"tags": [
"6_3_5",
"be-create"
],
"setup": null,
"teardown": null,
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/BadRequestData' and\n Response body containing 'title' element and\n Response Status Code set to 400\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entityOperations/create'\n method set to 'POST'\n Request Header['Content-Type'] set to 'application/ld+json' and\n payload set to a list of entities to be created\n}",
"http_verb": "POST",
"endpoint": "entityOperations/create"
}
],
"permutations": [],
"robotpath": "ContextInformation/Provision/BatchEntities/CreateBatchOfEntities",
"robotfile": "003_09"
}
\ No newline at end of file