forked from openwallet-foundation/acapy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request openwallet-foundation#2651 from ianco/anoncreds-rs…
…-migrate-4 Update integration tests for anoncreds-rs
- Loading branch information
Showing
11 changed files
with
506 additions
and
24 deletions.
There are no files selected for viewing
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
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
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,136 @@ | ||
Feature: ACA-Py Revocation API | ||
|
||
@Revoc-api @GHA | ||
Scenario Outline: Using revocation api, issue and revoke credentials | ||
Given we have "3" agents | ||
| name | role | capabilities | | ||
| Acme | issuer | <Acme_capabilities> | | ||
| Faber | verifier | <Acme_capabilities> | | ||
| Bob | prover | <Bob_capabilities> | | ||
And "<issuer>" and "Bob" have an existing connection | ||
And "Bob" has an issued <Schema_name> credential <Credential_data> from "<issuer>" | ||
And "<issuer>" revokes the credential | ||
And "Faber" and "Bob" have an existing connection | ||
When "Faber" sends a request for proof presentation <Proof_request> to "Bob" | ||
Then "Faber" has the proof verification fail | ||
|
||
Examples: | ||
| issuer | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Proof_request | | ||
#| Acme | --revocation --public-did | | driverslicense_v2 | Data_DL_MaxValues | DL_age_over_19_v2 | | ||
| Acme | --revocation --public-did --wallet-type askar-anoncreds | --wallet-type askar-anoncreds | driverslicense_v2 | Data_DL_MaxValues | DL_age_over_19_v2 | | ||
|
||
@Revoc-api @GHA | ||
Scenario Outline: Using revocation api, issue, revoke credentials and publish | ||
Given we have "3" agents | ||
| name | role | capabilities | | ||
| Acme | issuer | <Acme_capabilities> | | ||
| Faber | verifier | <Acme_capabilities> | | ||
| Bob | prover | <Bob_capabilities> | | ||
And "<issuer>" and "Bob" have an existing connection | ||
And "Bob" has an issued <Schema_name> credential <Credential_data> from "<issuer>" | ||
And "<issuer>" has written the credential definition for <Schema_name> to the ledger | ||
And "<issuer>" has written the revocation registry definition to the ledger | ||
And "<issuer>" has written the revocation registry entry transaction to the ledger | ||
And "<issuer>" revokes the credential without publishing the entry | ||
And "<issuer>" authors a revocation registry entry publishing transaction | ||
And "Faber" and "Bob" have an existing connection | ||
When "Faber" sends a request for proof presentation <Proof_request> to "Bob" | ||
Then "Faber" has the proof verification fail | ||
Then "Bob" can verify the credential from "<issuer>" was revoked | ||
Examples: | ||
| issuer | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Proof_request | | ||
#| Acme | --revocation --public-did | | driverslicense_v2 | Data_DL_MaxValues | DL_age_over_19_v2 | | ||
| Acme | --revocation --public-did --wallet-type askar-anoncreds | --wallet-type askar-anoncreds | driverslicense_v2 | Data_DL_MaxValues | DL_age_over_19_v2 | | ||
|
||
@Revoc-api.x @GHA-Anoncreds-break | ||
Scenario Outline: Without endorser: issue, revoke credentials, manually create revocation registries | ||
Given we have "3" agents | ||
| name | role | capabilities | | ||
| Acme | issuer | <Acme_capabilities> | | ||
| Faber | verifier | <Acme_capabilities> | | ||
| Bob | prover | <Bob_capabilities> | | ||
And "<issuer>" and "Bob" have an existing connection | ||
And Without endorser, "<issuer>" authors a schema transaction with <Schema_name> | ||
And "<issuer>" has written the schema <Schema_name> to the ledger | ||
And Without endorser, "<issuer>" authors a credential definition transaction with <Schema_name>' | ||
And "<issuer>" has written the credential definition for <Schema_name> to the ledger | ||
And Without endorser, "<issuer>" authors a revocation registry definition transaction for the credential definition matching <Schema_name> | ||
And Without endorser, "<issuer>" has written the revocation registry definition to the ledger | ||
And "<issuer>" has activated the tails file, and uploaded it to the tails server | ||
And Without endorser, "<issuer>" authors a revocation registry entry transaction for the credential definition matching <Schema_name> | ||
And "<issuer>" has written the revocation registry entry transaction to the ledger | ||
And "<issuer>" offers a credential with data <Credential_data> | ||
Then "Bob" has the credential issued | ||
And "<issuer>" revokes the credential without publishing the entry | ||
And "<issuer>" authors a revocation registry entry publishing transaction | ||
And "Faber" and "Bob" have an existing connection | ||
When "Faber" sends a request for proof presentation <Proof_request> to "Bob" | ||
Then "Faber" has the proof verification fail | ||
Then "Bob" can verify the credential from "<issuer>" was revoked | ||
Examples: | ||
| issuer | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Proof_request | | ||
#| Acme | --revocation --public-did --did-exchange | | driverslicense_v2 | Data_DL_MaxValues | DL_age_over_19_v2 | | ||
| Acme | --revocation --public-did --did-exchange --wallet-type askar-anoncreds | --wallet-type askar-anoncreds | driverslicense_v2 | Data_DL_MaxValues | DL_age_over_19_v2 | | ||
@Revoc-api @GHA | ||
Scenario Outline: Using revocation api, rotate revocation | ||
Given we have "3" agents | ||
| name | role | capabilities | | ||
| Acme | issuer | <Acme_capabilities> | | ||
| Faber | verifier | <Acme_capabilities> | | ||
| Bob | prover | <Bob_capabilities> | | ||
And "<issuer>" and "Bob" have an existing connection | ||
And "Bob" has an issued <Schema_name> credential <Credential_data> from "<issuer>" | ||
And "<issuer>" lists revocation registries 1 | ||
And "<issuer>" rotates revocation registries | ||
Examples: | ||
| issuer | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Proof_request | | ||
#| Acme | --revocation --public-did | | driverslicense_v2 | Data_DL_MaxValues | DL_age_over_19_v2 | | ||
| Acme | --revocation --public-did --wallet-type askar-anoncreds | --wallet-type askar-anoncreds | driverslicense_v2 | Data_DL_MaxValues | DL_age_over_19_v2 | | ||
@Revoc-api @GHA | ||
Scenario Outline: Using revocation api, fill registry (need to run with "TAILS_FILE_COUNT": "4" env var) | ||
Given we have "2" agents | ||
| name | role | capabilities | | ||
| Acme | issuer | <Acme_capabilities> | | ||
| Bob | prover | <Bob_capabilities> | | ||
And "<issuer>" and "Bob" have an existing connection | ||
And "Bob" has an issued <Schema_name> credential <Credential_data> from "<issuer>" | ||
And wait 5 seconds | ||
And "<issuer>" lists revocation registries 1 | ||
When "<issuer>" offers a credential with data <Credential_data> | ||
Then "Bob" has the credential issued | ||
And wait 5 seconds | ||
And "<issuer>" lists revocation registries 2 | ||
When "<issuer>" offers a credential with data <Credential_data> | ||
Then "Bob" has the credential issued | ||
And wait 5 seconds | ||
And "<issuer>" lists revocation registries 3 | ||
When "<issuer>" offers a credential with data <Credential_data> | ||
Then "Bob" has the credential issued | ||
And wait 5 seconds | ||
And "<issuer>" lists revocation registries 4 | ||
When "<issuer>" offers a credential with data <Credential_data> | ||
Then "Bob" has the credential issued | ||
And wait 5 seconds | ||
And "<issuer>" lists revocation registries 5 | ||
When "<issuer>" offers a credential with data <Credential_data> | ||
Then "Bob" has the credential issued | ||
And wait 5 seconds | ||
And "<issuer>" lists revocation registries 6 | ||
When "<issuer>" offers a credential with data <Credential_data> | ||
Then "Bob" has the credential issued | ||
And wait 5 seconds | ||
And "<issuer>" lists revocation registries 7 | ||
When "<issuer>" offers a credential with data <Credential_data> | ||
Then "Bob" has the credential issued | ||
And "<issuer>" lists revocation registries 8 | ||
When "<issuer>" offers a credential with data <Credential_data> | ||
Then "Bob" has the credential issued | ||
And wait 5 seconds | ||
Examples: | ||
| issuer | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Proof_request | | ||
#| Acme | --revocation --public-did | | driverslicense_v2 | Data_DL_MaxValues | DL_age_over_19_v2 | | ||
| Acme | --revocation --public-did --wallet-type askar-anoncreds | --wallet-type askar-anoncreds | driverslicense_v2 | Data_DL_MaxValues | DL_age_over_19_v2 | |
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.