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
When I send GET HTTP request to "http://localhost:1026/v2/entities/?q=refStore==urn:ngsi-ld:Store:001&options=values&attrs=refProduct&type=InventoryItem"
117
117
Then I receive a HTTP "200" response code from Orion with the body equal to "response102-10.json"
118
118
119
119
120
-
Scenario: Reading from a bridge table
120
+
Scenario: Reading from a bridge table Product 001
121
121
When I send GET HTTP request to "http://localhost:1026/v2/entities/?q=refProduct==urn:ngsi-ld:Product:001&options=values&attrs=refStore&type=InventoryItem"
122
122
Then I receive a HTTP "200" response code from Orion with the body equal to "response102-11.json"
Copy file name to clipboardExpand all lines: features/103.ngsild.CRUD_Operations_orionld.feature
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Orion-LD)
65
65
Scenario: 08 - Read an Attribute from a Data Entity
66
66
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""
67
67
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001"
68
-
And I set the params equal to "attrs=temperature"
68
+
And I set the params equal to "pick=id,type,temperature"
69
69
And I send a GET HTTP request to that url
70
70
Then I receive a HTTP "200" response code from Orion-LD with the body equal to "response103ld-08.json"
71
71
@@ -83,7 +83,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Orion-LD)
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
85
And I set the params equal to "options=keyValues"
86
-
And I set the params equal to "attrs=category,temperature"
86
+
And I set the params equal to "pick=id,type,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
@@ -101,7 +101,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Orion-LD)
101
101
And I set the "Accept" header with the value "application/json"
102
102
And I set the params equal to "type=TemperatureSensor"
103
103
And I set the params equal to "options=keyValues"
104
-
And I set the params equal to "attrs=temperature"
104
+
And I set the params equal to "pick=id,type,temperature"
105
105
And I send a GET HTTP request to that url
106
106
Then I receive a HTTP "200" response code from Orion-LD with the body equal to "response103ld-12.json"
107
107
@@ -111,7 +111,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Orion-LD)
111
111
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/"
112
112
And I set the params equal to "id=urn:ngsi-ld:TemperatureSensor:001,urn:ngsi-ld:TemperatureSensor:002"
113
113
And I set the params equal to "options=keyValues"
114
-
And I set the params equal to "attrs=temperature"
114
+
And I set the params equal to "pick=id,type,temperature"
115
115
And I send a GET HTTP request to that url
116
116
Then I receive a HTTP "200" response code from Orion-LD with the body equal to "response103ld-13.json"
Copy file name to clipboardExpand all lines: features/103.ngsild.CRUD_Operations_scorpio.feature
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Scorpio)
65
65
Scenario: 08 - Read an Attribute from a Data Entity
66
66
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""
67
67
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001"
68
-
And I set the params equal to "attrs=temperature"
68
+
And I set the params equal to "pick=id,type,temperature"
69
69
And I send a GET HTTP request to that url
70
70
Then I receive a HTTP "200" response code from Scorpio with the body equal to "response103ld-08.json"
71
71
@@ -83,7 +83,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Scorpio)
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
85
And I set the params equal to "options=keyValues"
86
-
And I set the params equal to "attrs=category,temperature"
86
+
And I set the params equal to "pick=id,type,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 Scorpio with the body equal to "response103ld-10.json"
89
89
@@ -101,7 +101,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Scorpio)
101
101
And I set the "Accept" header with the value "application/json"
102
102
And I set the params equal to "type=TemperatureSensor"
103
103
And I set the params equal to "options=keyValues"
104
-
And I set the params equal to "attrs=temperature"
104
+
And I set the params equal to "pick=id,type,temperature"
105
105
And I send a GET HTTP request to that url
106
106
Then I receive a HTTP "200" response code from Scorpio with the body equal to "response103ld-12.json"
107
107
@@ -111,7 +111,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Scorpio)
111
111
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/"
112
112
And I set the params equal to "id=urn:ngsi-ld:TemperatureSensor:001,urn:ngsi-ld:TemperatureSensor:002"
113
113
And I set the params equal to "options=keyValues"
114
-
And I set the params equal to "attrs=temperature"
114
+
And I set the params equal to "pick=id,type,temperature"
115
115
And I send a GET HTTP request to that url
116
116
Then I receive a HTTP "200" response code from Scorpio with the body equal to "response103ld-13.json"
Copy file name to clipboardExpand all lines: features/103.ngsild.CRUD_Operations_stellio.feature
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Stellio)
65
65
Scenario: 08 - Read an Attribute from a Data Entity
66
66
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""
67
67
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001"
68
-
And I set the params equal to "attrs=temperature"
68
+
And I set the params equal to "pick=id,type,temperature"
69
69
And I send a GET HTTP request to that url
70
70
Then I receive a HTTP "200" response code from Stellio with the body equal to "response103ld-08.json"
71
71
@@ -83,7 +83,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Stellio)
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
85
And I set the params equal to "options=keyValues"
86
-
And I set the params equal to "attrs=category,temperature"
86
+
And I set the params equal to "pick=id,type,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 Stellio with the body equal to "response103ld-10.json"
89
89
@@ -101,7 +101,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Stellio)
101
101
And I set the "Accept" header with the value "application/json"
102
102
And I set the params equal to "type=TemperatureSensor"
103
103
And I set the params equal to "options=keyValues"
104
-
And I set the params equal to "attrs=temperature"
104
+
And I set the params equal to "pick=id,type,temperature"
105
105
And I send a GET HTTP request to that url
106
106
Then I receive a HTTP "200" response code from Stellio with the body equal to "response103ld-12.json"
107
107
@@ -111,7 +111,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Stellio)
111
111
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/"
112
112
And I set the params equal to "id=urn:ngsi-ld:TemperatureSensor:001,urn:ngsi-ld:TemperatureSensor:002"
113
113
And I set the params equal to "options=keyValues"
114
-
And I set the params equal to "attrs=temperature"
114
+
And I set the params equal to "pick=id,type,temperature"
115
115
And I send a GET HTTP request to that url
116
116
Then I receive a HTTP "200" response code from Stellio with the body equal to "response103ld-13.json"
Scenario: 08 - Read an Attribute from a Data Entity
68
68
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\""
69
69
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001"
70
-
And I set the params equal to "attrs=temperature"
70
+
And I set the params equal to "pick=id,type,temperature"
71
71
And I set the params equal to "options=concise"
72
72
And I send a GET HTTP request to that url
73
73
Then I receive a HTTP "200" response code from Orion-LD with the body equal to "response104ld-08.json"
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/"
104
104
And I set the params equal to "type=TemperatureSensor"
105
105
And I set the params equal to "options=concise"
106
-
And I set the params equal to "attrs=temperature"
106
+
And I set the params equal to "pick=id,type,temperature"
107
107
And I send a GET HTTP request to that url
108
108
Then I receive a HTTP "200" response code from Orion-LD with the body equal to "response104ld-12.json"
109
109
110
110
Scenario: 13 - Filter Data Entities by ID
111
111
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""
112
112
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/"
113
113
And I set the params equal to "id=urn:ngsi-ld:TemperatureSensor:001,urn:ngsi-ld:TemperatureSensor:002"
114
-
And I set the params equal to "attrs=temperature"
114
+
And I set the params equal to "pick=id,type,temperature"
115
115
And I set the params equal to "options=concise"
116
116
And I send a GET HTTP request to that url
117
117
Then I receive a HTTP "200" response code from Orion-LD with the body equal to "response104ld-13.json"
Scenario: 08 - Read an Attribute from a Data Entity
66
66
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""
67
67
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001"
68
-
And I set the params equal to "attrs=temperature"
68
+
And I set the params equal to "pick=id,type,temperature"
69
69
And I set the params equal to "options=concise"
70
70
And I send a GET HTTP request to that url
71
71
Then I receive a HTTP "200" response code from Scorpio with the body equal to "response104ld-08.json"
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/"
102
102
And I set the params equal to "type=TemperatureSensor"
103
103
And I set the params equal to "options=concise"
104
-
And I set the params equal to "attrs=temperature"
104
+
And I set the params equal to "pick=id,type,temperature"
105
105
And I send a GET HTTP request to that url
106
106
Then I receive a HTTP "200" response code from Scorpio with the body equal to "response104ld-12.json"
107
107
108
108
Scenario: 13 - Filter Data Entities by ID
109
109
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""
110
110
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/"
111
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 "attrs=temperature"
112
+
And I set the params equal to "pick=id,type,temperature"
113
113
And I set the params equal to "options=concise"
114
114
And I send a GET HTTP request to that url
115
115
Then I receive a HTTP "200" response code from Scorpio with the body equal to "response104ld-13.json"
Scenario: 08 - Read an Attribute from a Data Entity
66
66
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\""
67
67
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001"
68
-
And I set the params equal to "attrs=temperature"
68
+
And I set the params equal to "pick=id,type,temperature"
69
69
And I set the params equal to "options=concise"
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 "response104ld-08.json"
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/"
102
102
And I set the params equal to "type=TemperatureSensor"
103
103
And I set the params equal to "options=concise"
104
-
And I set the params equal to "attrs=temperature"
104
+
And I set the params equal to "pick=id,type,temperature"
105
105
And I send a GET HTTP request to that url
106
106
Then I receive a HTTP "200" response code from Orion-LD with the body equal to "response104ld-12.json"
107
107
108
108
Scenario: 13 - Filter Data Entities by ID
109
109
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""
110
110
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/"
111
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 "attrs=temperature"
112
+
And I set the params equal to "pick=id,type,temperature"
113
113
And I set the params equal to "options=concise"
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 "response104ld-13.json"
0 commit comments