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

test: refactor integration tests - assertions, client models #759

Merged
merged 4 commits into from
Oct 24, 2023
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
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.

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
Loading