Skip to content
......@@ -69,7 +69,7 @@
"teardown": "Batch Delete Entities",
"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/LdContextNotAvailable' and\n Response body containing 'title' element and\n Response Status Code set to 503\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 'content_type=${CONTENT_TYPE_LD_JSON}' and\n payload set to a list of entities to be created",
"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",
"http_verb": "POST",
"endpoint": "entityOperations/create"
},
......@@ -91,8 +91,10 @@
}
],
"permutations": [
"when",
"endpoint",
"when",
"then"
]
],
"robotpath": "CommonBehaviours",
"robotfile": "043"
}
\ No newline at end of file
{
"tp_id": "TP/NGSI-LD/CB/044_01",
"test_objective": "Verify that PATCH HTTP requests can be done with \"application/merge-patch+json\" as Content-Type",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 6.3.4",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_6_3_4",
"keywords": [],
"teardown": "None",
"initial_condition": "with {\n the SUT in the \"initial state\"\n}",
"test_cases": [
{
"name": "044_01_01 endpoint /entities/{entityId}/attrs/{attrId}",
"permutation_tp_id": "TP/NGSI-LD/CB/044_01_01",
"doc": "Verify that PATCH HTTP requests can be done with \"application/merge-patch+json\" as Content-Type",
"tags": [
"6_3_4",
"ea-partial-update"
],
"setup": null,
"teardown": "Delete Entity by Id",
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 204\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/{entityId}/attrs/{attributeId}'\n method set to 'PATCH'\n Request Partial Update Entity Attributes and \nHeader['Link'] contain the context 'https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld' and \nHeader['Content-Type'] set to 'application/merge-patch+json' and\nPayload defined in file 'vehicle-brandname-fragment.json'",
"http_verb": "PATCH",
"endpoint": "entities/{entityId}/attrs/{attributeId}"
},
{
"name": "044_01_02 endpoint /subscriptions/{subscriptionId}",
"permutation_tp_id": "TP/NGSI-LD/CB/044_01_02",
"doc": "Verify that PATCH HTTP requests can be done with \"application/merge-patch+json\" as Content-Type",
"tags": [
"6_3_4",
"sub-update"
],
"setup": null,
"teardown": "Delete Subscription",
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 204\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/subscriptions/{subscription_id}'\n method set to 'PATCH'\n Request Update Subscription and \nHeader['Link'] contain the context 'https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld' and\nHeader['Content-Type'] set to 'application/merge-patch+json' and\nPayload defined in file 'subscriptions/fragments/subscription-update-sample.json'",
"http_verb": "PATCH",
"endpoint": "subscriptions/{subscription_id}"
}
],
"permutations": [
"when",
"endpoint"
],
"robotpath": "CommonBehaviours",
"robotfile": "044_01"
}
\ No newline at end of file
{
"tp_id": "TP/NGSI-LD/CB/044_02",
"test_objective": "Verify that on a GET HTTP request if nothing is specified on the Accept header, \"application/json\" is assumed",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 6.3.4",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_6_3_4",
"keywords": [],
"teardown": "None",
"initial_condition": "with {\n the SUT in the \"initial state\"\n}",
"test_cases": [
{
"name": "044_02_01 endpoint /entities/{entityId}",
"permutation_tp_id": "TP/NGSI-LD/CB/044_02_01",
"doc": "Verify that on a GET HTTP request if nothing is specified on the Accept header, \"application/json\" is assumed (/entities/{entityId})",
"tags": [
"6_3_4",
"e-query"
],
"setup": null,
"teardown": "Delete Entity by Id Returning Response",
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Header: Content-Type set to application/json and\n Response Header: Link is not Empty 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/entities/{id}'\n method set to 'GET'\n Request Header['Link'] contain the context https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld\nHeader['Accept'] set to */*",
"http_verb": "GET",
"endpoint": "entities/{id}"
},
{
"name": "044_02_02 endpoint /subscriptions/{subscriptionId}",
"permutation_tp_id": "TP/NGSI-LD/CB/044_02_02",
"doc": "Verify that on a GET HTTP request if nothing is specified on the Accept header, \"application/json\" is assumed (/subscriptions/{subscriptionId})",
"tags": [
"6_3_4",
"sub-retrieve"
],
"setup": null,
"teardown": "Delete Subscription",
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Header: Content-Type set to application/json and\n Response Header: Link is not Empty 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/subscriptions/{id}'\n method set to 'GET'\n Request a subscription\nHeader['Accept'] set to '*/*'",
"http_verb": "GET",
"endpoint": "subscriptions/{id}"
},
{
"name": "044_02_03 endpoint /csourceRegistrations/",
"permutation_tp_id": "TP/NGSI-LD/CB/044_02_03",
"doc": "Verify that on a GET HTTP request if nothing is specified on the Accept header, \"application/json\" is assumed (/csourceRegistrations/)",
"tags": [
"6_3_4",
"csr-query"
],
"setup": null,
"teardown": "Delete Context Source Registration",
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Header: Content-Type set to application/json and\n Response Header: Link is not Empty 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/csourceRegistrations'\n method set to 'GET'\n Request a Context Source Registration with Return\nEntity Type set to 'Vehicle'\nHeader['Accept'] set to '*/*'",
"http_verb": "GET",
"endpoint": "csourceRegistrations"
},
{
"name": "044_02_04 endpoint /temporal/entities",
"permutation_tp_id": "TP/NGSI-LD/CB/044_02_04",
"doc": "Verify that on a GET HTTP request if nothing is specified on the Accept header, \"application/json\" is assumed (/temporal/entities)",
"tags": [
"6_3_4",
"te-query"
],
"setup": null,
"teardown": "Delete Temporal Representation Of Entity",
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Header: Content-Type set to application/json and\n Response Header: Link is not Empty 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 Request a Temporal Representation of Entities with Return",
"http_verb": "GET",
"endpoint": "temporal/entities"
}
],
"permutations": [
"endpoint",
"when"
],
"robotpath": "CommonBehaviours",
"robotfile": "044_02"
}
\ No newline at end of file
{
"tp_id": "TP/NGSI-LD/CB/044_03",
"test_objective": "Verify throwing 415 HTTP status code (Unsupported Media Type) if \"Content-Type\" header is not \"application/json\" or \"application/ld+json\"",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 6.3.4",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_6_3_4",
"keywords": [],
"teardown": "None",
"initial_condition": "with {\n the SUT in the \"initial state\"\n}",
"test_cases": [
{
"name": "044_03_01 endpoint patch /entities/{entityId}/attrs/{attrId}",
"permutation_tp_id": "TP/NGSI-LD/CB/044_03_01",
"doc": "Verify throwing 415 HTTP status code (Unsupported Media Type) if \"Content-Type\" header is not \"application/json\" or \"application/ld+json\" (patch /entities/{entityId}/attrs/{attrId})",
"tags": [
"6_3_4",
"ea-partial-update"
],
"setup": null,
"teardown": "Delete Entity by Id Returning Response",
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 415\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/{entityId}/attrs/{attributeId}'\n method set to 'PATCH'\n Request Partial Update Entity Attributes and \nHeader['Content-Type'] set to 'application/xml' and\nPayload defined in file 'vehicle-brandname-fragment.jsonld'",
"http_verb": "PATCH",
"endpoint": "entities/{entityId}/attrs/{attributeId}"
},
{
"name": "044_03_02 endpoint patch /subscriptions/{subscriptionId}",
"permutation_tp_id": "TP/NGSI-LD/CB/044_03_02",
"doc": "Verify throwing 415 HTTP status code (Unsupported Media Type) if \"Content-Type\" header is not \"application/json\" or \"application/ld+json\" (patch /subscriptions/{subscriptionId})",
"tags": [
"6_3_4",
"sub-update"
],
"setup": null,
"teardown": "Delete Subscription",
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 415\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/subscriptions/{subscription_id}'\n method set to 'PATCH'\n Request Update Subscription and \nHeader['Content-Type'] set to 'application/xml' and\nPayload defined in file 'csourceSubscriptions/fragments/subscription-update-sample.jsonld'",
"http_verb": "PATCH",
"endpoint": "subscriptions/{subscription_id}"
},
{
"name": "044_03_03 endpoint post /entities/",
"permutation_tp_id": "TP/NGSI-LD/CB/044_03_03",
"doc": "Verify throwing 415 HTTP status code (Unsupported Media Type) if \"Content-Type\" header is not \"application/json\" or \"application/ld+json\" (post /entities/)",
"tags": [
"6_3_4",
"e-create"
],
"setup": null,
"teardown": "Delete Entity by Id",
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 415\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/xml' and\n payload defined in file: 'building-simple-attributes-sample.jsonld'",
"http_verb": "POST",
"endpoint": "entities/"
},
{
"name": "044_03_04 endpoint post /subscriptions/",
"permutation_tp_id": "TP/NGSI-LD/CB/044_03_04",
"doc": "Verify throwing 415 HTTP status code (Unsupported Media Type) if \"Content-Type\" header is not \"application/json\" or \"application/ld+json\" (post /subscriptions/)",
"tags": [
"6_3_4",
"sub-create"
],
"setup": null,
"teardown": "Delete Subscription",
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 415\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/subscriptions/'\n method set to 'POST'\n Request Header['Content-Type'] set to 'application/xml' and\n payload defined in file: 'csourceSubscriptions/subscription-sample.jsonld'",
"http_verb": "POST",
"endpoint": "subscriptions/"
},
{
"name": "044_03_05 endpoint post /entityOperations/create",
"permutation_tp_id": "TP/NGSI-LD/CB/044_03_05",
"doc": "Verify throwing 415 HTTP status code (Unsupported Media Type) if \"Content-Type\" header is not \"application/json\" or \"application/ld+json\" (post /entityOperations/create)",
"tags": [
"6_3_4",
"be-create"
],
"setup": null,
"teardown": "Batch Delete Entities",
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 415\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/xml' and\n payload set to a list of entities to be created",
"http_verb": "POST",
"endpoint": "entityOperations/create"
},
{
"name": "044_03_06 endpoint post /temporal/entities/",
"permutation_tp_id": "TP/NGSI-LD/CB/044_03_06",
"doc": "Verify throwing 415 HTTP status code (Unsupported Media Type) if \"Content-Type\" header is not \"application/json\" or \"application/ld+json\" (post /temporal/entities/)",
"tags": [
"6_3_4",
"te-create"
],
"setup": null,
"teardown": "Delete Temporal Representation Of Entity",
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 415\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 'POST'\n Request Header['Content-Type'] set to 'application/xml' and\n payload defined in file: 'vehicle-temporal-representation-sample.jsonld'",
"http_verb": "POST",
"endpoint": "temporal/entities"
}
],
"permutations": [
"endpoint",
"http_verb",
"when"
],
"robotpath": "CommonBehaviours",
"robotfile": "044_03"
}
\ No newline at end of file
{
"tp_id": "TP/NGSI-LD/CB/044_04",
"test_objective": "Verify throwing 406 HTTP status code (Not Acceptable Media Type) if the \"Accept\" header does not imply \"application/json\" nor \"application/ld+json\"",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 6.3.4",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_6_3_4",
"keywords": [],
"teardown": "None",
"initial_condition": "with {\n the SUT in the \"initial state\"\n}",
"test_cases": [
{
"name": "044_04_01 endpoint get /entities/{entityId}",
"permutation_tp_id": "TP/NGSI-LD/CB/044_04_01",
"doc": "Verify throwing 406 HTTP status code (Not Acceptable Media Type) if the \"Accept\" header does not imply \"application/json\" nor \"application/ld+json\" (get /entities/{entityId})",
"tags": [
"6_3_4",
"e-query"
],
"setup": null,
"teardown": "Delete Entity by Id Returning Response",
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 406\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 \nHeader['Accept'] set to application/xml",
"http_verb": "GET",
"endpoint": "entities/{id}"
},
{
"name": "044_04_02 endpoint get /subscriptions/{subscriptionId}",
"permutation_tp_id": "TP/NGSI-LD/CB/044_04_02",
"doc": "Verify throwing 406 HTTP status code (Not Acceptable Media Type) if the \"Accept\" header does not imply \"application/json\" nor \"application/ld+json\" (get /subscriptions/{subscriptionId})",
"tags": [
"6_3_4",
"sub-retrieve"
],
"setup": null,
"teardown": "Delete Subscription",
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 406\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/subscriptions/{id}'\n method set to 'GET'\n Request a subscription\nHeader['Accept'] set to 'application/xml'",
"http_verb": "GET",
"endpoint": "subscriptions/{id}"
},
{
"name": "044_04_03 endpoint get /csourceRegistrations/",
"permutation_tp_id": "TP/NGSI-LD/CB/044_04_03",
"doc": "Verify throwing 406 HTTP status code (Not Acceptable Media Type) if the \"Accept\" header does not imply \"application/json\" nor \"application/ld+json\" (get /csourceRegistrations/)",
"tags": [
"6_3_4",
"csr-query"
],
"setup": null,
"teardown": null,
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 406\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/csourceRegistrations'\n method set to 'GET'\n Request a Context Source Registration with Return\nEntity Type set to 'Building'\nHeader['Accept'] set to 'application/xml'",
"http_verb": "GET",
"endpoint": "csourceRegistrations"
},
{
"name": "044_04_04 endpoint get /csourceSubscriptions/",
"permutation_tp_id": "TP/NGSI-LD/CB/044_04_04",
"doc": "Verify throwing 406 HTTP status code (Not Acceptable Media Type) if the \"Accept\" header does not imply \"application/json\" nor \"application/ld+json\" (get /csourceSubscriptions/)",
"tags": [
"csrsub-query"
],
"setup": null,
"teardown": null,
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 406\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/csourceSubscriptions'\n method set to 'GET'\n Request Context Source Registration Subscriptions\nHeader['Accept'] set to 'application/xml'",
"http_verb": "GET",
"endpoint": "csourceSubscriptions"
},
{
"name": "044_04_05 endpoint get /temporal/entities",
"permutation_tp_id": "TP/NGSI-LD/CB/044_04_05",
"doc": "Verify throwing 406 HTTP status code (Not Acceptable Media Type) if the \"Accept\" header does not imply \"application/json\" nor \"application/ld+json\" (get /temporal/entities)",
"tags": [
"6_3_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 406\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 Response containing:\n * Entity-Type is equal to '${entity_types_to_be_retrieved}'\n * timeRel is equal to 'after'\n * timeAt is equal to '2020-08-01T12:05:00Z'\n * Accept is equal to 'application/xml'",
"http_verb": "GET",
"endpoint": "temporal/entities"
}
],
"permutations": [
"when",
"endpoint"
],
"robotpath": "CommonBehaviours",
"robotfile": "044_04"
}
\ No newline at end of file
{
"tp_id": "TP/NGSI-LD/CB/044_05",
"test_objective": "Verify throwing 406 HTTP status code (Not Acceptable Media Type) if the \"Accept\" header is \"application/geo+json\" for operations different than \"Retrieve Entity\" and \"Query Entity\"",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 6.3.4",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_6_3_4",
"keywords": [],
"teardown": "None",
"initial_condition": "with {\n the SUT in the \"initial state\"\n}",
"test_cases": [
{
"name": "044_05_01 Retrieve subscription by id",
"permutation_tp_id": "TP/NGSI-LD/CB/044_05_01",
"doc": "Verify throwing 406 HTTP status code (Not Acceptable Media Type) if the \"Accept\" header does not imply \"application/json\" nor \"application/ld+json\" (get /subscriptions/{subscriptionId})",
"tags": [
"6_3_4",
"sub-retrieve"
],
"setup": null,
"teardown": "Delete Subscription",
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 406\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/subscriptions/{id}'\n method set to 'GET'\n Request a subscription\nHeader['Accept'] set to 'application/geo+json'",
"http_verb": "GET",
"endpoint": "subscriptions/{id}"
},
{
"name": "044_05_02 Query temporal entities",
"permutation_tp_id": "TP/NGSI-LD/CB/044_05_02",
"doc": "Verify throwing 406 HTTP status code (Not Acceptable Media Type) if the \"Accept\" header does not imply \"application/json\" nor \"application/ld+json\" (get /temporal/entities)",
"tags": [
"6_3_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 406\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 Response containing:\n * Entity-Type is equal to '${entity_types_to_be_retrieved}'\n * timeRel is equal to 'after'\n * timeAt is equal to '2020-08-01T12:05:00Z'\n * Accept is equal to 'application/geo+json'",
"http_verb": "GET",
"endpoint": "temporal/entities"
},
{
"name": "044_05_03 Query context source registration",
"permutation_tp_id": "TP/NGSI-LD/CB/044_05_03",
"doc": "Verify throwing 406 HTTP status code (Not Acceptable Media Type) if the \"Accept\" header does not imply \"application/json\" nor \"application/ld+json\" (get /csourceRegistrations)",
"tags": [
"6_3_4",
"csr-query"
],
"setup": null,
"teardown": null,
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 406\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/csourceRegistrations'\n method set to 'GET'\n Request a Context Source Registration with Return\nEntity Type set to 'Building'\nHeader['Accept'] set to 'application/geo+json'",
"http_verb": "GET",
"endpoint": "csourceRegistrations"
}
],
"permutations": [
"endpoint",
"when"
],
"robotpath": "CommonBehaviours",
"robotfile": "044_05"
}
\ No newline at end of file
{
"tp_id": "TP/NGSI-LD/CI/Cons/E/019_01_01",
"test_objective": "Check that you can query several entities based on ids",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.7.2",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_5_7_2",
"keywords": [
"Delete Entities"
],
"teardown": "Delete Entities",
"initial_condition": "with {\n the SUT in the \"initial state\"\n}",
"test_cases": [
{
"name": "019_01_01 Query several entities based on ids",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/E/019_01_01",
"doc": "Check that you can query several entities based on ids",
"tags": [
"5_7_2",
"e-query"
],
"setup": null,
"teardown": null,
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Body containing a list containing Entity Elements, containing ${value} provided 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/entities/'\n method set to 'GET'\n Request Query Entities with entity_ids set to '${entities_ids_to_be_retrieved}' with entity_types set to '${entity_types_to_be_retrieved}",
"http_verb": "GET",
"endpoint": "entities/"
}
],
"permutations": [],
"robotpath": "ContextInformation/Consumption/Entity/QueryEntities",
"robotfile": "019_01_01"
}
\ No newline at end of file
{
"tp_id": "TP/NGSI-LD/CI/Cons/E/019_01_03",
"test_objective": "Check that you can query several entities based on the given id pattern",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.7.2",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_5_7_2",
"keywords": [
"Delete Entities"
],
"teardown": "Delete Entities",
"initial_condition": "with {\n the SUT in the \"initial state\"\n}",
"test_cases": [
{
"name": "019_01_03 Query several entities based on the given id pattern",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/E/019_01_03",
"doc": "Check that you can query several entities based on the given id pattern",
"tags": [
"5_7_2",
"e-query"
],
"setup": null,
"teardown": null,
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Body containing a list containing Entity Elements, containing ${value} provided 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/entities/'\n method set to 'GET'\n Request Query Entities with entity_ids set to 'entity_id_pattern=${entity_id_pattern}' with entity_types set to '${entity_types_to_be_retrieved}",
"http_verb": "GET",
"endpoint": "entities/"
}
],
"permutations": [],
"robotpath": "ContextInformation/Consumption/Entity/QueryEntities",
"robotfile": "019_01_03"
}
\ No newline at end of file
{
"tp_id": "TP/NGSI-LD/CI/Cons/E/019_01_04",
"test_objective": "Check that you can query several entities based on attribute names",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.7.2",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_5_7_2",
"keywords": [
"Delete Entities"
],
"teardown": "Delete Entities",
"initial_condition": "with {\n the SUT in the \"initial state\"\n}",
"test_cases": [
{
"name": "019_01_04 Query several entities based on attribute names",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/E/019_01_04",
"doc": "Check that you can query several entities based on attribute names",
"tags": [
"5_7_2",
"e-query"
],
"setup": null,
"teardown": null,
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Body containing a list containing Entity Elements, containing ${value} provided and\n Response Body containing a list containing Entity Elements, containing ${value} provided 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/entities/'\n method set to 'GET'\n Request Query Entities with entity_ids set to 'attrs=${attributes_to_be_retrieved}'",
"http_verb": "GET",
"endpoint": "entities/"
}
],
"permutations": [],
"robotpath": "ContextInformation/Consumption/Entity/QueryEntities",
"robotfile": "019_01_04"
}
\ No newline at end of file
{
"tp_id": "TP/NGSI-LD/CI/Cons/E/019_02_01",
"test_objective": "Check that you can query several entities via POST Interaction based on ids",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.7.2",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_5_7_2",
"keywords": [
"Delete Entities"
],
"teardown": "Delete Entities",
"initial_condition": "with {\n the SUT in the \"initial state\"\n}",
"test_cases": [
{
"name": "019_02_01 Query several entities via POST Interaction based on ids",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/E/019_02_01",
"doc": "Check that you can query several entities via POST Interaction based on ids",
"tags": [
"5_7_2",
"e-query"
],
"setup": null,
"teardown": null,
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Body containing a list containing Entity Elements, containing ${value} provided 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/entities/'\n method set to 'GET'\n Request Query Entities with entity_ids set to '${entities_ids_to_be_retrieved}' with entity_types set to '${entity_types_to_be_retrieved}",
"http_verb": "GET",
"endpoint": "entities/"
}
],
"permutations": [],
"robotpath": "ContextInformation/Consumption/Entity/QueryEntities",
"robotfile": "019_02_01"
}
\ No newline at end of file
{
"tp_id": "TP/NGSI-LD/CI/Cons/E/019_02_03",
"test_objective": "Check that you can query several entities via POST Interaction based on the given id pattern",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.7.2",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_5_7_2",
"keywords": [
"Delete Entities"
],
"teardown": "Delete Entities",
"initial_condition": "with {\n the SUT in the \"initial state\"\n}",
"test_cases": [
{
"name": "019_02_03 Query several entities via POST Interaction based on the given id pattern",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/E/019_02_03",
"doc": "Check that you can query several entities via POST Interaction based on the given id pattern",
"tags": [
"5_7_2",
"e-query"
],
"setup": null,
"teardown": null,
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Body containing a list containing Entity Elements, containing ${value} provided 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/entities/'\n method set to 'GET'\n Request Query Entities with entity_ids set to 'entity_id_pattern=${entity_id_pattern}' with entity_types set to '${entity_types_to_be_retrieved}",
"http_verb": "GET",
"endpoint": "entities/"
}
],
"permutations": [],
"robotpath": "ContextInformation/Consumption/Entity/QueryEntities",
"robotfile": "019_02_03"
}
\ No newline at end of file
{
"tp_id": "TP/NGSI-LD/CI/Cons/E/019_03_01",
"test_objective": "Check that you cannot query entities if the requested ids are incorrect",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.7.2",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_5_7_2",
"keywords": [
"Delete Entities"
],
"teardown": "Delete Entities",
"initial_condition": "with {\n the SUT in the \"initial state\"\n}",
"test_cases": [
{
"name": "019_03_01 Query entities based on incorrect ids",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/E/019_03_01",
"doc": "Check that you cannot query entities if the requested ids are incorrect",
"tags": [
"5_7_2",
"e-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/entities/'\n method set to 'GET'\n Request Query Entities with entity_ids set to '${entities_ids_to_be_retrieved}' with entity_types set to '${entity_types_to_be_retrieved}",
"http_verb": "GET",
"endpoint": "entities/"
}
],
"permutations": [],
"robotpath": "ContextInformation/Consumption/Entity/QueryEntities",
"robotfile": "019_03_01"
}
\ No newline at end of file
{
"tp_id": "TP/NGSI-LD/CI/Cons/E/019_03_02",
"test_objective": "Check that you cannot query entities if the requested entity types are incorrect",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.7.2",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_5_7_2",
"keywords": [
"Delete Entities"
],
"teardown": "Delete Entities",
"initial_condition": "with {\n the SUT in the \"initial state\"\n}",
"test_cases": [
{
"name": "019_03_02 Query entities based on incorrect entity types",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/E/019_03_02",
"doc": "Check that you cannot query entities if the requested entity types are incorrect",
"tags": [
"5_7_2",
"e-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/entities/'\n method set to 'GET'\n Request Query Entities with entity_ids set to 'entity_types=${entity_types_to_be_retrieved}' with entity_types set to '${entity_types_to_be_retrieved}",
"http_verb": "GET",
"endpoint": "entities/"
}
],
"permutations": [],
"robotpath": "ContextInformation/Consumption/Entity/QueryEntities",
"robotfile": "019_03_02"
}
\ No newline at end of file
{
"tp_id": "TP/NGSI-LD/CI/Cons/E/019_03_03",
"test_objective": "Check that you cannot query entities if the requested id pattern is incorrect",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.7.2",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_5_7_2",
"keywords": [
"Delete Entities"
],
"teardown": "Delete Entities",
"initial_condition": "with {\n the SUT in the \"initial state\"\n}",
"test_cases": [
{
"name": "019_03_03 Query several entities based on incorrect id pattern",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/E/019_03_03",
"doc": "Check that you cannot query entities if the requested id pattern is incorrect",
"tags": [
"5_7_2",
"e-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/entities/'\n method set to 'GET'\n Request Query Entities with entity_ids set to 'entity_id_pattern=${invalid_entity_id_pattern}' with entity_types set to '${entity_types_to_be_retrieved}",
"http_verb": "GET",
"endpoint": "entities/"
}
],
"permutations": [],
"robotpath": "ContextInformation/Consumption/Entity/QueryEntities",
"robotfile": "019_03_03"
}
\ No newline at end of file
{
"tp_id": "TP/NGSI-LD/CI/Cons/E/019_04",
"test_objective": "Check that the queried entities by Id can be returned in a simplified representation",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 6.3.7",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_6_3_7",
"keywords": [
"Delete Entities"
],
"teardown": "Delete Entities",
"initial_condition": "with {\n the SUT in the \"initial state\"\n}",
"test_cases": [
{
"name": "019_04_01 Query entities in a simplified representation",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/E/019_04_01",
"doc": "Check that the queried entities by Id can be returned in a simplified representation",
"tags": [
"6_3_7",
"e-query"
],
"setup": null,
"teardown": null,
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Body containing a list containing Entity Elements, containing ${value} provided 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/entities/'\n method set to 'GET'\n Request Query Entities with entity_ids set to '${entities_ids_to_be_retrieved}' with entity_types set to '${entity_types_to_be_retrieved}",
"http_verb": "GET",
"endpoint": "entities/"
}
],
"permutations": [],
"robotpath": "ContextInformation/Consumption/Entity/QueryEntities",
"robotfile": "019_04"
}
\ No newline at end of file
{
"tp_id": "TP/NGSI-LD/CI/Cons/E/019_05",
"test_objective": "Check that the queried entities by id can be returned in a geoJSON format",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 6.3.7",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_6_3_7",
"keywords": [
"Delete Entities"
],
"teardown": "Delete Entities",
"initial_condition": "with {\n the SUT in the \"initial state\"\n}",
"test_cases": [
{
"name": "019_05_01 Get an entity by id that can be returned in a geoJSON format",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/E/019_05_01",
"doc": "Check that the queried entities by id can be returned in a geoJSON format",
"tags": [
"6_3_7",
"e-query"
],
"setup": null,
"teardown": null,
"template": null,
"then": "then {\n the SUT sends a valid Response containing:\n Response Body containing a list containing Entity Elements, containing ${value} provided 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/entities/'\n method set to 'GET'\n Request Query Entities with entity_ids set to '${entities_ids_to_be_retrieved}' with entity_types set to '${entity_types_to_be_retrieved}",
"http_verb": "GET",
"endpoint": "entities/"
}
],
"permutations": [],
"robotpath": "ContextInformation/Consumption/Entity/QueryEntities",
"robotfile": "019_05"
}
\ No newline at end of file
{
"tp_id": "TP/NGSI-LD/CI/Cons/TE/021_02",
"test_objective": "Check that you can query the temporal evolution of certain attributes of entities",
"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_02_01 Query the temporal evolution of certain attributes of entities",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/TE/021_02_01",
"doc": "Check that you can query the temporal evolution of certain attributes of entities",
"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-02-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 Response containing:\n * Entity-Type is equal to '${entity_types_to_be_retrieved}'\n * timeRel is equal to 'after'\n * timeAt is equal to '2020-07-01T12:05:00Z'\n * Accept is equal to 'attrs=${temporal_attributes_to_be_retrieved}'",
"http_verb": "GET",
"endpoint": "temporal/entities"
}
],
"permutations": [],
"robotpath": "ContextInformation/Consumption/TemporalEntity/QueryTemporalEvolutionOfEntities",
"robotfile": "021_02"
}
\ No newline at end of file
{
"tp_id": "TP/NGSI-LD/CI/Cons/DISC/024_01",
"test_objective": "Check that you cannot retrieve a detailed representation of an unknown NGSI-LD entity type",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.7.7",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_5_7_7",
"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": "024_01_01 Retrieve Detailed Representation Of Available Entity Type Without Context",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/DISC/024_01_01",
"doc": "Check that you cannot retrieve a detailed representation of an unknown NGSI-LD entity type",
"tags": [
"5_7_7",
"ed-type"
],
"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/types/{type}'\n method set to 'GET'\n Retrieve Entity Type, with type set to 'Building'",
"http_verb": "GET",
"endpoint": "types/{type}"
}
],
"permutations": [],
"robotpath": "ContextInformation/Consumption/Discovery/RetrieveAvailableEntityTypeInformation",
"robotfile": "024_01"
}
\ No newline at end of file
{
"tp_id": "TP/NGSI-LD/CI/Cons/DISC/024_02",
"test_objective": "Check that you can retrieve a detailed representation of a specified NGSI-LD entity type",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.7.7",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_5_7_7",
"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": "024_02_01 Retrieve Detailed Representation Of Available Entity Type",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/DISC/024_02_01",
"doc": "Check that you can retrieve a detailed representation of a specified NGSI-LD entity type",
"tags": [
"5_7_7",
"ed-type"
],
"setup": null,
"teardown": 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}",
"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'",
"http_verb": "GET",
"endpoint": "types/{type}"
}
],
"permutations": [],
"robotpath": "ContextInformation/Consumption/Discovery/RetrieveAvailableEntityTypeInformation",
"robotfile": "024_02"
}
\ No newline at end of file
{
"tp_id": "TP/NGSI-LD/CI/Cons/DISC/027_01",
"test_objective": "Check that you cannot retrieve a detailed representation of an unknown NGSI-LD attribute",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.7.10",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_5_7_10",
"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": "027_01_01 Retrieve Detailed Representation Of Available Attribute Without Context",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/DISC/027_01_01",
"doc": "Check that you cannot retrieve a detailed representation of an unknown NGSI-LD attribute",
"tags": [
"5_7_10",
"ed-attr"
],
"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/attributes/{attribute_name}'\n method set to 'GET'\n Retrieve Attribute with attributeName set to 'airQualityLevel'",
"http_verb": "GET",
"endpoint": "attributes/{attribute_name}"
}
],
"permutations": [],
"robotpath": "ContextInformation/Consumption/Discovery/RetrieveAvailableAttributeInformation",
"robotfile": "027_01"
}
\ No newline at end of file