Newer
Older
{
"tp_id": "TP/NGSI-LD/CB/HTTP/045_01",
"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",
"clauses": [
"6.3.4"
],
"pics_selection": "",
lopezaguilar
committed
"initial_condition": "with {\n the SUT containing an initial state\n}",
"test_cases": [
{
"name": "045_01_01 Endpoint /entities/{entityId}",
"permutation_tp_id": "TP/NGSI-LD/CB/HTTP/045_01_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",
"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 Status Code set to 200 and\n Create Entity Selecting Content Type with Response Header: Content-Type set to application/json and\n Notification with Response Header: Link is not Empty\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 Get Entity Request: and\n Query Parameter: id set to '${id}' and\n Query Parameter: Link set to '<$https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld>; rel=\"http://www.w3.org/ns/json-ld#context\";type=\"application/ld+json\"' and\n Query Parameter: accept set to '*/*'\n}",
"http_verb": "GET",
"endpoint": "entities/{id}"
},
{
"name": "045_01_02 Endpoint /subscriptions/{subscriptionId}",
"permutation_tp_id": "TP/NGSI-LD/CB/HTTP/045_01_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 for the operations:\n Create Subscription with Response Status Code set to 201 and\n Create Subscription with Response Status Code set to 200 and\n Create Subscription with Response Header: Content-Type set to application/json and\n Notification with Response Header: Link is not Empty\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 Subscription Retrieve with the following data: and\n Query Parameter: id set to '${id}' and\n Query Parameter: accept set to '*/*'\n}",
"http_verb": "GET",
"endpoint": "subscriptions/{id}"
},
{
"name": "045_01_03 Endpoint /csourceRegistrations/",
"permutation_tp_id": "TP/NGSI-LD/CB/HTTP/045_01_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 for the operations:\n Create Context Source Registration With Return with Response Status Code set to 201 and\n Create Context Source Registration With Return with Response Status Code set to 200 and\n Create Context Source Registration With Return with Response Header: Content-Type set to application/json and\n Notification with Response Header: Link is not Empty\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 '*/*'\n}",
"http_verb": "GET",
"endpoint": "csourceRegistrations"
},
{
"name": "045_01_04 Endpoint /temporal/entities",
"permutation_tp_id": "TP/NGSI-LD/CB/HTTP/045_01_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 for the operations:\n Create Or Update Temporal Representation Of Entity Selecting Content Type with Response Status Code set to 201 and\n Create Or Update Temporal Representation Of Entity Selecting Content Type with Response Status Code set to 200 and\n Create Or Update Temporal Representation Of Entity Selecting Content Type with Response Header: Content-Type set to application/json and\n Notification with Response Header: Link is not Empty\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\n}",
"http_verb": "GET",
"endpoint": "temporal/entities"
}
],
"permutations": [
lopezaguilar
committed
"endpoint",
"then",
"when"
],
"robotpath": "CommonBehaviours/CommonResponses/VerifyGETWithoutAccept",
"robotfile": "045_01"
}