Newer
Older
"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",
"clauses": [
"6.3.4"
],
"pics_selection": "",
"keywords": [],
"teardown": "None",
lopezaguilar
committed
"initial_condition": "with {\n the SUT containing an initial state\n}",
"name": "049_01_01 Endpoint get /entities/{entityId}",
"permutation_tp_id": "TP/NGSI-LD/CB/HTTP/049_01_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",
"then": "then {\n the SUT sends a valid Response for the operation:\n Query Entity with 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 Get Entity Request: and\n Query Parameter: id set to '${entity_id}' and\n Query Parameter: accept set to 'application/xml'\n}",
"http_verb": "GET",
"endpoint": "entities/{id}"
},
{
"name": "049_01_02 Endpoint get /subscriptions/{subscriptionId}",
"permutation_tp_id": "TP/NGSI-LD/CB/HTTP/049_01_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 for the operation:\n Retrieve Subscription with 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 Subscription Retrieve with the following data: and\n Query Parameter: id set to '${id}' and\n Query Parameter: accept set to 'application/xml'\n}",
"http_verb": "GET",
"endpoint": "subscriptions/{id}"
},
{
"name": "049_01_03 Endpoint get /csourceRegistrations/",
"permutation_tp_id": "TP/NGSI-LD/CB/HTTP/049_01_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 for the operation:\n Query Context Source Registrations With Return with 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'\n}",
"http_verb": "GET",
"endpoint": "csourceRegistrations"
},
{
"name": "049_01_04 Endpoint get /csourceSubscriptions/",
"permutation_tp_id": "TP/NGSI-LD/CB/HTTP/049_01_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 for the operation:\n Query Context Source Registration Subscriptions with 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 Query Context Source Registration Subscriptions and\n Query Parameter: accept set to 'application/xml'\n}",
"http_verb": "GET",
"endpoint": "csourceSubscriptions"
},
{
"name": "049_01_05 Endpoint get /temporal/entities",
"permutation_tp_id": "TP/NGSI-LD/CB/HTTP/049_01_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 for the operation:\n Query Temporal Representation Of Entities with 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 Query Temporal Representation of Entities 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-08-01T12:05:00Z' and\n Query Parameter: accept set to 'application/xml'\n}",
"http_verb": "GET",
"endpoint": "temporal/entities"
}
],
"permutations": [
lopezaguilar
committed
"endpoint",
"then",
"when"
"robotpath": "CommonBehaviours/CommonResponses/VerifyNotAcceptableMediaType",
"robotfile": "049_01"