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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
{
"tp_id": "TP/NGSI-LD/CI/Cons/E/018_07",
"test_objective": "Check that you can retrieve an entity using Language Filter",
"reference": "ETSI GS CIM 009 V1.4.1 [], clauses 4.15, 5.7.1",
"config_id": "",
"parent_release": "v1.4.1",
"clauses": [
"4.15",
"5.7.1"
],
"pics_selection": "",
"keywords": [
"Retrieve Entity With Language Filter",
"Create Initial Entity",
"Delete Created Entity"
],
"teardown": "Delete Created Entity",
"initial_condition": "with {\n the SUT containing an initial state\n}",
"test_cases": [
{
"name": "018_07_01 Retrieve an entity using a specific natural language",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/E/018_07_01",
"doc": "Check that you can retrieve an entity using Language Filter",
"tags": [
"4_15",
"5_7_1",
"e-retrieve",
"since_v1.4.1"
],
"setup": null,
"teardown": null,
"template": "Retrieve Entity With Language Filter",
"then": "then {\n the SUT sends a valid Response for the operations:\n Query Entity with Response Status Code set to 200 and\n Query Entity with Response Body containing en entity element with id set to '${entity_id}' and body content set to 'building-language-property-fr-filter.jsonld'\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/ld+json' 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: options set to '${EMPTY}' and\n Query Parameter: lang set to 'fr'\n}",
"http_verb": "GET",
"endpoint": "entities/{id}"
},
{
"name": "018_07_02 Retrieve an entity using multiple natural languages with no ranked preference",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/E/018_07_02",
"doc": "Check that you can retrieve an entity using Language Filter",
"tags": [
"4_15",
"5_7_1",
"e-retrieve",
"since_v1.4.1"
],
"setup": null,
"teardown": null,
"template": "Retrieve Entity With Language Filter",
"then": "then {\n the SUT sends a valid Response for the operations:\n Query Entity with Response Status Code set to 200 and\n Query Entity with Response Body containing en entity element with id set to '${entity_id}' and body content set to 'building-language-property-fr-filter.jsonld'\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/ld+json' 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: options set to '${EMPTY}' and\n Query Parameter: lang set to 'fr-CH,fr'\n}",
"http_verb": "GET",
"endpoint": "entities/{id}"
},
{
"name": "018_07_03 Retrieve an entity with any supported language",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/E/018_07_03",
"doc": "Check that you can retrieve an entity using Language Filter",
"tags": [
"4_15",
"5_7_1",
"e-retrieve",
"since_v1.4.1"
],
"setup": null,
"teardown": null,
"template": "Retrieve Entity With Language Filter",
"then": "then {\n the SUT sends a valid Response for the operations:\n Query Entity with Response Status Code set to 200 and\n Query Entity with Response Body containing en entity element with id set to '${entity_id}' and body content set to 'building-language-property-any-language-filter.jsonld'\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/ld+json' 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: options set to '${EMPTY}' and\n Query Parameter: lang set to '*'\n}",
"http_verb": "GET",
"endpoint": "entities/{id}"
},
{
"name": "018_07_04 Retrieve an entity using multiple natural languages with ranked preferences",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/E/018_07_04",
"doc": "Check that you can retrieve an entity using Language Filter",
"tags": [
"4_15",
"5_7_1",
"e-retrieve",
"since_v1.4.1"
],
"setup": null,
"teardown": null,
"template": "Retrieve Entity With Language Filter",
"then": "then {\n the SUT sends a valid Response for the operations:\n Query Entity with Response Status Code set to 200 and\n Query Entity with Response Body containing en entity element with id set to '${entity_id}' and body content set to 'building-language-property-fr-filter.jsonld'\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/ld+json' 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: options set to '${EMPTY}' and\n Query Parameter: lang set to 'fr-CH,fr;q=0.9,en;q=0.8,*;q=0.5'\n}",
"http_verb": "GET",
"endpoint": "entities/{id}"
},
{
"name": "018_07_05 Retrieve an entity using a specific natural language with simplified representation",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/E/018_07_05",
"doc": "Check that you can retrieve an entity using Language Filter",
"tags": [
"4_15",
"5_7_1",
"e-retrieve",
"since_v1.4.1"
],
"setup": null,
"teardown": null,
"template": "Retrieve Entity With Language Filter",
"then": "then {\n the SUT sends a valid Response for the operations:\n Query Entity with Response Status Code set to 200 and\n Query Entity with Response Body containing en entity element with id set to '${entity_id}' and body content set to 'building-language-property-fr-filter-simplified.jsonld'\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/ld+json' 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: options set to 'keyValues' and\n Query Parameter: lang set to 'fr'\n}",
"http_verb": "GET",
"endpoint": "entities/{id}"
},
{
"name": "018_07_06 Retrieve an entity with any supported language with simplified representation",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/E/018_07_06",
"doc": "Check that you can retrieve an entity using Language Filter",
"tags": [
"4_15",
"5_7_1",
"e-retrieve",
"since_v1.4.1"
],
"setup": null,
"teardown": null,
"template": "Retrieve Entity With Language Filter",
"then": "then {\n the SUT sends a valid Response for the operations:\n Query Entity with Response Status Code set to 200 and\n Query Entity with Response Body containing en entity element with id set to '${entity_id}' and body content set to 'building-language-property-any-language-filter-simplified.jsonld'\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/ld+json' 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: options set to 'keyValues' and\n Query Parameter: lang set to '*'\n}",
"http_verb": "GET",
"endpoint": "entities/{id}"
}
],
"permutations": [
"then",
"when"
],
"robotpath": "ContextInformation/Consumption/Entity/RetrieveEntity",
"robotfile": "018_07"
}