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/601.ngsild.Intro_Scorpio.feature
+10-7Lines changed: 10 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@ Feature: test tutorial 601 Introduction to Linked Data (Scorpio)
60
60
When I prepare a GET HTTP request for "obtaining entity data by Id" to "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Building:store001"
61
61
And I set header Accept to application/ld+json
62
62
And I perform the request
63
-
Then I receive a HTTP "200" response code from Scorpio with the body equal to "response601-05.json"
63
+
Then I receive a HTTP "200" response code from Scorpio with the body equal to "response601-05-array.json"
64
64
65
65
66
66
#
@@ -74,7 +74,8 @@ Feature: test tutorial 601 Introduction to Linked Data (Scorpio)
74
74
#
75
75
Scenario: [6] OBTAIN ENTITY DATA BY TYPE
76
76
When I send GET HTTP request to Scorpio at "http://localhost:1026/ngsi-ld/v1/entities"
77
-
And With header 'Link$<https://smartdatamodels.org/context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/json"'
77
+
And With header 'Link$<https://smart-data-models.github.io/dataModel.Building/context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/json"'
78
+
And I set header Accept to application/ld+json
78
79
And With parameters "type$Building$options$keyValues"
79
80
Then I receive from Scorpio "200" response code with the body equal to "response601-06.json"
80
81
@@ -88,7 +89,8 @@ Feature: test tutorial 601 Introduction to Linked Data (Scorpio)
88
89
#
89
90
Scenario: [7] FILTER CONTEXT DATA BY COMPARING THE VALUES OF AN ATTRIBUTE
90
91
When I send GET HTTP request to Scorpio at "http://localhost:1026/ngsi-ld/v1/entities"
91
-
And With header 'Link$<https://smartdatamodels.org/context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/json"'
92
+
And With header 'Link$<https://smart-data-models.github.io/dataModel.Building/context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/json"'
93
+
And I set header Accept to application/ld+json
92
94
And With parameters "type$Building$q$name=="Checkpoint Markt"$options$keyValues"
93
95
Then I receive from Scorpio "200" response code with the body equal to "response601-07.json"
94
96
@@ -102,7 +104,7 @@ Feature: test tutorial 601 Introduction to Linked Data (Scorpio)
102
104
#
103
105
Scenario: [8] FILTER CONTEXT DATA BY COMPARING THE VALUES OF AN ATTRIBUTE IN AN ARRAY
104
106
When I send GET HTTP request to Scorpio at "http://localhost:1026/ngsi-ld/v1/entities"
105
-
And With header 'Link$<https://smartdatamodels.org/context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/json"'
107
+
And With header 'Link$<https://smart-data-models.github.io/dataModel.Building/context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/json"'
106
108
And With parameters "type$Building$q$category=="commercial","office"$options$keyValues"
107
109
Then I receive from Scorpio "200" response code with the body equal to "response601-08.json"
108
110
@@ -116,7 +118,8 @@ Feature: test tutorial 601 Introduction to Linked Data (Scorpio)
116
118
#
117
119
Scenario: [9] FILTER CONTEXT DATA BY COMPARING THE VALUES OF A SUB-ATTRIBUTE
118
120
When I send GET HTTP request to Scorpio at "http://localhost:1026/ngsi-ld/v1/entities"
119
-
And With header 'Link$<https://smartdatamodels.org/context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/json"'
121
+
And With header 'Link$<https://smart-data-models.github.io/dataModel.Building/context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/json"'
122
+
And I set header Accept to application/ld+json
120
123
And With parameters "type$Building$q$address[addressLocality]=="Kreuzberg"$options$keyValues"
121
124
Then I receive from Scorpio "200" response code with the body equal to "response601-09.json"
122
125
@@ -130,7 +133,7 @@ Feature: test tutorial 601 Introduction to Linked Data (Scorpio)
130
133
#
131
134
Scenario: [10] FILTER CONTEXT DATA BY QUERYING METADATA
132
135
When I send GET HTTP request to Scorpio at "http://localhost:1026/ngsi-ld/v1/entities"
133
-
And With header 'Link$<https://smartdatamodels.org/context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/json"'
136
+
And With header 'Link$<https://smart-data-models.github.io/dataModel.Building/context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/json"'
134
137
And With parameters "type$Building$q$address.verified==true$options$keyValues"
135
138
Then I receive from Scorpio "200" response code with the body equal to "response601-10.json"
136
139
@@ -144,6 +147,6 @@ Feature: test tutorial 601 Introduction to Linked Data (Scorpio)
144
147
#
145
148
Scenario: [11] FILTER CONTEXT DATA BY COMPARING THE VALUES OF A GEO:JSON ATTRIBUTE
146
149
When I send GET HTTP request to Scorpio at "http://localhost:1026/ngsi-ld/v1/entities"
147
-
And With header 'Link$<https://smartdatamodels.org/context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/json"'
150
+
And With header 'Link$<https://smart-data-models.github.io/dataModel.Building/context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/json"'
148
151
And With parameters "type$Building$geometry$Point$coordinates$[13.3777,52.5162]$georel$near;maxDistance==2000$options$keyValues"
149
152
Then I receive from Scorpio "200" response code with the body equal to "response601-11.json"
Copy file name to clipboardExpand all lines: features/601.ngsild.Intro_Stellio.feature
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ Feature: test tutorial 601 Introduction to Linked Data (Stellio)
46
46
And I set header Accept to application/ld+json
47
47
And the params equal to "type=https://smartdatamodels.org/dataModel.Building/Building"
48
48
And I perform the request
49
-
Then I receive a HTTP "200" response code from Stellio with the body equal to "response601-04-array.json"
49
+
Then I receive a HTTP "200" response code from Stellio with the body equal to "response601-04.json"
50
50
51
51
52
52
Scenario: [5] OBTAIN ENTITY DATA BY ID
@@ -77,7 +77,7 @@ Feature: test tutorial 601 Introduction to Linked Data (Stellio)
77
77
Scenario: [8] FILTER CONTEXT DATA BY COMPARING THE VALUES OF AN ATTRIBUTE IN AN ARRAY
78
78
When I set the "Accept" header with the value "application/ld+json"
79
79
And I set the "Link" header with the value "<https://smart-data-models.github.io/dataModel.Building/context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json""
80
-
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities?type=Building&q=category==%22commercial%22,%22office%22&options=keyValues"
80
+
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities?type=Building&q=category==%22commercial%22,%22office%22&options=keyValues&expandValues=category"
81
81
And I send a GET HTTP request to that url
82
82
Then I receive from Stellio "200" response code with the body equal to "response601-08.json"
Copy file name to clipboardExpand all lines: features/602.ngsild.RelationshipsAndDataModels_Scorpio.feature
+14-14Lines changed: 14 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ Feature: test tutorial 602 Linked Data: Relationships and Data Models (Scorpio)
27
27
# 2) attribute 'name' expected first, instead it is second after attribute 'https://schema.org/address'
28
28
#
29
29
Scenario: [1] DISPLAY ALL entities of a given type (BUILDINGS)
30
-
When I send GET HTTP request to Scorpio at "http://localhost:9090/ngsi-ld/v1/entities"
30
+
When I send GET HTTP request to Scorpio at "http://localhost:1026/ngsi-ld/v1/entities"
31
31
And With header 'NA$NA'
32
32
And With parameters "type$https://uri.fiware.org/ns/data-models#Building$options$keyValues"
33
33
Then I receive from Scorpio "200" response code with the body equal to "response602-01.json"
@@ -39,7 +39,7 @@ Feature: test tutorial 602 Linked Data: Relationships and Data Models (Scorpio)
39
39
# 1) attribute 'name' expected first, instead it is last
40
40
#
41
41
Scenario: [2] DISPLAY ALL entities of a given type (PRODUCT)
42
-
When I send GET HTTP request to Scorpio at "http://localhost:9090/ngsi-ld/v1/entities"
42
+
When I send GET HTTP request to Scorpio at "http://localhost:1026/ngsi-ld/v1/entities"
43
43
And With header 'Link$<https://fiware.github.io/tutorials.Step-by-Step/tutorials-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
44
44
And With parameters "type$https://fiware.github.io/tutorials.Step-by-Step/schema/Product$options$keyValues"
45
45
Then I receive from Scorpio "200" response code with the body equal to "response602-02.json"
@@ -51,7 +51,7 @@ Feature: test tutorial 602 Linked Data: Relationships and Data Models (Scorpio)
51
51
# 1) attribute 'name' expected first, instead it is second after 'maxCapacity' attribute
52
52
#
53
53
Scenario: [3] DISPLAY ALL entities of a given type (SHELF)
54
-
When I send GET HTTP request to Scorpio at "http://localhost:9090/ngsi-ld/v1/entities"
54
+
When I send GET HTTP request to Scorpio at "http://localhost:1026/ngsi-ld/v1/entities"
55
55
And With header 'Link$<https://fiware.github.io/tutorials.Step-by-Step/tutorials-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
56
56
And With parameters "type$Shelf$options$keyValues"
57
57
Then I receive from Scorpio "200" response code with the body equal to "response602-03.json"
@@ -63,7 +63,7 @@ Feature: test tutorial 602 Linked Data: Relationships and Data Models (Scorpio)
63
63
# 1) attributes order completely mixed-up. Expected: name, maxCapacity, location, Current: location, maxCapacity, name
64
64
#
65
65
Scenario: [4] OBTAIN SHELF INFORMATION
66
-
When I send GET HTTP request to Scorpio at "http://localhost:9090/ngsi-ld/v1/entities/urn:ngsi-ld:Shelf:unit001/"
66
+
When I send GET HTTP request to Scorpio at "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Shelf:unit001/"
67
67
And With header 'Link$<https://fiware.github.io/tutorials.Step-by-Step/tutorials-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
68
68
And With parameters "options$keyValues"
69
69
Then I receive from Scorpio "200" response code with the body equal to "response602-04.json"
@@ -73,7 +73,7 @@ Feature: test tutorial 602 Linked Data: Relationships and Data Models (Scorpio)
73
73
# Request 5
74
74
#
75
75
Scenario Outline: [5] ADDING 1-1 RELATIONSHIPS
76
-
When I send POST HTTP request to Scorpio at "http://localhost:9090/ngsi-ld/v1/entities/urn:ngsi-ld:Shelf:unit001/attrs"
76
+
When I send POST HTTP request to Scorpio at "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Shelf:unit001/attrs"
77
77
# And With the post header "fiware-servicepath": " /"
78
78
And With the post header "NA": "NA"
79
79
And With the body request described in an Scorpio file "<file>"
@@ -100,7 +100,7 @@ Feature: test tutorial 602 Linked Data: Relationships and Data Models (Scorpio)
100
100
# 4) attributes requestedBy, installedBy, statusOfWork miss the indication of the schema (https://fiware.github.io/tutorials.Step-by-Step/schema/)
101
101
#
102
102
Scenario: [6] OBTAIN THE UPDATED SHELF
103
-
When I send GET HTTP request to "http://localhost:9090/ngsi-ld/v1/entities/urn:ngsi-ld:Shelf:unit001"
103
+
When I send GET HTTP request to "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Shelf:unit001"
104
104
Then I receive a HTTP "200" response code from Scorpio with the body equal to "response602-06.json"
105
105
106
106
@@ -112,7 +112,7 @@ Feature: test tutorial 602 Linked Data: Relationships and Data Models (Scorpio)
Scenario: [7] FIND THE STORE IN WHICH A SPECIFIC SHELF IS LOCATED
115
-
When I send GET HTTP request to Scorpio at "http://localhost:9090/ngsi-ld/v1/entities/urn:ngsi-ld:Shelf:unit001/"
115
+
When I send GET HTTP request to Scorpio at "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Shelf:unit001/"
116
116
And With header 'Link$<https://fiware.github.io/tutorials.Step-by-Step/tutorials-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
117
117
And With parameters "attrs$locatedIn$options$keyValues"
118
118
Then I receive from Scorpio "200" response code with the body equal to "response602-07.json"
@@ -122,7 +122,7 @@ Feature: test tutorial 602 Linked Data: Relationships and Data Models (Scorpio)
122
122
# Request 8
123
123
#
124
124
Scenario: [8] FIND THE IDS OF ALL SHELF UNITS IN A STORE
125
-
When I send GET HTTP request to Scorpio at "http://localhost:9090/ngsi-ld/v1/entities/"
125
+
When I send GET HTTP request to Scorpio at "http://localhost:1026/ngsi-ld/v1/entities/"
126
126
And With header 'Accept$application/json$Link$<https://fiware.github.io/tutorials.Step-by-Step/tutorials-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
127
127
And With parameters "type$Shelf$options$keyValues$attrs$locatedIn"
128
128
Then I receive from Scorpio "200" response code with the body equal to "response602-08.json"
@@ -132,7 +132,7 @@ Feature: test tutorial 602 Linked Data: Relationships and Data Models (Scorpio)
132
132
# Request 9
133
133
#
134
134
Scenario Outline: [9] ADDING 1-MANY RELATIONSHIP
135
-
When I send POST HTTP request to Scorpio at "http://localhost:9090/ngsi-ld/v1/entities/urn:ngsi-ld:Building:store001/attrs"
135
+
When I send POST HTTP request to Scorpio at "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Building:store001/attrs"
136
136
And With the post header "NA": "NA"
137
137
And With the body request described in an Scorpio file "<file>"
138
138
Then I receive a HTTP response with the following Scorpio data
@@ -148,7 +148,7 @@ Feature: test tutorial 602 Linked Data: Relationships and Data Models (Scorpio)
148
148
# Request 10
149
149
#
150
150
Scenario: [10] FINDING ALL SHELF UNITS FOUND WITHIN A STORE
151
-
When I send GET HTTP request to Scorpio at "http://localhost:9090/ngsi-ld/v1/entities/urn:ngsi-ld:Building:store001"
151
+
When I send GET HTTP request to Scorpio at "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Building:store001"
152
152
And With header 'Accept$application/json$Link$<https://fiware.github.io/tutorials.Step-by-Step/tutorials-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
153
153
And With parameters "options$keyValues$attrs$furniture"
154
154
Then I receive from Scorpio "200" response code with the body equal to "response602-10.json"
@@ -158,7 +158,7 @@ Feature: test tutorial 602 Linked Data: Relationships and Data Models (Scorpio)
When I send POST HTTP request to Scorpio at "http://localhost:9090/ngsi-ld/v1/entities/"
161
+
When I send POST HTTP request to Scorpio at "http://localhost:1026/ngsi-ld/v1/entities/"
162
162
And With the post header "NA": "NA"
163
163
And With the body request described in an Scorpio file "<file>"
164
164
Then I receive a HTTP response with the following Scorpio data
@@ -174,7 +174,7 @@ Feature: test tutorial 602 Linked Data: Relationships and Data Models (Scorpio)
174
174
# Request 12
175
175
#
176
176
Scenario: [12] FINDING ALL SHELF UNITS FOUND WITHIN A STORE
177
-
When I send GET HTTP request to Scorpio at "http://localhost:9090/ngsi-ld/v1/entities/"
177
+
When I send GET HTTP request to Scorpio at "http://localhost:1026/ngsi-ld/v1/entities/"
178
178
And With header 'Accept$application/json$Link$<https://fiware.github.io/tutorials.Step-by-Step/tutorials-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
179
179
And With parameters "type$StockOrder$q$orderedProduct=="urn:ngsi-ld:Product:001"$attrs$requestedFor$options$keyValues"
180
180
Then I receive from Scorpio "200" response code with the body equal to "response602-12.json"
@@ -184,7 +184,7 @@ Feature: test tutorial 602 Linked Data: Relationships and Data Models (Scorpio)
184
184
# Request 13
185
185
#
186
186
Scenario: [13] FIND ALL PRODUCTS SOLD IN A STORE
187
-
When I send GET HTTP request to Scorpio at "http://localhost:9090/ngsi-ld/v1/entities/"
187
+
When I send GET HTTP request to Scorpio at "http://localhost:1026/ngsi-ld/v1/entities/"
188
188
And With header 'Accept$application/json$Link$<https://fiware.github.io/tutorials.Step-by-Step/tutorials-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
189
189
And With parameters "type$StockOrder$q$requestedFor=="urn:ngsi-ld:Building:store001"$attrs$orderedProduct$options$keyValues"
190
190
Then I receive from Scorpio "200" response code with the body equal to "response602-13.json"
@@ -200,7 +200,7 @@ Feature: test tutorial 602 Linked Data: Relationships and Data Models (Scorpio)
200
200
# current attributes order: type, requestedFor, requestedBy, orderedProduct, stockCount, orderDate
201
201
#
202
202
Scenario: [14] OBTAIN STOCK ORDER
203
-
When I send GET HTTP request to Scorpio at "http://localhost:9090/ngsi-ld/v1/entities/urn:ngsi-ld:StockOrder:001"
203
+
When I send GET HTTP request to Scorpio at "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:StockOrder:001"
204
204
And With header 'NA$NA'
205
205
And With parameters "options$keyValues"
206
206
Then I receive from Scorpio "200" response code with the body equal to "response602-14.json"
0 commit comments