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
{
"tp_id": "TP/NGSI-LD/CI/Cons/E/019_01_06",
"test_objective": "Check that you can query several entities based on scopes",
"reference": "ETSI GS CIM 009 V1.5.1 [], clause 4.19",
"config_id": "",
"parent_release": "v1.5.1",
"clauses": [
"4.19"
],
"pics_selection": "",
"keywords": [
"Query several entities based on scopes",
"Setup Initial Entities",
"Delete Entities"
],
"teardown": "Delete Entities",
"initial_condition": "with {\n the SUT containing an initial state\n}",
"test_cases": [
{
"name": "019_01_06 QueryWithFullScope",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/E/019_01_06",
"doc": "Check that you can query several entities based on scopes",
"tags": [
"4_19",
"e-query",
"since_v1.5.1"
],
"setup": null,
"teardown": null,
"template": "Query several entities based on scopes",
"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 containing a list of entities equal to '${2}' of type 'https://ngsi-ld-test-suite/context#Building' with response set to '${response.json()}'\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: scopeq set to '/Madrid/Gardens/ParqueNorte' and\n Query Parameter: entity_types set to 'https://ngsi-ld-test-suite/context#Building'\n}",
"http_verb": "GET",
"endpoint": "entities/"
},
{
"name": "019_01_06 QueryWithPlusMatching",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/E/019_01_06",
"doc": "Check that you can query several entities based on scopes",
"tags": [
"4_19",
"e-query",
"since_v1.5.1"
],
"setup": null,
"teardown": null,
"template": "Query several entities based on scopes",
"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 containing a list of entities equal to '${2}' of type 'https://ngsi-ld-test-suite/context#Building' with response set to '${response.json()}'\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: scopeq set to '/Madrid/+/ParqueNorte' and\n Query Parameter: entity_types set to 'https://ngsi-ld-test-suite/context#Building'\n}",
"http_verb": "GET",
"endpoint": "entities/"
},
{
"name": "019_01_06 QueryWithHashMatching",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/E/019_01_06",
"doc": "Check that you can query several entities based on scopes",
"tags": [
"4_19",
"e-query",
"since_v1.5.1"
],
"setup": null,
"teardown": null,
"template": "Query several entities based on scopes",
"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 containing a list of entities equal to '${1}' of type 'https://ngsi-ld-test-suite/context#Building' with response set to '${response.json()}'\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: scopeq set to '/CompanyA/#' and\n Query Parameter: entity_types set to 'https://ngsi-ld-test-suite/context#Building'\n}",
"http_verb": "GET",
"endpoint": "entities/"
},
{
"name": "019_01_06 QueryNonEmptyScope",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/E/019_01_06",
"doc": "Check that you can query several entities based on scopes",
"tags": [
"4_19",
"e-query",
"since_v1.5.1"
],
"setup": null,
"teardown": null,
"template": "Query several entities based on scopes",
"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 containing a list of entities equal to '${2}' of type 'https://ngsi-ld-test-suite/context#Building' with response set to '${response.json()}'\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: scopeq set to '/#' and\n Query Parameter: entity_types set to 'https://ngsi-ld-test-suite/context#Building'\n}",
"http_verb": "GET",
"endpoint": "entities/"
},
{
"name": "019_01_06 QueryWithAndScope",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/E/019_01_06",
"doc": "Check that you can query several entities based on scopes",
"tags": [
"4_19",
"e-query",
"since_v1.5.1"
],
"setup": null,
"teardown": null,
"template": "Query several entities based on scopes",
"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 containing a list of entities equal to '${1}' of type 'https://ngsi-ld-test-suite/context#Building' with response set to '${response.json()}'\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: scopeq set to '/Madrid/Gardens/ParqueNorte;/CompanyA/OrganizationB/UnitC' and\n Query Parameter: entity_types set to 'https://ngsi-ld-test-suite/context#Building'\n}",
"http_verb": "GET",
"endpoint": "entities/"
},
{
"name": "019_01_06 QueryWithOrScope",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/E/019_01_06",
"doc": "Check that you can query several entities based on scopes",
"tags": [
"4_19",
"e-query",
"since_v1.5.1"
],
"setup": null,
"teardown": null,
"template": "Query several entities based on scopes",
"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 containing a list of entities equal to '${2}' of type 'https://ngsi-ld-test-suite/context#Building' with response set to '${response.json()}'\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: scopeq set to '/Madrid/Gardens/ParqueNorte,/CompanyA/OrganizationB/UnitC' and\n Query Parameter: entity_types set to 'https://ngsi-ld-test-suite/context#Building'\n}",
"http_verb": "GET",
"endpoint": "entities/"
}
],
"permutations": [
"then",
"when"
],
"robotpath": "ContextInformation/Consumption/Entity/QueryEntities",
"robotfile": "019_01_06"
}