diff --git a/.github/workflows/integrationtests.yml b/.github/workflows/bdd-integration-tests.yml similarity index 98% rename from .github/workflows/integrationtests.yml rename to .github/workflows/bdd-integration-tests.yml index 0fc4159460..a78caf5540 100644 --- a/.github/workflows/integrationtests.yml +++ b/.github/workflows/bdd-integration-tests.yml @@ -1,4 +1,4 @@ -name: acapy-integration-tests +name: acapy-bdd-integration-tests on: schedule: diff --git a/.github/workflows/bdd-interop-tests.yml b/.github/workflows/bdd-interop-tests.yml new file mode 100644 index 0000000000..385a313f71 --- /dev/null +++ b/.github/workflows/bdd-interop-tests.yml @@ -0,0 +1,44 @@ +name: acapy-bdd-interop-tests + +on: + schedule: + - cron: '0 0 * * *' + workflow_dispatch: + pull_request: + branches: + - main + types: [opened, synchronize, reopened, ready_for_review] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +defaults: + run: + shell: bash + +jobs: + test: + runs-on: ubuntu-latest + if: (github.event_name == 'pull_request' && github.event.pull_request.draft == false && github.repository == 'hyperledger/aries-cloudagent-python') || (github.event_name != 'pull_request') + outputs: + is_release: ${{ steps.check_if_release.outputs.is_release }} + steps: + - name: checkout-acapy + uses: actions/checkout@v4 + with: + fetch-depth: 0 + # ---------------------------------------------- + # Install docker compose + # ---------------------------------------------- + - name: Initialize Docker Compose + uses: isbang/compose-action@v1.5.1 + - name: Run BDD Interop Tests + run: | + # Get AATH + git clone https://github.com/hyperledger/aries-agent-test-harness.git + ls -a + cd aries-agent-test-harness + ./manage build -a acapy + ./manage run -d acapy -t @AcceptanceTest -t ~@wip -t ~@T004-RFC0211 -t ~@DidMethod_orb -t ~@Transport_NoHttpOutbound + diff --git a/demo/features/0160-connection.feature b/demo/features/0160-connection.feature index a68e651711..7d2df7c2d2 100644 --- a/demo/features/0160-connection.feature +++ b/demo/features/0160-connection.feature @@ -12,7 +12,7 @@ Feature: RFC 0160 Aries agent connection functions Then "Acme" has an active connection And "Bob" has an active connection - @PR @Release @UnqualifiedDids + @UnqualifiedDids Examples: | Acme_capabilities | Acme_extra | Bob_capabilities | Bob_extra | | --public-did --did-exchange --emit-did-peer-2 | | --did-exchange --emit-did-peer-2 | | @@ -40,7 +40,7 @@ Feature: RFC 0160 Aries agent connection functions | --did-exchange --emit-did-peer-4 | | --emit-did-peer-4 | | | --did-exchange --reuse-connections --emit-did-peer-4 | | --reuse-connections --emit-did-peer-4 | | - @PR @Release @MultiUseConnectionReuse + @MultiUseConnectionReuse Examples: | Acme_capabilities | Acme_extra | Bob_capabilities | Bob_extra | | --did-exchange --multi-use-invitations --emit-did-peer-2 | | --emit-did-peer-2 | | @@ -56,7 +56,7 @@ Feature: RFC 0160 Aries agent connection functions | --public-did --did-exchange --multi-use-invitations --emit-did-peer-4 | | --did-exchange --emit-did-peer-2 | | | --public-did --did-exchange --multi-use-invitations --reuse-connections --emit-did-peer-2 | | --did-exchange --reuse-connections --emit-did-peer-4 | | - @PR @Release @WalletType_Askar_AnonCreds + @WalletType_Askar_AnonCreds Examples: | Acme_capabilities | Acme_extra | Bob_capabilities | Bob_extra | | --public-did --did-exchange --wallet-type askar-anoncreds --emit-did-peer-2 | | --did-exchange --wallet-type askar-anoncreds --emit-did-peer-2 | | diff --git a/demo/features/0453-issue-credential.feature b/demo/features/0453-issue-credential.feature index 9a6aae587b..9a19ca025a 100644 --- a/demo/features/0453-issue-credential.feature +++ b/demo/features/0453-issue-credential.feature @@ -12,37 +12,37 @@ Feature: RFC 0453 Aries agent issue credential When "Acme" offers a credential with data Then "Bob" has the credential issued - @Release @WalletType_Askar @BasicTest + @WalletType_Askar @BasicTest Examples: | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Acme_extra | Bob_extra | | --public-did --did-exchange | --did-exchange | driverslicense | Data_DL_NormalizedValues | | | - @Release @WalletType_Askar @AltTests + @WalletType_Askar @AltTests Examples: | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Acme_extra | Bob_extra | | --public-did | | driverslicense | Data_DL_NormalizedValues | | | | --public-did --mediation | --mediation | driverslicense | Data_DL_NormalizedValues | | | | --public-did --multitenant | --multitenant --log-file | driverslicense | Data_DL_NormalizedValues | | | - @Release @WalletType_Askar_AnonCreds @BasicTest @cred_type_vc_di + @WalletType_Askar_AnonCreds @BasicTest @cred_type_vc_di Examples: | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Acme_extra | Bob_extra | | --public-did --wallet-type askar-anoncreds | --wallet-type askar-anoncreds | driverslicense | Data_DL_NormalizedValues | | | | --public-did --wallet-type askar-anoncreds --cred-type vc_di | --wallet-type askar-anoncreds | driverslicense | Data_DL_NormalizedValues | | | - @Release @WalletType_Askar_AnonCreds @AltTests + @WalletType_Askar_AnonCreds @AltTests Examples: | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Acme_extra | Bob_extra | | --public-did --wallet-type askar-anoncreds | | driverslicense | Data_DL_NormalizedValues | | | | --public-did | --wallet-type askar-anoncreds | driverslicense | Data_DL_NormalizedValues | | | - @PR @Release @WalletType_Askar @ConnectionTests + @WalletType_Askar @ConnectionTests Examples: | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Acme_extra | Bob_extra | | --did-exchange --emit-did-peer-4 | --did-exchange --emit-did-peer-4 | driverslicense | Data_DL_NormalizedValues | | | | --did-exchange --reuse-connections --emit-did-peer-4 | --did-exchange --reuse-connections --emit-did-peer-4 | driverslicense | Data_DL_NormalizedValues | | | - @PR @Release @WalletType_Askar_AnonCreds @ConnectionTests + @WalletType_Askar_AnonCreds @ConnectionTests Examples: | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Acme_extra | Bob_extra | | --did-exchange --wallet-type askar-anoncreds --emit-did-peer-4 | --did-exchange --wallet-type askar-anoncreds --emit-did-peer-4 | driverslicense | Data_DL_NormalizedValues | | | @@ -82,7 +82,7 @@ Feature: RFC 0453 Aries agent issue credential And "Acme" offers and deletes a credential with data Then "Bob" has the exchange abandoned - @PR @Release @WalletType_Askar + @WalletType_Askar Examples: | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | | --public-did | | driverslicense | Data_DL_NormalizedValues | @@ -110,7 +110,7 @@ Feature: RFC 0453 Aries agent issue credential And "Acme" is ready to issue a credential for When "Bob" requests a credential with data from "Acme" it fails - @PR @Release @WalletType_Askar + @WalletType_Askar Examples: | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | | --public-did | | driverslicense | Data_DL_NormalizedValues | @@ -141,13 +141,13 @@ Feature: RFC 0453 Aries agent issue credential Then "Bob" has the json-ld credential issued And "Acme" has the exchange completed - @PR @Release @WalletType_Askar + @WalletType_Askar Examples: | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Key_type | Sig_type | | --public-did --cred-type json-ld | | driverslicense | Data_DL_NormalizedValues | ed25519 | Ed25519Signature2018 | | --public-did --cred-type json-ld | | driverslicense | Data_DL_NormalizedValues | ed25519 | Ed25519Signature2020 | - @PR @Release @WalletType_Askar @BBS + @WalletType_Askar @BBS Examples: | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Key_type | Sig_type | | --public-did --cred-type json-ld | | driverslicense | Data_DL_NormalizedValues | bls12381g2 | BbsBlsSignature2020 | @@ -193,18 +193,18 @@ Feature: RFC 0453 Aries agent issue credential When "Acme" offers "Bob" a json-ld credential with data and Then "Bob" has the json-ld credential issued - @PR @Release @WalletType_Askar + @WalletType_Askar Examples: | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Key_type | Sig_type | | --public-did --cred-type json-ld | | driverslicense | Data_DL_NormalizedValues | ed25519 | Ed25519Signature2018 | | --public-did --cred-type json-ld | | driverslicense | Data_DL_NormalizedValues | ed25519 | Ed25519Signature2020 | - @PR @Release @WalletType_Askar @BBS + @WalletType_Askar @BBS Examples: | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Key_type | Sig_type | | --public-did --cred-type json-ld | | driverslicense | Data_DL_NormalizedValues | bls12381g2 | BbsBlsSignature2020 | - @Release @WalletType_Askar + @WalletType_Askar Examples: | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Key_type | Sig_type | | --public-did --cred-type json-ld --did-exchange | --did-exchange | driverslicense | Data_DL_NormalizedValues | ed25519 | Ed25519Signature2018 | @@ -214,14 +214,14 @@ Feature: RFC 0453 Aries agent issue credential | --public-did --cred-type json-ld --mediation | --mediation | driverslicense | Data_DL_NormalizedValues | ed25519 | Ed25519Signature2020 | | --public-did --cred-type json-ld --multitenant --log-file | --multitenant | driverslicense | Data_DL_NormalizedValues | ed25519 | Ed25519Signature2020 | - @Release @WalletType_Askar @BBS + @WalletType_Askar @BBS Examples: | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Key_type | Sig_type | | --public-did --cred-type json-ld --did-exchange | --did-exchange | driverslicense | Data_DL_NormalizedValues | bls12381g2 | BbsBlsSignature2020 | | --public-did --cred-type json-ld --mediation | --mediation | driverslicense | Data_DL_NormalizedValues | bls12381g2 | BbsBlsSignature2020 | | --public-did --cred-type json-ld --multitenant --log-file | --multitenant | driverslicense | Data_DL_NormalizedValues | bls12381g2 | BbsBlsSignature2020 | - @Release @WalletType_Askar_AnonCreds + @WalletType_Askar_AnonCreds Examples: | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Key_type | Sig_type | | --public-did --cred-type json-ld --wallet-type askar-anoncreds | --wallet-type askar-anoncreds | driverslicense | Data_DL_NormalizedValues | ed25519 | Ed25519Signature2018 | @@ -229,7 +229,7 @@ Feature: RFC 0453 Aries agent issue credential | --public-did --cred-type json-ld --wallet-type askar-anoncreds | --wallet-type askar-anoncreds | driverslicense | Data_DL_NormalizedValues | ed25519 | Ed25519Signature2020 | | --public-did --cred-type json-ld --did-exchange --wallet-type askar-anoncreds | --did-exchange --wallet-type askar-anoncreds | driverslicense | Data_DL_NormalizedValues | ed25519 | Ed25519Signature2020 | - @Release @WalletType_Askar_AnonCreds @BBS + @WalletType_Askar_AnonCreds @BBS Examples: | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Key_type | Sig_type | | --public-did --cred-type json-ld --wallet-type askar-anoncreds | --wallet-type askar-anoncreds | driverslicense | Data_DL_NormalizedValues | bls12381g2 | BbsBlsSignature2020 | @@ -262,18 +262,18 @@ Feature: RFC 0453 Aries agent issue credential When "Bob" requests a json-ld credential with data from "Acme" with Then "Bob" has the json-ld credential issued - @PR @Release @WalletType_Askar + @WalletType_Askar Examples: | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Key_type | Sig_type | | --public-did --cred-type json-ld | | driverslicense | Data_DL_NormalizedValues | ed25519 | Ed25519Signature2018 | | --public-did --cred-type json-ld | | driverslicense | Data_DL_NormalizedValues | ed25519 | Ed25519Signature2020 | - @PR @Release @WalletType_Askar @BBS + @WalletType_Askar @BBS Examples: | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Key_type | Sig_type | | --public-did --cred-type json-ld | | driverslicense | Data_DL_NormalizedValues | bls12381g2 | BbsBlsSignature2020 | - @Release @WalletType_Askar + @WalletType_Askar Examples: | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Key_type | Sig_type | | --public-did --cred-type json-ld --did-exchange | --did-exchange | driverslicense | Data_DL_NormalizedValues | ed25519 | Ed25519Signature2018 | @@ -283,20 +283,20 @@ Feature: RFC 0453 Aries agent issue credential | --public-did --cred-type json-ld --mediation | --mediation | driverslicense | Data_DL_NormalizedValues | ed25519 | Ed25519Signature2020 | | --public-did --cred-type json-ld --multitenant | --multitenant | driverslicense | Data_DL_NormalizedValues | ed25519 | Ed25519Signature2020 | - @Release @WalletType_Askar @BBS + @WalletType_Askar @BBS Examples: | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Key_type | Sig_type | | --public-did --cred-type json-ld --did-exchange | --did-exchange | driverslicense | Data_DL_NormalizedValues | bls12381g2 | BbsBlsSignature2020 | | --public-did --cred-type json-ld --mediation | --mediation | driverslicense | Data_DL_NormalizedValues | bls12381g2 | BbsBlsSignature2020 | | --public-did --cred-type json-ld --multitenant | --multitenant | driverslicense | Data_DL_NormalizedValues | bls12381g2 | BbsBlsSignature2020 | - @PR @Release @WalletType_Askar_AnonCreds + @WalletType_Askar_AnonCreds Examples: | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Key_type | Sig_type | | --public-did --cred-type json-ld --wallet-type askar-anoncreds | --wallet-type askar-anoncreds | driverslicense | Data_DL_NormalizedValues | ed25519 | Ed25519Signature2018 | | --public-did --cred-type json-ld --wallet-type askar-anoncreds | --wallet-type askar-anoncreds | driverslicense | Data_DL_NormalizedValues | ed25519 | Ed25519Signature2020 | - @PR @Release @WalletType_Askar_AnonCreds @BBS + @WalletType_Askar_AnonCreds @BBS Examples: | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Key_type | Sig_type | | --public-did --cred-type json-ld --wallet-type askar-anoncreds | --wallet-type askar-anoncreds | driverslicense | Data_DL_NormalizedValues | bls12381g2 | BbsBlsSignature2020 | @@ -313,14 +313,14 @@ Feature: RFC 0453 Aries agent issue credential Then "Acme" revokes the credential And "Bob" has the credential issued - @Release @WalletType_Askar + @WalletType_Askar Examples: | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | | --revocation --public-did | | driverslicense | Data_DL_NormalizedValues | | --revocation --public-did --did-exchange | --did-exchange | driverslicense | Data_DL_NormalizedValues | | --revocation --public-did --multitenant | --multitenant | driverslicense | Data_DL_NormalizedValues | - @Release @WalletType_Askar_AnonCreds + @WalletType_Askar_AnonCreds Examples: | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | | --revocation --public-did --wallet-type askar-anoncreds | --wallet-type askar-anoncreds | driverslicense | Data_DL_NormalizedValues | diff --git a/demo/features/0454-present-proof.feature b/demo/features/0454-present-proof.feature index 36973d828f..dffc1f598c 100644 --- a/demo/features/0454-present-proof.feature +++ b/demo/features/0454-present-proof.feature @@ -12,27 +12,27 @@ Feature: RFC 0454 Aries agent present proof When "Faber" sends a request for proof presentation to "Bob" Then "Faber" has the proof verified - @PR @Release @WalletType_Askar + @WalletType_Askar Examples: | issuer | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Proof_request | | Faber | --public-did | | driverslicense_v2 | Data_DL_MaxValues | DL_age_over_19_v2 | - @Release @WalletType_Askar + @WalletType_Askar Examples: | issuer | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Proof_request | | Faber | --public-did --did-exchange | --did-exchange | driverslicense_v2 | Data_DL_MaxValues | DL_age_over_19_v2 | - @PR @Release @WalletType_Askar_AnonCreds + @WalletType_Askar_AnonCreds Examples: | issuer | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Proof_request | | Faber | --public-did --wallet-type askar-anoncreds | --wallet-type askar-anoncreds | driverslicense_v2 | Data_DL_MaxValues | DL_age_over_19_v2 | - @Release @WalletType_Askar_AnonCreds @cred_type_vc_di + @WalletType_Askar_AnonCreds @cred_type_vc_di Examples: | issuer | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Proof_request | | Faber | --public-did --wallet-type askar-anoncreds --cred-type vc_di | --wallet-type askar-anoncreds | driverslicense_v2 | Data_DL_MaxValues | DL_age_over_19_v2 | - @Release @WalletType_Askar_AnonCreds + @WalletType_Askar_AnonCreds Examples: | issuer | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Proof_request | | Faber | --public-did --wallet-type askar-anoncreds | | driverslicense_v2 | Data_DL_MaxValues | DL_age_over_19_v2 | @@ -51,12 +51,12 @@ Feature: RFC 0454 Aries agent present proof When "Faber" sends a request for proof presentation to "Bob" Then "Faber" has the proof verified - @PR @Release @WalletType_Askar + @WalletType_Askar Examples: | issuer | Acme_capabilities | Acme_extra | Bob_capabilities | Bob_extra | Schema_name | Credential_data | Proof_request | | Faber | --public-did --did-exchange --emit-did-peer-2 | | --did-exchange --emit-did-peer-2 | | driverslicense_v2 | Data_DL_MaxValues | DL_age_over_19_v2 | - @PR @Release @WalletType_Askar_AnonCreds + @WalletType_Askar_AnonCreds Examples: | issuer | Acme_capabilities | Acme_extra | Bob_capabilities | Bob_extra | Schema_name | Credential_data | Proof_request | | Faber | --public-did --wallet-type askar-anoncreds --emit-did-peer-2 | | --wallet-type askar-anoncreds --emit-did-peer-2 | | driverslicense_v2 | Data_DL_MaxValues | DL_age_over_19_v2 | @@ -103,17 +103,17 @@ Feature: RFC 0454 Aries agent present proof When "Faber" sends a request for json-ld proof presentation to "Bob" with Then "Faber" has the proof verified - @PR @Release @WalletType_Askar @BBS + @WalletType_Askar @BBS Examples: | issuer | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Proof_request | Key_type | Sig_type | | Acme | --public-did --cred-type json-ld | | driverslicense_v2 | Data_DL_MaxValues | DL_age_over_19_v2 | bls12381g2 | BbsBlsSignature2020 | - @Release @WalletType_Askar @BBS + @WalletType_Askar @BBS Examples: | issuer | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Proof_request | Key_type | Sig_type | | Faber | --public-did --cred-type json-ld --did-exchange | --did-exchange | driverslicense_v2 | Data_DL_MaxValues | DL_age_over_19_v2 | bls12381g2 | BbsBlsSignature2020 | - @PR @Release @WalletType_Askar_AnonCreds @BBS + @WalletType_Askar_AnonCreds @BBS Examples: | issuer | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Proof_request | Key_type | Sig_type | | Faber | --public-did --cred-type json-ld --wallet-type askar-anoncreds | --wallet-type askar-anoncreds | driverslicense_v2 | Data_DL_MaxValues | DL_age_over_19_v2 | bls12381g2 | BbsBlsSignature2020 | @@ -132,22 +132,22 @@ Feature: RFC 0454 Aries agent present proof When "Faber" sends a request for proof presentation to "Bob" Then "Faber" has the proof verification fail - @PR @Release @WalletType_Askar + @WalletType_Askar Examples: | issuer | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Proof_request | | Faber | --revocation --public-did | | driverslicense_v2 | Data_DL_MaxValues | DL_age_over_19_v2 | - @Release @WalletType_Askar + @WalletType_Askar Examples: | issuer | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Proof_request | | Faber | --revocation --public-did --did-exchange | --did-exchange | driverslicense_v2 | Data_DL_MaxValues | DL_age_over_19_v2 | - @PR @Release @WalletType_Askar_AnonCreds + @WalletType_Askar_AnonCreds Examples: | issuer | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Proof_request | | Faber | --revocation --public-did --wallet-type askar-anoncreds | --wallet-type askar-anoncreds | driverslicense_v2 | Data_DL_MaxValues | DL_age_over_19_v2 | - @Release @WalletType_Askar_AnonCreds @cred_type_vc_di + @WalletType_Askar_AnonCreds @cred_type_vc_di Examples: | issuer | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Proof_request | | Faber | --revocation --public-did --wallet-type askar-anoncreds --cred-type vc_di | --wallet-type askar-anoncreds | driverslicense_v2 | Data_DL_MaxValues | DL_age_over_19_v2 | @@ -198,17 +198,17 @@ Feature: RFC 0454 Aries agent present proof When "Faber" sends a request for proof presentation to "Bob" Then "Faber" has the proof verified - @PR @Release @WalletType_Askar + @WalletType_Askar Examples: | issuer1 | Acme1_capabilities | issuer2 | Acme2_capabilities | Bob_cap | Schema_name_1 | Credential_data_1 | Schema_name_2 | Credential_data_2 | Proof_request | | Acme1 | --revocation --public-did | Acme2 | --public-did | | driverslicense_v2 | Data_DL_MaxValues | health_id | Data_DL_MaxValues | DL_age_over_19_v2_with_health_id | - @PR @Release @WalletType_Askar_AnonCreds + @WalletType_Askar_AnonCreds Examples: | issuer1 | Acme1_capabilities | issuer2 | Acme2_capabilities | Bob_cap | Schema_name_1 | Credential_data_1 | Schema_name_2 | Credential_data_2 | Proof_request | | Acme1 | --revocation --public-did --wallet-type askar-anoncreds | Acme2 | --public-did --wallet-type askar-anoncreds | --wallet-type askar-anoncreds | driverslicense_v2 | Data_DL_MaxValues | health_id | Data_DL_MaxValues | DL_age_over_19_v2_with_health_id | - @Release @WalletType_Askar_AnonCreds @cred_type_vc_di + @WalletType_Askar_AnonCreds @cred_type_vc_di Examples: | issuer1 | Acme1_capabilities | issuer2 | Acme2_capabilities | Bob_cap | Schema_name_1 | Credential_data_1 | Schema_name_2 | Credential_data_2 | Proof_request | | Acme1 | --revocation --public-did --wallet-type askar-anoncreds --cred-type vc_di | Acme2 | --public-did --wallet-type askar-anoncreds | --wallet-type askar-anoncreds | driverslicense_v2 | Data_DL_MaxValues | health_id | Data_DL_MaxValues | DL_age_over_19_v2_with_health_id | @@ -229,7 +229,7 @@ Feature: RFC 0454 Aries agent present proof When "Faber" sends a request for proof presentation to "Bob" Then "Faber" has the proof verification fail - @PR @Release @WalletType_Askar + @WalletType_Askar Examples: | issuer1 | Acme1_capabilities | issuer2 | Acme2_capabilities | Bob_cap | Schema_name_1 | Credential_data_1 | Schema_name_2 | Credential_data_2 | Proof_request | | Acme1 | --revocation --public-did | Acme2 | --public-did | | driverslicense_v2 | Data_DL_MaxValues | health_id | Data_DL_MaxValues | DL_age_over_19_v2_with_health_id_r2 | @@ -256,13 +256,13 @@ Feature: RFC 0454 Aries agent present proof When "Faber" sends a request for proof presentation to "Bob" Then "Faber" has the proof verification fail - @PR @Release @WalletType_Askar + @WalletType_Askar Examples: | issuer1 | Acme1_capabilities | issuer2 | Acme2_capabilities | Bob_cap | Schema_name_1 | Credential_data_1 | Schema_name_2 | Credential_data_2 | Proof_request | | Acme1 | --revocation --public-did | Acme2 | --public-did | | driverslicense_v2 | Data_DL_MaxValues | health_id | Data_DL_MaxValues | DL_age_over_19_v2_with_health_id | | Acme1 | --revocation --public-did | Acme2 | --public-did | | driverslicense_v2 | Data_DL_MaxValues | health_id | Data_DL_MaxValues | DL_age_over_19_v2_with_health_id_r2 | - @PR @Release @WalletType_Askar_AnonCreds + @WalletType_Askar_AnonCreds Examples: | issuer1 | Acme1_capabilities | issuer2 | Acme2_capabilities | Bob_cap | Schema_name_1 | Credential_data_1 | Schema_name_2 | Credential_data_2 | Proof_request | | Acme1 | --revocation --public-did --wallet-type askar-anoncreds | Acme2 | --public-did --wallet-type askar-anoncreds | --wallet-type askar-anoncreds | driverslicense_v2 | Data_DL_MaxValues | health_id | Data_DL_MaxValues | DL_age_over_19_v2_with_health_id | @@ -284,17 +284,17 @@ Feature: RFC 0454 Aries agent present proof When "Faber" sends a request with explicit revocation status for proof presentation to "Bob" Then "Faber" has the proof verified - @PR @Release @WalletType_Askar + @WalletType_Askar Examples: | issuer1 | Acme1_capabilities | issuer2 | Acme2_capabilities | Bob_cap | Schema_name_1 | Credential_data_1 | Schema_name_2 | Credential_data_2 | Proof_request | | Acme1 | --revocation --public-did | Acme2 | --public-did | | driverslicense_v2 | Data_DL_MaxValues | health_id | Data_DL_MaxValues | DL_age_over_19_v2_with_health_id_no_revoc | - @PR @Release @WalletType_Askar_AnonCreds + @WalletType_Askar_AnonCreds Examples: | issuer1 | Acme1_capabilities | issuer2 | Acme2_capabilities | Bob_cap | Schema_name_1 | Credential_data_1 | Schema_name_2 | Credential_data_2 | Proof_request | | Acme1 | --revocation --public-did --wallet-type askar-anoncreds | Acme2 | --public-did --wallet-type askar-anoncreds | --wallet-type askar-anoncreds | driverslicense_v2 | Data_DL_MaxValues | health_id | Data_DL_MaxValues | DL_age_over_19_v2_with_health_id_no_revoc | - @PR @Release @WalletType_Askar_AnonCreds @cred_type_vc_di + @WalletType_Askar_AnonCreds @cred_type_vc_di Examples: | issuer1 | Acme1_capabilities | issuer2 | Acme2_capabilities | Bob_cap | Schema_name_1 | Credential_data_1 | Schema_name_2 | Credential_data_2 | Proof_request | | Acme1 | --revocation --public-did --wallet-type askar-anoncreds --cred-type vc_di | Acme2 | --public-did --wallet-type askar-anoncreds | --wallet-type askar-anoncreds | driverslicense_v2 | Data_DL_MaxValues | health_id | Data_DL_MaxValues | DL_age_over_19_v2_with_health_id_no_revoc | diff --git a/docs/deploying/BBSSignatures.md b/docs/deploying/BBSSignatures.md index b03be5e2a2..76579b76fb 100644 --- a/docs/deploying/BBSSignatures.md +++ b/docs/deploying/BBSSignatures.md @@ -24,4 +24,4 @@ WARNNG: if you do NOT have `bbs` installed you should exclude the BBS specific i ./run_bdd -t ~@BBS ``` -See the [Unit](../testing/UnitTests.md) and [Integration](../testing/INTEGRATION-TESTS.md) testing docs for more information on how to run tests. +See the [Unit](../testing/UnitTests.md) and [Integration](../testing/BDDTests.md) testing docs for more information on how to run tests. diff --git a/docs/deploying/ContainerImagesAndGithubActions.md b/docs/deploying/ContainerImagesAndGithubActions.md index 6e891fcddb..91e96c8d37 100644 --- a/docs/deploying/ContainerImagesAndGithubActions.md +++ b/docs/deploying/ContainerImagesAndGithubActions.md @@ -90,7 +90,7 @@ variants and between the BC Gov ACA-Py images. - Publish (`.github/workflows/publish.yml`) - Run on new release published or when manually triggered; builds and pushes the Standard ACA-Py variant to the Github Container Registry. -- Integration Tests (`.github/workflows/integrationtests.yml`) - Run on pull +- BDD Integration Tests (`.github/workflows/BDDTests.yml`) - Run on pull requests (to the hyperledger fork only); runs BDD integration tests. - Format (`.github/workflows/format.yml`) - Run on pull requests; checks formatting of files modified by the PR. diff --git a/docs/testing/INTEGRATION-TESTS.md b/docs/testing/BDDTests.md similarity index 99% rename from docs/testing/INTEGRATION-TESTS.md rename to docs/testing/BDDTests.md index dad1955b6c..8ed9b76472 100644 --- a/docs/testing/INTEGRATION-TESTS.md +++ b/docs/testing/BDDTests.md @@ -28,7 +28,7 @@ cd aries-cloudagent-python/demo Note that an Indy ledger and tails server are both required (these can also be specified using environment variables). -Note also that some tests require a ledger with TAA enabled, how to run these tests will be described later. +Note also that some tests require a ledger with TAA enabled, how to run tEhese tests will be described later. By default the test suite runs using a default (SQLite) wallet, to run the tests using postgres run the following: diff --git a/docs/testing/IntegrationTests.md b/docs/testing/IntegrationTests.md new file mode 100644 index 0000000000..62337102c7 --- /dev/null +++ b/docs/testing/IntegrationTests.md @@ -0,0 +1,24 @@ +# Integration Test Plan + +Integration testing in ACA-Py consists of 3 different levels or types. +1. Interop profile (AATH) BDD tests. +2. ACA-Py specific BDD tests. +3. End to End tests. + +### Interop profile (AATH) BDD tests + +Interoperability is extremely important in the aries community. When implementing or changing features that are included in the [aries interop profile](https://github.com/hyperledger/aries-rfcs/blob/main/concepts/0302-aries-interop-profile/README.md) the developer should try to add tests to this test suite. The tests will then be ran for PR's and scheduled workflows for acapy <--> acapy agents. + +These tests are contained in a separate repo [AATH](https://github.com/hyperledger/aries-agent-test-harness). They use the behave syntax and a http back channel. + + +### ACA-Py specific BDD tests + +These tests leverage the demo agent and also use behave syntax and a back channel. See [README](./BDDTests.md) + +These tests should be used to test RFCS protocols that are specific to aca-py and not in the interop profile. They can also be used for specific features from a fresh environment. + +### End to End tests + +These tests utilize the minimal example [agent](https://github.com/Indicio-tech/acapy-minimal-example) produced by Indicio. + diff --git a/mkdocs.yml b/mkdocs.yml index e25fd638a4..aea28af754 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -145,7 +145,7 @@ nav: - Testing/Troubleshooting: - Running and Creating Unit Tests: testing/UnitTests.md - Managing Logging: testing/Logging.md - - ACA-Py Integration Tests: testing/INTEGRATION-TESTS.md + - ACA-Py Integration BDD Tests: testing/BDDTests.md - Protocol Tracing: testing/AgentTracing.md - Troubleshooting: testing/Troubleshooting.md - Contributing: