Skip to content

Commit a61fcfc

Browse files
author
Fernando López
committed
Update several features before creating the new release
1 parent 2fa6716 commit a61fcfc

28 files changed

Lines changed: 187 additions & 145 deletions

features/101.Getting_Started.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Feature: Test tutorial 101.Getting Started
55
git-clone: https://github.com/FIWARE/tutorials.Getting-Started.git
66
git-directory: /tmp/tutorials.Getting-Started
77
shell-commands: git checkout NGSI-v2 ; export $(cat .env | grep "#" -v); docker compose -p fiware up -d
8-
clean-shell-commands: docker compose -p fiware down
8+
clean-shell-commands: docker compose -p fiware down -v
99

1010
Background:
1111
Given I set the tutorial 101

features/102.Entity_Relationships.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Feature: Test tutorial 102.Entity_Relationships
4343
#
4444
# Request 3
4545
#
46-
Scenario: Obtain entity data by Id
46+
Scenario: Obtain entity data by Id 1
4747
When I send GET HTTP request to "http://localhost:1026/v2/entities/urn:ngsi-ld:Shelf:unit001/?type=Shelf&options=keyValues"
4848
Then I receive a HTTP "200" response code from Orion with the body equal to "response102-03.json"
4949

@@ -65,7 +65,7 @@ Feature: Test tutorial 102.Entity_Relationships
6565
#
6666
# Request 5
6767
#
68-
Scenario: Obtain entity data by Id
68+
Scenario: Obtain entity data by Id 2
6969
When I send GET HTTP request to "http://localhost:1026/v2/entities/urn:ngsi-ld:Shelf:unit001/?type=Shelf&options=keyValues"
7070
Then I receive a HTTP "200" response code from Orion with the body equal to "response102-05.json"
7171

@@ -112,12 +112,12 @@ Scenario Outline: Creating many-to-many Relationships
112112
#
113113
# Requests 10 and 11
114114
#
115-
Scenario: Reading from a bridge table
115+
Scenario: Reading from a bridge table Store 001
116116
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"
117117
Then I receive a HTTP "200" response code from Orion with the body equal to "response102-10.json"
118118

119119

120-
Scenario: Reading from a bridge table
120+
Scenario: Reading from a bridge table Product 001
121121
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"
122122
Then I receive a HTTP "200" response code from Orion with the body equal to "response102-11.json"
123123

features/103.CRUD-Operations.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Feature: Test tutorial 103.CRUD-Operations
4343
# Note: In the tutorial the body response for this request is missing, so the test can only check if the code is 200
4444
# and not if the new Product is created as expected.
4545
#
46-
Scenario: Obtain entity data by Id
46+
Scenario: Obtain entity data by Id 1
4747
When I send GET HTTP request no body to assert to "http://localhost:1026/v2/entities/urn:ngsi-ld:Product:010?type=Product"
4848
Then I receive a HTTP "200" response code
4949

@@ -70,7 +70,7 @@ Feature: Test tutorial 103.CRUD-Operations
7070
# Note: In the tutorial the body response for this request is missing, so the test can only check if the code is 200
7171
# and not if the new attribute as been added to the intended Product as expected.
7272
#
73-
Scenario: Obtain entity data by Id
73+
Scenario: Obtain entity data by Id 2
7474
When I send GET HTTP request no body to assert to "http://localhost:1026/v2/entities/urn:ngsi-ld:Product:001?type=Product"
7575
Then I receive a HTTP "200" response code
7676

features/103.ngsild.CRUD_Operations_orionld.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Orion-LD)
6565
Scenario: 08 - Read an Attribute from a Data Entity
6666
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""
6767
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"
6969
And I send a GET HTTP request to that url
7070
Then I receive a HTTP "200" response code from Orion-LD with the body equal to "response103ld-08.json"
7171

@@ -83,7 +83,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Orion-LD)
8383
And I set the "Accept" header with the value "application/json"
8484
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001"
8585
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"
8787
And I send a GET HTTP request to that url
8888
Then I receive a HTTP "200" response code from Orion-LD with the body equal to "response103ld-10.json"
8989

