Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run integration tests using external ledger and tails server #1400

Merged
merged 3 commits into from
Sep 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/integrationtests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
uses: actions/checkout@v2
with:
path: acapy
- name: run-von-network
uses: ./acapy/actions/run-von-network
- name: run-indy-tails-server
uses: ./acapy/actions/run-indy-tails-server
#- name: run-von-network
# uses: ./acapy/actions/run-von-network
#- name: run-indy-tails-server
# uses: ./acapy/actions/run-indy-tails-server
- name: run-integration-tests
uses: ./acapy/actions/run-integration-tests
# to run with a specific set of tests include the following parameter:
Expand Down
10 changes: 9 additions & 1 deletion actions/run-integration-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,21 @@ inputs:
description: "Set of flags that defines the test scope"
required: false
default: "-t @GHA"
IN_LEDGER_URL:
description: "URL to the von network ledger browser"
required: false
default: "http://test.bcovrin.vonx.io"
IN_PUBLIC_TAILS_URL:
description: "URL to the tails server"
required: false
default: "https://tails.vonx.io"
runs:
using: "composite"
steps:
- name: run-integration-tests-acapy
# to run with external ledger and tails server run as follows (and remove the ledger and tails actions from the workflow):
# run: LEDGER_URL=http://test.bcovrin.vonx.io PUBLIC_TAILS_URL=https://tails.vonx.io ./run_bdd ${{ inputs.TEST_SCOPE }}
run: ./run_bdd ${{ inputs.TEST_SCOPE }}
run: LEDGER_URL=${{inputs.IN_LEDGER_URL}} PUBLIC_TAILS_URL=${{inputs.IN_PUBLIC_TAILS_URL}} ./run_bdd ${{ inputs.TEST_SCOPE }}
shell: bash
env:
NO_TTY: "1"
Expand Down
2 changes: 2 additions & 0 deletions demo/run_bdd
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ fi
if ! [ -z "$POSTGRES" ]; then
DOCKER_ENV="${DOCKER_ENV} -e POSTGRES=1 -e RUST_BACKTRACE=1"
fi
# e.g. LEDGER_URL=http://test.bcovrin.vonx.io
if ! [ -z "$LEDGER_URL" ]; then
GENESIS_URL="${LEDGER_URL}/genesis"
DOCKER_ENV="${DOCKER_ENV} -e LEDGER_URL=${LEDGER_URL}"
Expand Down Expand Up @@ -205,6 +206,7 @@ if ! [ -z "$TAILS_NETWORK" ]; then
DOCKER_ENV="${DOCKER_ENV} -e TAILS_NETWORK=${TAILS_NETWORK}"
DOCKER_ENV="${DOCKER_ENV} -e TAILS_NGROK_NAME=ngrok-tails-server"
fi
# e.g. PUBLIC_TAILS_URL=https://tails.vonx.io
if ! [ -z "$PUBLIC_TAILS_URL" ]; then
DOCKER_ENV="${DOCKER_ENV} -e PUBLIC_TAILS_URL=${PUBLIC_TAILS_URL}"
fi
Expand Down