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
+21-21Lines changed: 21 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Orion-LD)
13
13
When I set the "Content-Type" header with the value "application/json"
14
14
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""
15
15
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities"
16
-
And the body request described in file "request103ld-01.json"
16
+
And I set the request body described in file "request103ld-01.json"
17
17
And I send a POST HTTP request to that url
18
18
Then I receive a HTTP "201" response code
19
19
@@ -27,14 +27,14 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Orion-LD)
27
27
When I set the "Content-Type" header with the value "application/json"
28
28
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""
29
29
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001/attrs"
30
-
And the body request described in file "request103ld-03.json"
30
+
And I set the request body described in file "request103ld-03.json"
31
31
And I send a POST HTTP request to that url
32
32
Then I receive a HTTP "204" response code
33
33
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 the params equal to "options=sysAttrs"
37
+
And I set the params equal to "options=sysAttrs"
38
38
And I send a GET HTTP request to that url
39
39
Then I receive a HTTP "200" response code
40
40
@@ -43,7 +43,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Orion-LD)
43
43
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""
44
44
And I set the "Accept" header with the value "application/ld+json"
45
45
And I set the url to "http://localhost:1026/ngsi-ld/v1/entityOperations/create"
46
-
And the body request described in file "request103ld-05.json"
46
+
And I set the request body described in file "request103ld-05.json"
47
47
And I send a POST HTTP request to that url
48
48
Then I receive a HTTP "201" response code from Orion-LD with the body equal to "response103ld-05.json"
49
49
@@ -52,97 +52,97 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Orion-LD)
52
52
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""
53
53
And I set the "Accept" header with the value "application/ld+json"
54
54
And I set the url to "http://localhost:1026/ngsi-ld/v1/entityOperations/upsert"
55
-
And the body request described in file "request103ld-06.json"
55
+
And I set the request body described in file "request103ld-06.json"
56
56
And I send a POST HTTP request to that url
57
57
Then I receive a HTTP "204" response code
58
58
59
59
Scenario: 07 - Read a Data Entity (verbose)
60
60
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""
61
61
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001"
62
-
And the params equal to "options=sysAttrs"
62
+
And I set the params equal to "options=sysAttrs"
63
63
And I send a GET HTTP request to that url
64
64
Then I receive a HTTP "200" status code from Orion-LD with the body "response103ld-07.json" and exclusions "response103ld-07.excludes"
65
65
66
66
Scenario: 08 - Read an Attribute from a Data Entity
67
67
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""
68
68
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001"
69
-
And the params equal to "attrs=temperature"
69
+
And I set the params equal to "attrs=temperature"
70
70
And I send a GET HTTP request to that url
71
71
Then I receive a HTTP "200" response code from Orion-LD with the body equal to "response103ld-08.json"
72
72
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"
76
76
And I set the "Accept" header with the value "application/json"
77
-
And the params equal to "options=keyValues"
77
+
And I set the params equal to "options=keyValues"
78
78
And I send a GET HTTP request to that url
79
79
Then I receive a HTTP "200" response code from Orion-LD with the body equal to "response103ld-09.json"
80
80
81
81
Scenario: 10 - Read Multiple attributes values from a Data Entity
82
82
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""
83
83
And I set the "Accept" header with the value "application/json"
84
84
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001"
85
-
And the params equal to "options=keyValues"
86
-
And the params equal to "attrs=category,temperature"
85
+
And I set the params equal to "options=keyValues"
86
+
And I set the params equal to "attrs=category,temperature"
87
87
And I send a GET HTTP request to that url
88
88
Then I receive a HTTP "200" response code from Orion-LD with the body equal to "response103ld-10.json"
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
92
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/"
93
-
And the params equal to "type=TemperatureSensor"
93
+
And I set the params equal to "type=TemperatureSensor"
94
94
And I send a GET HTTP request to that url
95
95
Then I receive a HTTP "200" response code from Orion-LD with the body equal to "response103ld-11.json"
96
96
97
97
Scenario: 12 - List all Data Entities (key-value pairs)
98
98
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""
99
99
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/"
100
100
And I set the "Accept" header with the value "application/json"
101
-
And the params equal to "type=TemperatureSensor"
102
-
And the params equal to "options=keyValues"
103
-
And the params equal to "attrs=temperature"
101
+
And I set the params equal to "type=TemperatureSensor"
102
+
And I set the params equal to "options=keyValues"
103
+
And I set the params equal to "attrs=temperature"
104
104
And I send a GET HTTP request to that url
105
105
Then I receive a HTTP "200" response code from Orion-LD with the body equal to "response103ld-12.json"
106
106
107
107
Scenario: 13 - Filter Data Entities by ID
108
108
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""
109
109
And I set the "Accept" header with the value "application/json"
110
110
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/"
111
-
And the params equal to "id=urn:ngsi-ld:TemperatureSensor:001,urn:ngsi-ld:TemperatureSensor:002"
112
-
And the params equal to "options=keyValues"
113
-
And the params equal to "attrs=temperature"
111
+
And I set the params equal to "id=urn:ngsi-ld:TemperatureSensor:001,urn:ngsi-ld:TemperatureSensor:002"
112
+
And I set the params equal to "options=keyValues"
113
+
And I set the params equal to "attrs=temperature"
114
114
And I send a GET HTTP request to that url
115
115
Then I receive a HTTP "200" response code from Orion-LD with the body equal to "response103ld-13.json"
116
116
117
117
Scenario: 14 - Overwrite the value of an Attribute value
118
118
When I set the "Content-Type" header with the value "application/json"
119
119
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
120
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001/attrs/category"
121
-
And the body request described in file "request103ld-14.json"
121
+
And I set the request body described in file "request103ld-14.json"
122
122
And I send a PATCH HTTP request to that url
123
123
Then I receive a HTTP "204" response code
124
124
125
125
Scenario: 15 - Overwrite Multiple Attributes of a Data Entity
126
126
When I set the "Content-Type" header with the value "application/json"
127
127
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""
128
128
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001/attrs"
129
-
And the body request described in file "request103ld-15.json"
129
+
And I set the request body described in file "request103ld-15.json"
130
130
And I send a PATCH HTTP request to that url
131
131
Then I receive a HTTP "204" response code
132
132
133
133
Scenario: 16 - Batch Update Attributes of Multiple Data Entities
134
134
When I set the "Content-Type" header with the value "application/json"
135
135
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""
136
136
And I set the url to "http://localhost:1026/ngsi-ld/v1/entityOperations/upsert?options=update"
137
-
And the body request described in file "request103ld-16.json"
137
+
And I set the request body described in file "request103ld-16.json"
138
138
And I send a POST HTTP request to that url
139
139
Then I receive a HTTP "204" response code
140
140
141
141
Scenario: 17 - Batch Replace Entity Data
142
142
When I set the "Content-Type" header with the value "application/json"
143
143
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""
144
144
And I set the url to "http://localhost:1026/ngsi-ld/v1/entityOperations/update?options=replace"
145
-
And the body request described in file "request103ld-17.json"
145
+
And I set the request body described in file "request103ld-17.json"
0 commit comments