Skip to content

Commit aeffe4c

Browse files
authored
Merge pull request #4052 from OpSecId/fix-bdd-tests
FIX BDD interop integration tests
2 parents f8abeb5 + 8edd236 commit aeffe4c

File tree

2 files changed

+24
-17
lines changed

2 files changed

+24
-17
lines changed

.github/workflows/bdd-interop-tests.yml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
- name: Prepare Interop Tests
6767
if: (steps.check-if-src-changed.outputs.run_tests != 'false' || steps.check_if_release.outputs.is_release == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
6868
run: |
69-
# Get AATH
69+
# Get AATH
7070
git clone https://github.com/openwallet-foundation/owl-agent-test-harness.git
7171
7272
# Change fork and branch for pull requests
@@ -83,27 +83,32 @@ jobs:
8383
if: (steps.check_if_release.outputs.is_release != 'true' && github.event_name == 'pull_request' && steps.check-if-src-changed.outputs.run_tests != 'false')
8484
run: |
8585
cd owl-agent-test-harness
86-
NO_TTY=1 LEDGER_URL_CONFIG=https://test.bcovrin.vonx.io TAILS_SERVER_URL_CONFIG=https://tails.vonx.io ./manage run -d acapy-main -t @critical -t ~@wip -t ~@T004-RFC0211 -t ~@DidMethod_orb -t ~@Transport_NoHttpOutbound -t ~@Anoncreds >> output.txt
86+
LEDGER_TIMEOUT=180 NO_TTY=1 LEDGER_URL_CONFIG=https://test.bcovrin.vonx.io TAILS_SERVER_URL_CONFIG=https://tails.vonx.io ./manage run -d acapy-main -t @critical -t ~@wip -t ~@T004-RFC0211 -t ~@DidMethod_orb -t ~@Transport_NoHttpOutbound -t ~@Anoncreds 2>&1 | tee output.txt
8787
- name: Run Release or Nightly Interop Tests Indy
8888
if: (steps.check_if_release.outputs.is_release == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' && steps.check-if-src-changed.outputs.run_tests != 'false')
8989
run: |
9090
cd owl-agent-test-harness
91-
NO_TTY=1 LEDGER_URL_CONFIG=https://test.bcovrin.vonx.io TAILS_SERVER_URL_CONFIG=https://tails.vonx.io ./manage run -d acapy-main -t @critical -t ~@wip -t ~@T004-RFC0211 -t ~@DidMethod_orb -t ~@Transport_NoHttpOutbound -t ~@Anoncreds >> output.txt
91+
LEDGER_TIMEOUT=180 NO_TTY=1 LEDGER_URL_CONFIG=https://test.bcovrin.vonx.io TAILS_SERVER_URL_CONFIG=https://tails.vonx.io ./manage run -d acapy-main -t @critical -t ~@wip -t ~@T004-RFC0211 -t ~@DidMethod_orb -t ~@Transport_NoHttpOutbound -t ~@Anoncreds 2>&1 | tee output.txt
9292
- name: Run Release or Nightly Interop Tests AnonCreds
9393
if: (steps.check_if_release.outputs.is_release == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' && steps.check-if-src-changed.outputs.run_tests != 'false')
9494
run: |
9595
cd owl-agent-test-harness
96-
BACKCHANNEL_EXTRA_acapy_main="{\"wallet-type\":\"askar-anoncreds\"}" NO_TTY=1 LEDGER_URL_CONFIG=https://test.bcovrin.vonx.io TAILS_SERVER_URL_CONFIG=https://tails.vonx.io ./manage run -d acapy-main -t @AcceptanceTest -t ~@wip -t ~@T004-RFC0211 -t ~@DidMethod_orb -t ~@Transport_NoHttpOutbound -t ~@Indy -t ~@CredFormat_Indy >> output.txt
96+
LEDGER_TIMEOUT=180 BACKCHANNEL_EXTRA_acapy_main="{\"wallet-type\":\"askar-anoncreds\"}" NO_TTY=1 LEDGER_URL_CONFIG=https://test.bcovrin.vonx.io TAILS_SERVER_URL_CONFIG=https://tails.vonx.io ./manage run -d acapy-main -t @AcceptanceTest -t ~@wip -t ~@T004-RFC0211 -t ~@DidMethod_orb -t ~@Transport_NoHttpOutbound -t ~@Indy -t ~@CredFormat_Indy 2>&1 | tee output.txt
9797
- name: Check If Tests Failed
98-
if: steps.check-if-src-changed.outputs.run_tests != 'false'
98+
if: always() && (steps.check-if-src-changed.outputs.run_tests != 'false')
9999
run: |
100100
cd owl-agent-test-harness
101-
cat output.txt
102-
if grep "Failing scenarios:" output.txt; then
103-
echo "Tests failed"
104-
exit 1
101+
if [ -f output.txt ]; then
102+
cat output.txt
103+
if grep "Failing scenarios:" output.txt; then
104+
echo "Tests failed"
105+
exit 1
106+
else
107+
echo "Tests passed"
108+
exit 0
109+
fi
105110
else
106-
echo "Tests passed"
107-
exit 0
111+
echo "No output file found - tests may not have run"
112+
exit 1
108113
fi
109114

acapy_agent/config/logging/configurator.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -377,13 +377,15 @@ def print_notices(cls, settings: Settings):
377377
)
378378
banner.hr()
379379
banner.print(
380-
"Aries RFC 0036: Issue Credential 1.0 is deprecated "
381-
"and support will be removed in a future release; "
382-
"use RFC 0453: Issue Credential 2.0 instead."
380+
"Aries RFC 0036: Issue Credential 1.0 has been removed "
381+
"from ACA-Py core. To continue using this protocol, "
382+
"enable the issue-credential plugin from "
383+
"https://github.com/openwallet-foundation/acapy-plugins"
383384
)
384385
banner.hr()
385386
banner.print(
386-
"Aries RFC 0037: Present Proof 1.0 is deprecated "
387-
"and support will be removed in a future release; "
388-
"use RFC 0454: Present Proof 2.0 instead."
387+
"Aries RFC 0037: Present Proof 1.0 has been removed "
388+
"from ACA-Py core. To continue using this protocol, "
389+
"enable the present-proof plugin from "
390+
"https://github.com/openwallet-foundation/acapy-plugins"
389391
)

0 commit comments

Comments
 (0)