Skip to content

Commit 4260b44

Browse files
author
Fernando López Aguilar
committed
Update initial XACML tutorial and correct some problems in 101 and 102 tutorial of NGSI-v2
1 parent a5ce6ca commit 4260b44

20 files changed

+260
-265
lines changed

features/101.Getting_Started.feature

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Feature: test tutorial 101.Getting Started
44
url: https://fiware-tutorials.readthedocs.io/en/latest/getting-started.html
55
git-clone: https://github.com/FIWARE/tutorials.Getting-Started.git
66
git-directory: /tmp/tutorials.Getting-Started
7-
shell-commands: git checkout NGSI-v2 ; export $(cat .env | grep "#" -v); docker compose up -d
8-
clean-shell-commands: docker compose down
7+
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
99

1010
Background:
1111
Given I set the tutorial 101
@@ -14,8 +14,7 @@ Feature: test tutorial 101.Getting Started
1414
Scenario: Checking the service health
1515
When I wait "5" seconds
1616
When I send GET HTTP request to "http://localhost:1026/version"
17-
Then I receive a HTTP "200" response code from Orion with the body equal to "response101-01.json"
18-
17+
Then I receive a HTTP "200" response code from Orion with the body "response101-01.json" and exclusions "response101-01.excludes"
1918

2019
Scenario Outline: Creating Context Data
2120
When The content-type header key equal to "application/json"

features/102.Entity_Relationships.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Feature: test tutorial 102.Entity_Relationships
2121
Scenario: Checking the service health
2222
#When I wait "5" seconds
2323
When I send GET HTTP request to "http://localhost:1026/version"
24-
Then I receive a HTTP "200" response code from Orion with the body equal to "response101-01.json"
24+
Then I receive a HTTP "200" response code from Orion with the body "response102-01.json" and exclusions "response102-01.excludes"
2525

2626

2727
#

features/405.XACML_Rules-based_Permissions.feature

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,22 @@ Feature: Test tutorial 405.XACML Rules-based Permissions
1313
When I set the "Accept" header with the value "application/xml"
1414
And I set the url to "http://localhost:8080/authzforce-ce/version"
1515
And I send a GET HTTP request to that url
16-
Then I receive a HTTP "200" response code from AuthZForce with the body equal to "response405-01.xml"
16+
Then I receive a HTTP "200" response code from AuthZForce with the body equal to "response405-01.json"
1717

1818
Scenario: 02 - AuthZForce - List all domains
1919
When I set the url to "http://localhost:8080/authzforce-ce/domains"
2020
And I send a GET HTTP request to that url
21-
Then I receive a HTTP "200" response code from AuthZForce with the body equal to "response405-02.xml"
21+
Then I receive a HTTP "200" response code from AuthZForce with the body equal to "response405-02.json"
2222

2323
Scenario: 03 - AuthZForce - Read a single domain
2424
When I set the "AuthZForce" domains url with the "domainId"
2525
And I send a GET HTTP request to that url
26-
Then I receive a HTTP "200" response code from AuthZForce with the body equal to "response405-03.xml"
26+
Then I receive a HTTP "200" response code from AuthZForce with the body equal to "response405-03.json"
2727

28-
Scenario: 04 - AuthZForce - List all policysetc available within a domain
28+
Scenario: 04 - AuthZForce - List all PolicySets available within a domain
2929
When I set the "AuthZForce" pap policies url with the "domainId"
3030
And I send a GET HTTP request to that url
31-
Then I receive a HTTP "200" response code from AuthZForce with the body equal to "response405-04.xml"
31+
Then I receive a HTTP "200" response code from AuthZForce with the body equal to "response405-04.json"
3232

3333
Scenario: 05 - AuthZForce - List the available revisions of a policyset
3434
When I set the "AuthZForce" a pap policy set url with the "domainId" and "policyId"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
root['orion']['version']
2+
root['orion']['git_hash']
3+
root['orion']['compile_time']
4+
root['orion']['release_date']
5+
root['orion']['doc']
6+
root['orion']['uptime']
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
root['orion']['version']
2+
root['orion']['git_hash']
3+
root['orion']['compile_time']
4+
root['orion']['release_date']
5+
root['orion']['doc']
6+
root['orion']['uptime']
7+
root['orion']['libversions']

features/data/102.Entity_Relationships/response101-01.json renamed to features/data/102.Entity_Relationships/response102-01.json

File renamed without changes.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"doc": true,
3+
"name": "AuthzForce CE Server",
4+
"release_date": true,
5+
"uptime": true,
6+
"version": true
7+
}

features/data/405.XACML_Permissions/response405-01.xml

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"domainId": true
3+
}

features/data/405.XACML_Permissions/response405-02.xml

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)