@@ -101,7 +101,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Orion-LD)
101101
And I set the "Accept" header with the value "application/json"
102102
And I set the params equal to "type=TemperatureSensor"
103103
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"
105105
And I send a GET HTTP request to that url
106106
Then I receive a HTTP "200" response code from Orion-LD with the body equal to "response103ld-12.json"
107107

@@ -111,7 +111,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Orion-LD)
111111
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/"
112112
And I set the params equal to "id=urn:ngsi-ld:TemperatureSensor:001,urn:ngsi-ld:TemperatureSensor:002"
113113
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"
115115
And I send a GET HTTP request to that url
116116
Then I receive a HTTP "200" response code from Orion-LD with the body equal to "response103ld-13.json"
117117

features/103.ngsild.CRUD_Operations_scorpio.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Scorpio)
6565
Scenario: 08 - Read an Attribute from a Data Entity
6666
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""
6767
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"
6969
And I send a GET HTTP request to that url
7070
Then I receive a HTTP "200" response code from Scorpio with the body equal to "response103ld-08.json"
7171

@@ -83,7 +83,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Scorpio)
8383
And I set the "Accept" header with the value "application/json"
8484
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001"
8585
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"
8787
And I send a GET HTTP request to that url
8888
Then I receive a HTTP "200" response code from Scorpio with the body equal to "response103ld-10.json"
8989

@@ -101,7 +101,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Scorpio)
101101
And I set the "Accept" header with the value "application/json"
102102
And I set the params equal to "type=TemperatureSensor"
103103
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"
105105
And I send a GET HTTP request to that url
106106
Then I receive a HTTP "200" response code from Scorpio with the body equal to "response103ld-12.json"
107107

@@ -111,7 +111,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Scorpio)
111111
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/"
112112
And I set the params equal to "id=urn:ngsi-ld:TemperatureSensor:001,urn:ngsi-ld:TemperatureSensor:002"
113113
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"
115115
And I send a GET HTTP request to that url
116116
Then I receive a HTTP "200" response code from Scorpio with the body equal to "response103ld-13.json"
117117

features/103.ngsild.CRUD_Operations_stellio.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Stellio)
6565
Scenario: 08 - Read an Attribute from a Data Entity
6666
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""
6767
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"
6969
And I send a GET HTTP request to that url
7070
Then I receive a HTTP "200" response code from Stellio with the body equal to "response103ld-08.json"
7171

@@ -83,7 +83,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Stellio)
8383
And I set the "Accept" header with the value "application/json"
8484
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001"
8585
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"
8787
And I send a GET HTTP request to that url
8888
Then I receive a HTTP "200" response code from Stellio with the body equal to "response103ld-10.json"
8989

@@ -101,7 +101,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Stellio)
101101
And I set the "Accept" header with the value "application/json"
102102
And I set the params equal to "type=TemperatureSensor"
103103
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"
105105
And I send a GET HTTP request to that url
106106
Then I receive a HTTP "200" response code from Stellio with the body equal to "response103ld-12.json"
107107

@@ -111,7 +111,7 @@ Feature: Test tutorial 103.NGSI-LD.CRUD Operations (Stellio)
111111
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/"
112112
And I set the params equal to "id=urn:ngsi-ld:TemperatureSensor:001,urn:ngsi-ld:TemperatureSensor:002"
113113
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"
115115
And I send a GET HTTP request to that url
116116
Then I receive a HTTP "200" response code from Stellio with the body equal to "response103ld-13.json"
117117

features/104.ngsild.Concise_orionld.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Feature: Test tutorial 104.NGSI-LD.Concise NGSI-LD Payloads (Orion-LD)
6767
Scenario: 08 - Read an Attribute from a Data Entity
6868
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\""
6969
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"
7171
And I set the params equal to "options=concise"
7272
And I send a GET HTTP request to that url
7373
Then I receive a HTTP "200" response code from Orion-LD with the body equal to "response104ld-08.json"
@@ -85,7 +85,7 @@ Feature: Test tutorial 104.NGSI-LD.Concise NGSI-LD Payloads (Orion-LD)
8585
And I set the "Accept" header with the value "application/json"
8686
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001"
8787
And I set the params equal to "options=concise"
88-
And I set the params equal to "attrs=category,temperature"
88+
And I set the params equal to "pick=id,type,category,temperature"
8989
And I send a GET HTTP request to that url
9090
Then I receive a HTTP "200" response code from Orion-LD with the body equal to "response104ld-10.json"
9191

