-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
476 changed files
with
46,030 additions
and
28,868 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
...plans/spid-cie-oidc/config/testplan-to-mr/templates/wrong_input-JWT parameter not in.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"test suite": { | ||
"name": "Single test", | ||
"description": "One test only", | ||
"filter messages": true | ||
}, | ||
"tests": [ | ||
{ | ||
"test": { | ||
"name": "var0", | ||
"description": "var1", | ||
"type": "passive", | ||
"sessions": "session0", | ||
"operations": [ | ||
{ | ||
"message type": "var2", | ||
"decode operations": [ | ||
{ | ||
"from": "var3", | ||
"decode param": "var4", | ||
"type": "jwt", | ||
"checks": [ | ||
{ | ||
"in": "var5", | ||
"check": "$var6", | ||
"not matches regex": "var7" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"result": "correct flow s1" | ||
} | ||
} | ||
] | ||
} |
39 changes: 39 additions & 0 deletions
39
...sts/single/AA/AA-Entity Configuration response-metadata-authorization_endpoint-value.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"test suite": { | ||
"name": "Single test", | ||
"description": "One test only", | ||
"filter messages": true | ||
}, | ||
"tests": [ | ||
{ | ||
"test": { | ||
"name": "Does the AA metadata contain correct type authorization_endpoint claim", | ||
"description": "In this test the AA metadata in the AA Entity Configuration are taken and the value of the authorization_endpoint claim in the 'federation_entity' entity type is \"private\"", | ||
"type": "passive", | ||
"sessions": [ | ||
"s1" | ||
], | ||
"operations": [ | ||
{ | ||
"message type": "Entity Configuration response AA", | ||
"decode operations": [ | ||
{ | ||
"from": "body", | ||
"decode param": "[^\\n\\r]*", | ||
"type": "jwt", | ||
"checks": [ | ||
{ | ||
"in": "payload", | ||
"check": "$.metadata.federation_entity", | ||
"json schema compliant": "{\"type\": \"object\",\"properties\": {\"authorization_endpoint\": {\"type\": \"string\",\"const\": \"private\"}},\"required\": [\"authorization_endpoint\"]}" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"result": "correct flow s1" | ||
} | ||
} | ||
] | ||
} |
39 changes: 39 additions & 0 deletions
39
.../input/mig-t/tests/single/AA/AA-Entity Configuration response-metadata-logo_uri-type.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"test suite": { | ||
"name": "Single test", | ||
"description": "One test only", | ||
"filter messages": true | ||
}, | ||
"tests": [ | ||
{ | ||
"test": { | ||
"name": "Does the AA metadata contain correct type logo_uri claim", | ||
"description": "In this test the SA metadata in the TA Entity Configuration are taken and the value of the logo_uri claim in the 'federation_entity' entity type is an URL with an .svg file", | ||
"type": "passive", | ||
"sessions": [ | ||
"s1" | ||
], | ||
"operations": [ | ||
{ | ||
"message type": "Entity Configuration response AA", | ||
"decode operations": [ | ||
{ | ||
"from": "body", | ||
"decode param": "[^\\n\\r]*", | ||
"type": "jwt", | ||
"checks": [ | ||
{ | ||
"in": "payload", | ||
"check": "$.metadata.federation_entity", | ||
"json schema compliant": "{\"type\":\"object\", \"properties\":{\"logo_uri\":{\"type\":\"string\", \"format\":\"uri\", \"pattern\":\"^https://.*\\\\.svg$\"}},\"required\":[\"logo_uri\"]}" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"result": "correct flow s1" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
.../input/mig-t/tests/single/AA/AA-Entity Configuration response-metadata-resource-type.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"test suite": { | ||
"name": "Single test", | ||
"description": "One test only", | ||
"filter messages": true | ||
}, | ||
"tests": [ | ||
{ | ||
"test": { | ||
"name": "Does the AA metadata contain correct type resource claim", | ||
"description": "In this test the AA metadata in the AA Entity Configuration are taken and the value of the resource claim in the 'federation_entity' entity type is an HTTPS URL", | ||
"type": "passive", | ||
"sessions": [ | ||
"s1" | ||
], | ||
"operations": [ | ||
{ | ||
"message type": "Entity Configuration response AA", | ||
"decode operations": [ | ||
{ | ||
"from": "body", | ||
"decode param": "[^\\n\\r]*", | ||
"type": "jwt", | ||
"checks": [ | ||
{ | ||
"in": "payload", | ||
"check": "$.metadata.federation_entity", | ||
"json schema compliant": "{\"type\": \"object\",\"properties\": {\"resource\": {\"oneOf\": [{\"type\": \"string\", \"format\": \"uri\", \"pattern\": \"^https://\"},{\"type\": \"array\",\"items\": {\"type\": \"string\", \"format\": \"uri\", \"pattern\": \"^https://\"},\"minItems\": 1}]}},\"required\": [\"resource\"]}" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"result": "correct flow s1" | ||
} | ||
} | ||
] | ||
} |
33 changes: 33 additions & 0 deletions
33
...o/input/mig-t/tests/single/AA/ALL-Entity Configuration response-correct-content-type.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"test suite": { | ||
"name": "Single test", | ||
"description": "One test only", | ||
"filter messages": true | ||
}, | ||
"tests": [ | ||
{ | ||
"test": { | ||
"name": "Does the entity return a correct Content-Type in the EC response", | ||
"description": "In this test a correct request to the entity's /.well-known/openid-federation endpoint is made and the response is analyzed. It must have a Content-Type parameter set to application/entity-statement+jwt", | ||
"type": "passive", | ||
"sessions": [ | ||
"s1" | ||
], | ||
"operations": [ | ||
{ | ||
"message type": "Entity Configuration response AA", | ||
"checks": [ | ||
{ | ||
"in": "head", | ||
"url decode": false, | ||
"is": "application/entity-statement+jwt", | ||
"check param": "Content-Type" | ||
} | ||
] | ||
} | ||
], | ||
"result": "correct flow s1" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...e-oidc-django/input/mig-t/tests/single/AA/ALL-Entity Configuration response-exp-type.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"test suite": { | ||
"name": "Single test", | ||
"description": "One test only", | ||
"filter messages": true | ||
}, | ||
"tests": [ | ||
{ | ||
"test": { | ||
"name": "Does entity configuration contain a correct exp parameter", | ||
"description": "To accomplish this test, the Entity configuration of the interested entity is taken, the payload is decoded (Base64 encoding) and the presence of the exp parameter is checked", | ||
"type": "passive", | ||
"sessions": [ | ||
"s1" | ||
], | ||
"operations": [ | ||
{ | ||
"message type": "Entity Configuration response AA", | ||
"decode operations": [ | ||
{ | ||
"from": "body", | ||
"decode param": "[^\\r\\n]*", | ||
"type": "jwt", | ||
"checks": [ | ||
{ | ||
"in": "payload", | ||
"check": "$", | ||
"json schema compliant": "{\"type\": \"object\", \"properties\": {\"exp\": {\"type\": \"integer\", \"minimum\": 0}}, \"required\": [\"exp\"]}" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"result": "correct flow s1" | ||
} | ||
} | ||
] | ||
} |
39 changes: 39 additions & 0 deletions
39
...id-cie-oidc-django/input/mig-t/tests/single/AA/ALL-Entity Configuration response-exp.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"test suite": { | ||
"name": "Single test", | ||
"description": "One test only", | ||
"filter messages": true | ||
}, | ||
"tests": [ | ||
{ | ||
"test": { | ||
"name": "Does entity configuration contain the exp parameter", | ||
"description": "To accomplish this test, the Entity configuration of the interested entity is taken, the payload is decoded (Base64 encoding) and the presence of the exp parameter is checked", | ||
"type": "passive", | ||
"sessions": [ | ||
"s1" | ||
], | ||
"operations": [ | ||
{ | ||
"message type": "Entity Configuration response AA", | ||
"decode operations": [ | ||
{ | ||
"from": "body", | ||
"decode param": "[^\\r\\n]*", | ||
"type": "jwt", | ||
"checks": [ | ||
{ | ||
"in": "payload", | ||
"check": "$.exp", | ||
"is present": "true" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"result": "correct flow s1" | ||
} | ||
} | ||
] | ||
} |
32 changes: 32 additions & 0 deletions
32
...ie-oidc-django/input/mig-t/tests/single/AA/ALL-Entity Configuration response-exposed.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"test suite": { | ||
"name": "Single test", | ||
"description": "One test only", | ||
"filter messages": true | ||
}, | ||
"tests": [ | ||
{ | ||
"test": { | ||
"name": "Does the Entity expose the /.well-known/openid-federation endpoint", | ||
"description": "In order to check the presence and correctness of the /.well-known/openid-federation endpoint, an HTTP GET request to the entity's endpoint is done and its entity configuration is expected as response.", | ||
"type": "passive", | ||
"sessions": [ | ||
"s1" | ||
], | ||
"operations": [ | ||
{ | ||
"message type": "Entity Configuration response AA", | ||
"checks": [ | ||
{ | ||
"in": "head", | ||
"check regex": "HTTP/?\\d?\\.?\\d?\\s200", | ||
"is present": "true" | ||
} | ||
] | ||
} | ||
], | ||
"result": "correct flow s1" | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.