-
Notifications
You must be signed in to change notification settings - Fork 23
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
1 parent
aab21a0
commit ccccbc0
Showing
2 changed files
with
41 additions
and
16 deletions.
There are no files selected for viewing
38 changes: 22 additions & 16 deletions
38
tests/integration-tests/src/test/resources/features/proofs/present_proof.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 |
---|---|---|
@@ -1,19 +1,25 @@ | ||
Feature: Present Proof Protocol | ||
|
||
Scenario: Holder presents anoncreds credential proof to verifier | ||
Given Issuer and Holder have an existing connection | ||
And Verifier and Holder have an existing connection | ||
And Issuer creates unpublished DID | ||
And He publishes DID to ledger | ||
And Holder creates unpublished DID | ||
And Issuer creates anoncred schema | ||
And Issuer creates anoncred credential definition | ||
And Issuer offers anoncred to Holder | ||
And Holder receives the credential offer | ||
And Holder accepts credential offer for anoncred | ||
And Issuer issues the credential | ||
And Holder receives the issued credential | ||
When Verifier sends a anoncreds request for proof presentation to Holder using credential definition issued by Issuer | ||
And Holder receives the anoncreds request | ||
And Holder accepts the anoncreds presentation request from Verifier | ||
Scenario: Holder presents credential proof to verifier | ||
Given Verifier and Holder have an existing connection | ||
And Holder has an issued credential from Issuer | ||
When Verifier sends a request for proof presentation to Holder | ||
And Holder receives the request | ||
And Holder makes the presentation of the proof to Verifier | ||
Then Verifier has the proof verified | ||
|
||
Scenario: Verifier rejects holder proof | ||
Given Verifier and Holder have an existing connection | ||
And Holder has an issued credential from Issuer | ||
When Verifier sends a request for proof presentation to Holder | ||
And Holder receives the request | ||
And Holder rejects the proof | ||
Then Holder sees the proof is rejected | ||
|
||
Scenario: Holder presents proof to verifier which is the issuer itself | ||
Given Issuer and Holder have an existing connection | ||
And Holder has an issued credential from Issuer | ||
When Issuer sends a request for proof presentation to Holder | ||
And Holder receives the request | ||
And Holder makes the presentation of the proof to Issuer | ||
Then Issuer has the proof verified |
19 changes: 19 additions & 0 deletions
19
tests/integration-tests/src/test/resources/features/proofs/present_proof_anoncred.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,19 @@ | ||
Feature: Present Proof Protocol | ||
|
||
Scenario: Holder presents anoncreds credential proof to verifier | ||
Given Issuer and Holder have an existing connection | ||
And Verifier and Holder have an existing connection | ||
And Issuer creates unpublished DID | ||
And He publishes DID to ledger | ||
And Holder creates unpublished DID | ||
And Issuer creates anoncred schema | ||
And Issuer creates anoncred credential definition | ||
And Issuer offers anoncred to Holder | ||
And Holder receives the credential offer | ||
And Holder accepts credential offer for anoncred | ||
And Issuer issues the credential | ||
And Holder receives the issued credential | ||
When Verifier sends a anoncreds request for proof presentation to Holder using credential definition issued by Issuer | ||
And Holder receives the anoncreds request | ||
And Holder accepts the anoncreds presentation request from Verifier | ||
Then Verifier has the proof verified |