@@ -103,15 +103,15 @@ Feature: Test tutorial 104.NGSI-LD.Concise NGSI-LD Payloads (Orion-LD)
103103
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/"
104104
And I set the params equal to "type=TemperatureSensor"
105105
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"
107107
And I send a GET HTTP request to that url
108108
Then I receive a HTTP "200" response code from Orion-LD with the body equal to "response104ld-12.json"
109109

110110
Scenario: 13 - Filter Data Entities by ID
111111
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""
112112
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/"
113113
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"
115115
And I set the params equal to "options=concise"
116116
And I send a GET HTTP request to that url
117117
Then I receive a HTTP "200" response code from Orion-LD with the body equal to "response104ld-13.json"

features/104.ngsild.Concise_scorpio.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Feature: Test tutorial 104.NGSI-LD.Concise NGSI-LD Payloads (Scorpio)
6565
Scenario: 08 - Read an Attribute from a Data Entity
6666
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""
6767
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"
6969
And I set the params equal to "options=concise"
7070
And I send a GET HTTP request to that url
7171
Then I receive a HTTP "200" response code from Scorpio with the body equal to "response104ld-08.json"
@@ -83,7 +83,7 @@ Feature: Test tutorial 104.NGSI-LD.Concise NGSI-LD Payloads (Scorpio)
8383
And I set the "Accept" header with the value "application/json"
8484
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001"
8585
And I set the params equal to "options=concise"
86-
And I set the params equal to "attrs=category,temperature"
86+
And I set the params equal to "pick=id,type,category,temperature"
8787
And I send a GET HTTP request to that url
8888
Then I receive a HTTP "200" response code from Scorpio with the body equal to "response104ld-10.json"
8989

@@ -101,15 +101,15 @@ Feature: Test tutorial 104.NGSI-LD.Concise NGSI-LD Payloads (Scorpio)
101101
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/"
102102
And I set the params equal to "type=TemperatureSensor"
103103
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"
105105
And I send a GET HTTP request to that url
106106
Then I receive a HTTP "200" response code from Scorpio with the body equal to "response104ld-12.json"
107107

108108
Scenario: 13 - Filter Data Entities by ID
109109
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""
110110
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/"
111111
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"
113113
And I set the params equal to "options=concise"
114114
And I send a GET HTTP request to that url
115115
Then I receive a HTTP "200" response code from Scorpio with the body equal to "response104ld-13.json"

features/104.ngsild.Concise_stellio.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Feature: Test tutorial 104.NGSI-LD.Concise NGSI-LD Payloads (Orion-LD)
6565
Scenario: 08 - Read an Attribute from a Data Entity
6666
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\""
6767
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"
6969
And I set the params equal to "options=concise"
7070
And I send a GET HTTP request to that url
7171
Then I receive a HTTP "200" response code from Orion-LD with the body equal to "response104ld-08.json"
@@ -83,7 +83,7 @@ Feature: Test tutorial 104.NGSI-LD.Concise NGSI-LD Payloads (Orion-LD)
8383
And I set the "Accept" header with the value "application/json"
8484
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001"
8585
And I set the params equal to "options=concise"
86-
And I set the params equal to "attrs=category,temperature"
86+
And I set the params equal to "pick=id,type,category,temperature"
8787
And I send a GET HTTP request to that url
8888
Then I receive a HTTP "200" response code from Orion-LD with the body equal to "response104ld-10.json"
8989

@@ -101,15 +101,15 @@ Feature: Test tutorial 104.NGSI-LD.Concise NGSI-LD Payloads (Orion-LD)
101101
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/"
102102
And I set the params equal to "type=TemperatureSensor"
103103
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"
105105
And I send a GET HTTP request to that url
106106
Then I receive a HTTP "200" response code from Orion-LD with the body equal to "response104ld-12.json"
107107

108108
Scenario: 13 - Filter Data Entities by ID
109109
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""
110110
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities/"
111111
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"
113113
And I set the params equal to "options=concise"
114114
And I send a GET HTTP request to that url
115115
Then I receive a HTTP "200" response code from Orion-LD with the body equal to "response104ld-13.json"

0 commit comments

Comments
 (0)