You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: features/103.ngsild.CRUD_Operations_orionld.feature
+17-7Lines changed: 17 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Orion-LD)
21
21
When I set the "Link" header with the value "<http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json""
22
22
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001"
23
23
And I send a GET HTTP request to that url
24
-
Then I receive a HTTP "200" response code
24
+
Then I receive a HTTP "200" response code from Orion-LD with the body equal to "response103ld-02.json"
25
25
26
26
Scenario: 03 - Create New Attributes
27
27
When I set the "Content-Type" header with the value "application/json"
@@ -34,9 +34,8 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Orion-LD)
34
34
Scenario: 04 - Read a Data Entity (verbose)
35
35
When I set the "Link" header with the value "<http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json""
36
36
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001"
37
-
And I set the params equal to "options=sysAttrs"
38
37
And I send a GET HTTP request to that url
39
-
Then I receive a HTTP "200" response code
38
+
Then I receive a HTTP "200" response code from Orion-LD with the body equal to "response103ld-04.json"
40
39
41
40
Scenario: 05 - Batch Create New Data Entities or Attributes
42
41
When I set the "Content-Type" header with the value "application/json"
@@ -70,6 +69,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Orion-LD)
70
69
And I send a GET HTTP request to that url
71
70
Then I receive a HTTP "200" response code from Orion-LD with the body equal to "response103ld-08.json"
72
71
72
+
# Need to change the tutorial, category is vocab and temperature is 25
73
73
Scenario: 09 - Read a Data Entity (key-value pairs)
74
74
When I set the "Link" header with the value "<http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json""
75
75
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001"
@@ -89,6 +89,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Orion-LD)
89
89
90
90
Scenario: 11 - List all Data Entities (verbose)
91
91
When I set the "Link" header with the value "<http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json""
92
+
And I set the "Accept" header with the value "application/ld+json"
92
93
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/"
93
94
And I set the params equal to "type=TemperatureSensor"
94
95
And I send a GET HTTP request to that url
@@ -114,13 +115,14 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Orion-LD)
114
115
And I send a GET HTTP request to that url
115
116
Then I receive a HTTP "200" response code from Orion-LD with the body equal to "response103ld-13.json"
116
117
118
+
# Orion-LD crash here
117
119
Scenario: 14 - Overwrite the value of an Attribute value
118
120
When I set the "Content-Type" header with the value "application/json"
119
121
And I set the "Link" header with the value "<http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json""
120
122
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001/attrs/category"
121
123
And I set the request body described in file "request103ld-14.json"
122
124
And I send a PATCH HTTP request to that url
123
-
Then I receive a HTTP "204" response code
125
+
Then I receive a HTTP "200" response code
124
126
125
127
Scenario: 15 - Overwrite Multiple Attributes of a Data Entity
126
128
When I set the "Content-Type" header with the value "application/json"
@@ -149,7 +151,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Orion-LD)
149
151
Scenario: 18 - Delete an Entity
150
152
When I set the url to "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:004"
151
153
And I send a DELETE HTTP request to that url
152
-
Then I receive a HTTP "204" response code
154
+
Then I receive a HTTP "204" response code from Orion-LD with the body equal to "response103ld-18.json"
153
155
154
156
Scenario: 19 - Delete an Attribute from an Entity
155
157
When I set the "Link" header with the value "<http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json""
@@ -160,11 +162,19 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Orion-LD)
160
162
Scenario: 20 - Batch Delete Multiple Entities
161
163
When I set the "Content-Type" header with the value "application/json"
162
164
And I set the url to "http://localhost:1026/ngsi-ld/v1/entityOperations/delete"
163
-
And the body request described in file "request103ld-20.json"
165
+
And I set the request body described in file "request103ld-20.json"
164
166
And I send a POST HTTP request to that url
165
167
Then I receive a HTTP "204" response code
166
168
167
-
Scenario: 21 - Find Existing Data Relationships
169
+
# It will produce always an error 404
170
+
Scenario: 21 - Batch Delete Multiple Attributes from an Entity
171
+
When I set the "Content-Type" header with the value "application/json"
172
+
And I set the url to "http://localhost:1026/ngsi-ld/v1/entityOperations/delete"
173
+
And I set the request body described in file "request103ld-20.json"
174
+
And I send a POST HTTP request to that url
175
+
Then I receive a HTTP "204" response code from Orion-LD with the body equal to "response103ld-21.json"
176
+
177
+
Scenario: 22 - Find Existing Data Relationships
168
178
When I set the "Link" header with the value "<http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json""
169
179
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/?type=TemperatureSensor&limit=0&count=true&q=controlledAsset==%22urn:ngsi-ld:Building:barn002%22"
170
180
And I set the "Accept" header with the value "application/json"
Copy file name to clipboardExpand all lines: features/103.ngsild.CRUD_Operations_scorpio.feature
+15-6Lines changed: 15 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Scorpio)
21
21
When I set the "Link" header with the value "<http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json""
22
22
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001"
23
23
And I send a GET HTTP request to that url
24
-
Then I receive a HTTP "200" response code
24
+
Then I receive a HTTP "200" response code from Scorpio with the body equal to "response103ld-02.json"
25
25
26
26
Scenario: 03 - Create New Attributes
27
27
When I set the "Content-Type" header with the value "application/json"
@@ -34,9 +34,8 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Scorpio)
34
34
Scenario: 04 - Read a Data Entity (verbose)
35
35
When I set the "Link" header with the value "<http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json""
36
36
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001"
37
-
And I set the params equal to "options=sysAttrs"
38
37
And I send a GET HTTP request to that url
39
-
Then I receive a HTTP "200" response code
38
+
Then I receive a HTTP "200" response code from Scorpio with the body equal to "response103ld-04.json"
40
39
41
40
Scenario: 05 - Batch Create New Data Entities or Attributes
42
41
When I set the "Content-Type" header with the value "application/json"
@@ -70,6 +69,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Scorpio)
70
69
And I send a GET HTTP request to that url
71
70
Then I receive a HTTP "200" response code from Scorpio with the body equal to "response103ld-08.json"
72
71
72
+
# Need to change the tutorial, category is vocab and temperature is 25
73
73
Scenario: 09 - Read a Data Entity (key-value pairs)
74
74
When I set the "Link" header with the value "<http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json""
75
75
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001"
@@ -89,6 +89,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Scorpio)
89
89
90
90
Scenario: 11 - List all Data Entities (verbose)
91
91
When I set the "Link" header with the value "<http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json""
92
+
And I set the "Accept" header with the value "application/ld+json"
92
93
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/"
93
94
And I set the params equal to "type=TemperatureSensor"
94
95
And I send a GET HTTP request to that url
@@ -149,7 +150,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Scorpio)
149
150
Scenario: 18 - Delete an Entity
150
151
When I set the url to "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:004"
151
152
And I send a DELETE HTTP request to that url
152
-
Then I receive a HTTP "204" response code
153
+
Then I receive a HTTP "204" response code from Scorpio with the body equal to "response103ld-18.json"
153
154
154
155
Scenario: 19 - Delete an Attribute from an Entity
155
156
When I set the "Link" header with the value "<http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json""
@@ -160,11 +161,19 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Scorpio)
160
161
Scenario: 20 - Batch Delete Multiple Entities
161
162
When I set the "Content-Type" header with the value "application/json"
162
163
And I set the url to "http://localhost:1026/ngsi-ld/v1/entityOperations/delete"
163
-
And the body request described in file "request103ld-20.json"
164
+
And I set the request body described in file "request103ld-20.json"
164
165
And I send a POST HTTP request to that url
165
166
Then I receive a HTTP "204" response code
166
167
167
-
Scenario: 21 - Find Existing Data Relationships
168
+
# It will produce always an error 404
169
+
Scenario: 21 - Batch Delete Multiple Attributes from an Entity
170
+
When I set the "Content-Type" header with the value "application/json"
171
+
And I set the url to "http://localhost:1026/ngsi-ld/v1/entityOperations/delete"
172
+
And I set the request body described in file "request103ld-20.json"
173
+
And I send a POST HTTP request to that url
174
+
Then I receive a HTTP "204" response code from Scorpio with the body equal to "response103ld-21.json"
175
+
176
+
Scenario: 22 - Find Existing Data Relationships
168
177
When I set the "Link" header with the value "<http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json""
169
178
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/?type=TemperatureSensor&limit=0&count=true&q=controlledAsset==%22urn:ngsi-ld:Building:barn002%22"
170
179
And I set the "Accept" header with the value "application/json"
Copy file name to clipboardExpand all lines: features/103.ngsild.CRUD_Operations_stellio.feature
+16-7Lines changed: 16 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Stellio)
21
21
When I set the "Link" header with the value "<http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json""
22
22
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001"
23
23
And I send a GET HTTP request to that url
24
-
Then I receive a HTTP "200" response code
24
+
Then I receive a HTTP "200" response code from Stellio with the body equal to "response103ld-02.json"
25
25
26
26
Scenario: 03 - Create New Attributes
27
27
When I set the "Content-Type" header with the value "application/json"
@@ -34,9 +34,8 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Stellio)
34
34
Scenario: 04 - Read a Data Entity (verbose)
35
35
When I set the "Link" header with the value "<http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json""
36
36
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001"
37
-
And I set the params equal to "options=sysAttrs"
38
37
And I send a GET HTTP request to that url
39
-
Then I receive a HTTP "200" response code
38
+
Then I receive a HTTP "200" response code from Stellio with the body equal to "response103ld-04.json"
40
39
41
40
Scenario: 05 - Batch Create New Data Entities or Attributes
42
41
When I set the "Content-Type" header with the value "application/json"
@@ -54,7 +53,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Stellio)
54
53
And I set the url to "http://localhost:1026/ngsi-ld/v1/entityOperations/upsert"
55
54
And I set the request body described in file "request103ld-06.json"
56
55
And I send a POST HTTP request to that url
57
-
Then I receive a HTTP "204" response code
56
+
Then I receive a HTTP "204" response code
58
57
59
58
Scenario: 07 - Read a Data Entity (verbose)
60
59
When I set the "Link" header with the value "<http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json""
@@ -70,6 +69,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Stellio)
70
69
And I send a GET HTTP request to that url
71
70
Then I receive a HTTP "200" response code from Stellio with the body equal to "response103ld-08.json"
72
71
72
+
# Need to change the tutorial, category is vocab and temperature is 25
73
73
Scenario: 09 - Read a Data Entity (key-value pairs)
74
74
When I set the "Link" header with the value "<http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json""
75
75
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001"
@@ -89,6 +89,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Stellio)
89
89
90
90
Scenario: 11 - List all Data Entities (verbose)
91
91
When I set the "Link" header with the value "<http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json""
92
+
And I set the "Accept" header with the value "application/ld+json"
92
93
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/"
93
94
And I set the params equal to "type=TemperatureSensor"
94
95
And I send a GET HTTP request to that url
@@ -120,7 +121,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Stellio)
120
121
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001/attrs/category"
121
122
And I set the request body described in file "request103ld-14.json"
122
123
And I send a PATCH HTTP request to that url
123
-
Then I receive a HTTP "204" response code
124
+
Then I receive a HTTP "204" response code
124
125
125
126
Scenario: 15 - Overwrite Multiple Attributes of a Data Entity
126
127
When I set the "Content-Type" header with the value "application/json"
@@ -149,7 +150,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Stellio)
149
150
Scenario: 18 - Delete an Entity
150
151
When I set the url to "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:004"
151
152
And I send a DELETE HTTP request to that url
152
-
Then I receive a HTTP "204" response code
153
+
Then I receive a HTTP "204" response code from Stellio with the body equal to "response103ld-18.json"
153
154
154
155
Scenario: 19 - Delete an Attribute from an Entity
155
156
When I set the "Link" header with the value "<http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json""
@@ -164,7 +165,15 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Stellio)
164
165
And I send a POST HTTP request to that url
165
166
Then I receive a HTTP "204" response code
166
167
167
-
Scenario: 21 - Find Existing Data Relationships
168
+
# It will produce always an error 404
169
+
Scenario: 21 - Batch Delete Multiple Attributes from an Entity
170
+
When I set the "Content-Type" header with the value "application/json"
171
+
And I set the url to "http://localhost:1026/ngsi-ld/v1/entityOperations/delete"
172
+
And I set the request body described in file "request103ld-20.json"
173
+
And I send a POST HTTP request to that url
174
+
Then I receive a HTTP "204" response code from Stellio with the body equal to "response103ld-21.json"
175
+
176
+
Scenario: 22 - Find Existing Data Relationships
168
177
When I set the "Link" header with the value "<http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json""
169
178
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/?type=TemperatureSensor&limit=0&count=true&q=controlledAsset==%22urn:ngsi-ld:Building:barn002%22"
170
179
And I set the "Accept" header with the value "application/json"
0 commit comments