Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
"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"
}