-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add e2e tests for jwt revocation, sdk verification for jwt and a…
…noncreds (#244) Signed-off-by: Javier Ribó <[email protected]>
- Loading branch information
1 parent
2391f01
commit 5c2519b
Showing
11 changed files
with
239 additions
and
23 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
integration-tests/e2e-tests/features/verify_anoncred_credential.feature
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,15 @@ | ||
@anoncreds @credential @sdkverification | ||
Feature: Verify Anoncreds presentation | ||
The Edge Agent should be able to receive a verifiable credential from Cloud Agent and then send a presentation to another edge agent who will verify it | ||
|
||
Scenario: SDKs Anoncreds Verification | ||
Given Cloud Agent is connected to Edge Agent | ||
When Cloud Agent offers '1' anonymous credential | ||
Then Edge Agent should receive the credentials offer from Cloud Agent | ||
When Edge Agent accepts the credentials offer from Cloud Agent | ||
And Cloud Agent should see all credentials were accepted | ||
Then Edge Agent wait to receive issued credentials from Cloud Agent | ||
And Edge Agent process issued credentials from Cloud Agent | ||
Then Verifier Edge Agent will request Edge Agent to verify the anonymous credential | ||
When Edge Agent sends the verification proof | ||
Then Verifier Edge Agent should see the verification proof is verified |
23 changes: 23 additions & 0 deletions
23
integration-tests/e2e-tests/features/verify_jwt_credential.feature
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,23 @@ | ||
@jwt @credential @sdkverification | ||
Feature: Verify JWT presentation | ||
The Edge Agent should be able to receive a verifiable credential from Cloud Agent and then send a presentation to another edge agent who will verify it | ||
|
||
Scenario: SDKs JWT Verification | ||
Given Cloud Agent is connected to Edge Agent | ||
When Cloud Agent offers '1' jwt credentials | ||
Then Edge Agent should receive the credentials offer from Cloud Agent | ||
When Edge Agent accepts the credentials offer from Cloud Agent | ||
And Cloud Agent should see all credentials were accepted | ||
Then Edge Agent wait to receive issued credentials from Cloud Agent | ||
And Edge Agent process issued credentials from Cloud Agent | ||
Then Verifier Edge Agent will request Edge Agent to verify the JWT credential | ||
When Edge Agent sends the verification proof | ||
Then Verifier Edge Agent should see the verification proof is verified | ||
|
||
Scenario: SDKs JWT Revoked Verification | ||
Given Cloud Agent is connected to Edge Agent | ||
And Edge Agent has '1' jwt credentials issued by Cloud Agent | ||
When Cloud Agent revokes '1' credentials | ||
Then Verifier Edge Agent will request Edge Agent to verify the JWT credential | ||
When Edge Agent sends the verification proof | ||
Then Verifier Edge Agent should see the verification proof is verified false |
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 |
---|---|---|
|
@@ -48,4 +48,4 @@ | |
"resolutions": { | ||
"wrap-ansi": "^7.0.0" | ||
} | ||
} | ||
} |
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
Oops, something went wrong.