Skip to content

Commit

Permalink
test: use integration tests from public source
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Baliasnikov committed Aug 22, 2023
1 parent a1bd657 commit 5b9a431
Show file tree
Hide file tree
Showing 33 changed files with 11 additions and 1,467 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ on:
defaults:
run:
shell: bash
working-directory: "tests/mediator-integration-tests"

jobs:
run-integration-tests:
Expand All @@ -25,11 +24,17 @@ jobs:
GITHUB_TOKEN: ${{ secrets.ATALA_GITHUB_TOKEN }}
ATALA_GITHUB_ACTOR: ${{ secrets.ATALA_GITHUB_ACTOR }}
ATALA_GITHUB_TOKEN: ${{ secrets.ATALA_GITHUB_TOKEN }}
REPORTS_DIR: "tests/mediator-integration-tests/target/site/serenity"
REPORTS_DIR: "didcomm-v2-mediator-test-suite/target/site/serenity"
steps:
- name: Checkout
- name: Checkout mediator
uses: actions/checkout@v3

- name: Checkout tests
uses: actions/checkout@v3
with:
repository: input-output-hk/didcomm-v2-mediator-test-suite
path: './didcomm-v2-mediator-test-suite'

- name: Setup Java and Scala
uses: olafurpg/setup-scala@v13
with:
Expand Down Expand Up @@ -58,10 +63,8 @@ jobs:

- name: Build local version of Mediator Agent
env:
MEDIATOR_PATH: "../.."
NODE_OPTIONS: "--openssl-legacy-provider"
run: |
cd "${MEDIATOR_PATH}" || exit 129
sbt -mem 2048 -J-Xmx5120m docker:publishLocal
MEDIATOR_VERSION=$(cut version.sbt -d '=' -f2 | tr -d '" ')
echo "MEDIATOR_VERSION=${MEDIATOR_VERSION}" >> $GITHUB_ENV
Expand All @@ -73,9 +76,10 @@ jobs:
compose-flags: ""
up-flags: "--wait"
down-flags: "--volumes"
- name: Run e2e tests
continue-on-error: true

- name: Run tests
run: |
cd ./didcomm-v2-mediator-test-suite
./gradlew test || true
./gradlew reports
Expand Down
42 changes: 0 additions & 42 deletions tests/mediator-integration-tests/.gitignore

This file was deleted.

84 changes: 0 additions & 84 deletions tests/mediator-integration-tests/build.gradle.kts

This file was deleted.

3 changes: 0 additions & 3 deletions tests/mediator-integration-tests/gradle.properties

This file was deleted.

Binary file not shown.

This file was deleted.

Loading

0 comments on commit 5b9a431

Please sign in to comment.