Skip to content

Commit

Permalink
Merge pull request #1400 from ianco/master
Browse files Browse the repository at this point in the history
Run integration tests using external ledger and tails server
  • Loading branch information
andrewwhitehead authored Sep 8, 2021
2 parents 515db7e + d307b13 commit 46729f0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
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

0 comments on commit 46729f0

Please sign in to comment.