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
{
"tp_id": "TP/NGSI-LD/CI/Cons/E/019_08",
"test_objective": "Query entities with Entity Type Selection Language.",
"reference": "ETSI GS CIM 009 V1.5.1 [], clauses 4.17, 5.7.2",
"config_id": "",
"parent_release": "v1.5.1",
"clauses": [
"4.17",
"5.7.2"
],
"pics_selection": "",
"keywords": [
"Query entities using Entity Type Selection Language",
"Setup Initial Entities",
"Delete Initial Entities"
],
"teardown": "Delete Initial Entities",
"initial_condition": "with {\n the SUT containing an initial state\n}",
"test_cases": [
{
"name": "019_08_01 query with one type",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/E/019_08_01",
"doc": "Query entities with Entity Type Selection Language.",
"tags": [
"e-query",
"4_17",
"5_7_2",
"since_v1.5.1"
],
"setup": null,
"teardown": null,
"template": "Query entities using Entity Type Selection Language",
"then": "then {\n the SUT sends a valid Response for the operations:\n Query Entities with Response Status Code set to 200 and\n Query Entities with Response Body contains entities ids\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 Get Entities Request: and\n Query Parameter: entity_types set to '${entity_types_selection}' 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\"'\n}",
"http_verb": "GET",
"endpoint": "entities/"
},
{
"name": "019_08_02 query with the AND operator",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/E/019_08_02",
"doc": "Query entities with Entity Type Selection Language.",
"tags": [
"e-query",
"4_17",
"5_7_2",
"since_v1.5.1"
],
"setup": null,
"teardown": null,
"template": "Query entities using Entity Type Selection Language",
"then": "then {\n the SUT sends a valid Response for the operations:\n Query Entities with Response Status Code set to 200 and\n Query Entities with Response Body contains entities ids\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 Get Entities Request: and\n Query Parameter: entity_types set to '${entity_types_selection}' 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\"'\n}",
"http_verb": "GET",
"endpoint": "entities/"
},
{
"name": "019_08_03 query with the OR operator",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/E/019_08_03",
"doc": "Query entities with Entity Type Selection Language.",
"tags": [
"e-query",
"4_17",
"5_7_2",
"since_v1.5.1"
],
"setup": null,
"teardown": null,
"template": "Query entities using Entity Type Selection Language",
"then": "then {\n the SUT sends a valid Response for the operations:\n Query Entities with Response Status Code set to 200 and\n Query Entities with Response Body contains entities ids\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 Get Entities Request: and\n Query Parameter: entity_types set to '${entity_types_selection}' 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\"'\n}",
"http_verb": "GET",
"endpoint": "entities/"
},
{
"name": "019_08_04 different query with the OR operator",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/E/019_08_04",
"doc": "Query entities with Entity Type Selection Language.",
"tags": [
"e-query",
"4_17",
"5_7_2",
"since_v1.5.1"
],
"setup": null,
"teardown": null,
"template": "Query entities using Entity Type Selection Language",
"then": "then {\n the SUT sends a valid Response for the operations:\n Query Entities with Response Status Code set to 200 and\n Query Entities with Response Body contains entities ids\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 Get Entities Request: and\n Query Parameter: entity_types set to '${entity_types_selection}' 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\"'\n}",
"http_verb": "GET",
"endpoint": "entities/"
},
{
"name": "019_08_05 query with two operators",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/E/019_08_05",
"doc": "Query entities with Entity Type Selection Language.",
"tags": [
"e-query",
"4_17",
"5_7_2",
"since_v1.5.1"
],
"setup": null,
"teardown": null,
"template": "Query entities using Entity Type Selection Language",
"then": "then {\n the SUT sends a valid Response for the operations:\n Query Entities with Response Status Code set to 200 and\n Query Entities with Response Body contains entities ids\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 Get Entities Request: and\n Query Parameter: entity_types set to '${entity_types_selection}' 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\"'\n}",
"http_verb": "GET",
"endpoint": "entities/"
}
],
"permutations": [],
"robotpath": "ContextInformation/Consumption/Entity/QueryEntities",
"robotfile": "019_08"
}