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
# current 'https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld'. In this respect
26
-
# the text itself of the tutorial shall be corrected
27
-
# 2) attribute 'name' expected first, instead it is second after attribute 'https://schema.org/address'
28
-
#
29
21
Scenario: [1] DISPLAY ALL entities of a given type (BUILDINGS)
30
-
When I send GET HTTP request to Stellio at "http://localhost:8080/ngsi-ld/v1/entities"
31
-
And With header 'NA$NA'
32
-
And With parameters "type$https://uri.fiware.org/ns/data-models#Building$options$keyValues"
22
+
When I prepare a GET HTTP request for "obtaining an entity data" to "http://localhost:8080/ngsi-ld/v1/entities"
23
+
And I set header Accept to application/ld+json
24
+
And the params equal to "type=https://uri.fiware.org/ns/data-models#Building"
25
+
And the params equal to "options=keyValues"
26
+
And I perform the request
33
27
Then I receive from Stellio "200" response code with the body equal to "response602-01.json"
34
28
35
29
36
-
#
37
-
# Request 2
38
-
# Note: The expected body in the Tutorial has the following differences with respect to the current Stellio version:
39
-
# 1) attribute 'name' expected first, instead it is last
40
-
#
41
30
Scenario: [2] DISPLAY ALL entities of a given type (PRODUCT)
42
-
When I send GET HTTP request to Stellio at "http://localhost:8080/ngsi-ld/v1/entities"
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
-
And With parameters "type$https://fiware.github.io/tutorials.Step-by-Step/schema/Product$options$keyValues"
31
+
When I prepare a GET HTTP request for "obtaining entities data" to "http://localhost:8080/ngsi-ld/v1/entities"
32
+
And I set header Link to <http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"
33
+
And the params equal to "type=https://fiware.github.io/tutorials.Step-by-Step/schema/Product"
34
+
And the params equal to "options=keyValues"
35
+
And I perform the request
45
36
Then I receive from Stellio "200" response code with the body equal to "response602-02.json"
46
37
47
38
48
-
#
49
-
# Request 3
50
-
# Note: The expected body in the Tutorial has the following differences with respect to the current Stellio version:
51
-
# 1) attribute 'name' expected first, instead it is second after 'maxCapacity' attribute
52
-
#
53
39
Scenario: [3] DISPLAY ALL entities of a given type (SHELF)
54
-
When I send GET HTTP request to Stellio at "http://localhost:8080/ngsi-ld/v1/entities"
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
-
And With parameters "type$Shelf$options$keyValues"
40
+
When I prepare a GET HTTP request for "obtaining entities data" to "http://localhost:8080/ngsi-ld/v1/entities"
41
+
And I set header Link to <http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"
42
+
And the params equal to "type=Shelf"
43
+
And the params equal to "options=keyValues"
44
+
And I perform the request
57
45
Then I receive from Stellio "200" response code with the body equal to "response602-03.json"
58
46
59
47
60
-
#
61
-
# Request 4
62
-
# Note: The expected body in the Tutorial has the following differences with respect to the current Stellio version:
63
-
# 1) attributes order completely mixed-up. Expected: name, maxCapacity, location, Current: location, maxCapacity, name
64
-
#
65
48
Scenario: [4] OBTAIN SHELF INFORMATION
66
-
When I send GET HTTP request to Stellio at "http://localhost:8080/ngsi-ld/v1/entities/urn:ngsi-ld:Shelf:unit001/"
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
-
And With parameters "options$keyValues"
49
+
When I prepare a GET HTTP request for "obtaining an entity data" to "http://localhost:8080/ngsi-ld/v1/entities/urn:ngsi-ld:Shelf:unit001"
50
+
And I set header Link to <http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"
51
+
And the params equal to "options=keyValues"
52
+
And I perform the request
69
53
Then I receive from Stellio "200" response code with the body equal to "response602-04.json"
70
54
71
55
72
56
#
73
57
# Request 5
74
58
#
75
59
Scenario Outline: [5] ADDING 1-1 RELATIONSHIPS
76
-
When I send POST HTTP request to Stellio at"http://localhost:8080/ngsi-ld/v1/entities/urn:ngsi-ld:Shelf:unit001/attrs"
77
-
# And With the post header "fiware-servicepath": " /"
78
-
And With the post header "NA": "NA"
79
-
And With the body request described in an Stellio file "<file>"
80
-
Then I receive a HTTP response with the following Stellio data
Scenario: [7] FIND THE STORE IN WHICH A SPECIFIC SHELF IS LOCATED
115
-
When I send GET HTTP request to Stellio at "http://localhost:8080/ngsi-ld/v1/entities/urn:ngsi-ld:Shelf:unit001/"
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
-
And With parameters "attrs$locatedIn$options$keyValues"
79
+
When I prepare a GET HTTP request for "obtaining an entity data" to "http://localhost:8080/ngsi-ld/v1/entities/urn:ngsi-ld:Shelf:unit001"
80
+
And I set header Link to <http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"
81
+
And I set header Accept to application/ld+json
82
+
And the params equal to "attrs=locatedIn"
83
+
And the params equal to "options=keyValues"
84
+
And I perform the request
118
85
Then I receive from Stellio "200" response code with the body equal to "response602-07.json"
119
86
120
87
@@ -132,12 +99,13 @@ Feature: test tutorial 602 Linked Data: Relationships and Data Models (Stellio)
132
99
# Request 9
133
100
#
134
101
Scenario Outline: [9] ADDING 1-MANY RELATIONSHIP
135
-
When I send POST HTTP request to Stellio at "http://localhost:8080/ngsi-ld/v1/entities/urn:ngsi-ld:Building:store001/attrs"
136
-
And With the post header "NA": "NA"
137
-
And With the body request described in an Stellio file "<file>"
138
-
Then I receive a HTTP response with the following Stellio data
0 commit comments