Skip to content

Commit

Permalink
test: refactor e2e tests with assertions and client models (#759)
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Baliasnikov <[email protected]>
  • Loading branch information
Anton Baliasnikov authored Oct 24, 2023
1 parent e790efe commit 43083a3
Show file tree
Hide file tree
Showing 95 changed files with 1,521 additions and 2,026 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Integration tests

concurrency:
group: ${{ github.head_ref }}${{ github.ref }}-e2e-tests
group: ${{ github.head_ref }}${{ github.ref }}-integration-tests
cancel-in-progress: true

on:
Expand All @@ -16,14 +16,14 @@ on:
defaults:
run:
shell: bash
working-directory: "tests/e2e-tests"
working-directory: "tests/integration-tests"

jobs:
run-e2e-tests:
run-integration-tests:
name: "Run e2e tests"
runs-on: ubuntu-latest
env:
REPORTS_DIR: "tests/e2e-tests/target/site/serenity"
REPORTS_DIR: "tests/integration-tests/target/site/serenity"
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -99,10 +99,13 @@ jobs:
distribution: 'zulu'
java-version: '19'

- name: Run e2e tests
- name: Run integration tests
env:
ATALA_GITHUB_ACTOR: ${{ secrets.ATALA_GITHUB_ACTOR }}
ATALA_GITHUB_TOKEN: ${{ secrets.ATALA_GITHUB_TOKEN }}
continue-on-error: true
run: |
./gradlew test --tests "E2eTestsRunner" || true
./gradlew test --tests "IntegrationTestsRunner" || true
./gradlew reports
- name: Extract test results
Expand Down Expand Up @@ -148,7 +151,7 @@ jobs:
if: github.ref_name == 'main' || steps.analyze_test_results.outputs.conclusion == 'failure'
uses: actions/upload-artifact@v2
with:
name: e2e-tests-result
name: integration-tests-result
path: ${{ env.REPORTS_DIR }}

- name: Slack Notification
Expand Down
2 changes: 2 additions & 0 deletions infrastructure/shared/docker-compose-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ services:
image: ghcr.io/input-output-hk/prism-node:${PRISM_NODE_VERSION}
environment:
NODE_PSQL_HOST: db:5432
NODE_REFRESH_AND_SUBMIT_PERIOD: 1s
NODE_MOVE_SCHEDULED_TO_PENDING_PERIOD: 1s
depends_on:
db:
condition: service_healthy
Expand Down
55 changes: 0 additions & 55 deletions tests/e2e-tests/build.gradle.kts

This file was deleted.

2 changes: 0 additions & 2 deletions tests/e2e-tests/settings.gradle.kts

This file was deleted.

27 changes: 0 additions & 27 deletions tests/e2e-tests/src/main/kotlin/api_models/Connection.kt

This file was deleted.

This file was deleted.

31 changes: 0 additions & 31 deletions tests/e2e-tests/src/main/kotlin/api_models/Credential.kt

This file was deleted.

19 changes: 0 additions & 19 deletions tests/e2e-tests/src/main/kotlin/api_models/CredentialSchema.kt

This file was deleted.

64 changes: 0 additions & 64 deletions tests/e2e-tests/src/main/kotlin/api_models/DidResolutionResult.kt

This file was deleted.

This file was deleted.

16 changes: 0 additions & 16 deletions tests/e2e-tests/src/main/kotlin/api_models/Entity.kt

This file was deleted.

This file was deleted.

49 changes: 0 additions & 49 deletions tests/e2e-tests/src/main/kotlin/api_models/Events.kt

This file was deleted.

4 changes: 0 additions & 4 deletions tests/e2e-tests/src/main/kotlin/api_models/HealthInfo.kt

This file was deleted.

11 changes: 0 additions & 11 deletions tests/e2e-tests/src/main/kotlin/api_models/Invitation.kt

This file was deleted.

12 changes: 0 additions & 12 deletions tests/e2e-tests/src/main/kotlin/api_models/JsonEncoded.kt

This file was deleted.

15 changes: 0 additions & 15 deletions tests/e2e-tests/src/main/kotlin/api_models/ManagedDid.kt

This file was deleted.

Loading

0 comments on commit 43083a3

Please sign in to comment.