From 356c0b9544bd6e09ecd9babacc960537884f1b84 Mon Sep 17 00:00:00 2001 From: Timo Notheisen Date: Thu, 4 Jul 2024 14:35:22 +0200 Subject: [PATCH] ci: remove single integration tests --- .github/workflows/test.yml | 206 ------------------------------------- 1 file changed, 206 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b6a6290b8e..cc881ffe09 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -252,212 +252,6 @@ jobs: key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }} restore-keys: ${{ runner.os }}-nuget- - integration-test-sqlserver: - name: Run Integration Tests (on SQL Server) - runs-on: ubuntu-latest - needs: image-test-builds - steps: - - name: Checkout - uses: actions/checkout@v4 - - - uses: actions/setup-node@v4 - with: - node-version: latest - cache: "npm" - cache-dependency-path: "**/package-lock.json" - - - name: Setup NuGet - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.x - - - name: Download cached Docker images - uses: actions/download-artifact@v4 - with: - path: /tmp - pattern: docker-* - merge-multiple: true - - - name: Load Docker images and build test code - run: | - { - ./.ci/loadDockerImages.sh - } & - { - dotnet restore Backbone.sln; - dotnet build --no-restore Backbone.sln - } - wait - - #### Admin UI integration tests - - - name: Restart compose stack - id: restart-compose-stack-1 - run: | - docker compose -f ./.ci/compose.test.yml -f ./.ci/compose.test.sqlserver.yml -f ./.ci/compose.test.aui.yml down -v - docker compose -f ./.ci/compose.test.yml -f ./.ci/compose.test.sqlserver.yml -f ./.ci/compose.test.aui.yml up --no-build --wait -d - - - name: Run Admin UI integration tests - id: run-aui-integration-tests - if: (success() || failure()) && (steps.restart-compose-stack-1.outcome == 'success') - run: dotnet test --no-restore --no-build --logger "GitHubActions;summary.includeNotFoundTests=false" AdminApi/test/AdminApi.Tests.Integration - env: - ADMIN_API_BASE_ADDRESS: "http://localhost:5173" - - - name: Save Docker Logs - if: (success() || failure()) && (steps.run-aui-integration-tests.outcome == 'failure') - run: docker compose -f ./.ci/compose.test.aui.yml logs > aui.integration-test.sqlserver.txt - - #### Consumer API integration tests - - - name: Restart compose stack - id: restart-compose-stack-2 - if: success() || failure() - run: | - docker compose -f ./.ci/compose.test.yml -f ./.ci/compose.test.sqlserver.yml -f ./.ci/compose.test.capi.yml down -v - docker compose -f ./.ci/compose.test.yml -f ./.ci/compose.test.sqlserver.yml -f ./.ci/compose.test.capi.yml up --no-build --wait -d - - - name: Run Consumer API integration tests - id: run-capi-integration-tests - if: (success() || failure()) && (steps.restart-compose-stack-2.outcome == 'success') - run: dotnet test --no-restore --no-build --logger "GitHubActions;summary.includeNotFoundTests=false" AdminApi/test/AdminApi.Tests.Integration - env: - CONSUMER_API_BASE_ADDRESS: "http://localhost:5000" - - - name: Save Docker Logs - if: (success() || failure()) && (steps.run-capi-integration-tests.outcome == 'failure') - run: docker compose -f ./.ci/compose.test.capi.yml logs > capi.integration-test.sqlserver.txt - - #### Identity Deletion Job integration tests - - - name: Restart compose stack - id: restart-compose-stack-3 - if: success() || failure() - run: | - docker compose -f ./.ci/compose.test.yml -f ./.ci/compose.test.sqlserver.yml down -v - docker compose -f ./.ci/compose.test.yml -f ./.ci/compose.test.sqlserver.yml up --no-build --wait -d - - - name: Run Identity Deletion Job integration tests - id: run-idj-integration-tests - if: (success() || failure()) && (steps.restart-compose-stack-3.outcome == 'success') - run: | - mv Jobs/test/Job.IdentityDeletion.Tests.Integration/appsettings.override.json ./Jobs/test/Job.IdentityDeletion.Tests.Integration/appsettings.override.json.bak - cp .ci/appsettings.override.sqlserver.local.json Jobs/test/Job.IdentityDeletion.Tests.Integration/appsettings.override.json - dotnet build --no-restore Jobs/test/Job.IdentityDeletion.Tests.Integration - dotnet test --no-restore --no-build --logger "GitHubActions;summary.includeNotFoundTests=false" Jobs/test/Job.IdentityDeletion.Tests.Integration - - - name: Archive logs - if: failure() - uses: actions/upload-artifact@v4 - with: - name: aui.integration-test.sqlserver - path: capi.integration-test.sqlserver.txt - env: - DOTNET_CONSOLE_ANSI_COLOR: true - - integration-test-postgres: - name: Run Integration Tests (on SQL Server) - runs-on: ubuntu-latest - needs: image-test-builds - steps: - - name: Checkout - uses: actions/checkout@v4 - - - uses: actions/setup-node@v4 - with: - node-version: latest - cache: "npm" - cache-dependency-path: "**/package-lock.json" - - - name: Setup NuGet - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.x - - - name: Download cached Docker images - uses: actions/download-artifact@v4 - with: - path: /tmp - pattern: docker-* - merge-multiple: true - - - name: Load Docker images and build test code - run: | - { - ./.ci/loadDockerImages.sh - } & - { - dotnet restore Backbone.sln; - dotnet build --no-restore Backbone.sln - } - wait - - #### Admin UI integration tests - - - name: Restart compose stack - id: restart-compose-stack-1 - run: | - docker compose -f ./.ci/compose.test.yml -f ./.ci/compose.test.postgres.yml -f ./.ci/compose.test.aui.yml down -v - docker compose -f ./.ci/compose.test.yml -f ./.ci/compose.test.postgres.yml -f ./.ci/compose.test.aui.yml up --no-build --wait -d - - - name: Run Admin UI integration tests - id: run-aui-integration-tests - if: (success() || failure()) && (steps.restart-compose-stack-1.outcome == 'success') - run: dotnet test --no-restore --no-build --logger "GitHubActions;summary.includeNotFoundTests=false" AdminApi/test/AdminApi.Tests.Integration - env: - ADMIN_API_BASE_ADDRESS: "http://localhost:5173" - - - name: Save Docker Logs - if: (success() || failure()) && (steps.run-aui-integration-tests.outcome == 'failure') - run: docker compose -f ./.ci/compose.test.aui.yml logs > aui.integration-test.postgres.txt - - #### Consumer API integration tests - - - name: Restart compose stack - id: restart-compose-stack-2 - if: success() || failure() - run: | - docker compose -f ./.ci/compose.test.yml -f ./.ci/compose.test.postgres.yml -f ./.ci/compose.test.capi.yml down -v - docker compose -f ./.ci/compose.test.yml -f ./.ci/compose.test.postgres.yml -f ./.ci/compose.test.capi.yml up --no-build --wait -d - - - name: Run Consumer API integration tests - id: run-capi-integration-tests - if: (success() || failure()) && (steps.restart-compose-stack-2.outcome == 'success') - run: dotnet test --no-restore --no-build --logger "GitHubActions;summary.includeNotFoundTests=false" AdminApi/test/AdminApi.Tests.Integration - env: - CONSUMER_API_BASE_ADDRESS: "http://localhost:5000" - - - name: Save Docker Logs - if: (success() || failure()) && (steps.run-capi-integration-tests.outcome == 'failure') - run: docker compose -f ./.ci/compose.test.capi.yml logs > capi.integration-test.postgres.txt - - #### Identity Deletion Job integration tests - - - name: Restart compose stack - id: restart-compose-stack-3 - if: success() || failure() - run: | - docker compose -f ./.ci/compose.test.yml -f ./.ci/compose.test.postgres.yml down -v - docker compose -f ./.ci/compose.test.yml -f ./.ci/compose.test.postgres.yml up --no-build --wait -d - - - name: Run Identity Deletion Job integration tests - id: run-idj-integration-tests - if: (success() || failure()) && (steps.restart-compose-stack-3.outcome == 'success') - run: | - mv Jobs/test/Job.IdentityDeletion.Tests.Integration/appsettings.override.json ./Jobs/test/Job.IdentityDeletion.Tests.Integration/appsettings.override.json.bak - cp .ci/appsettings.override.postgres.local.json Jobs/test/Job.IdentityDeletion.Tests.Integration/appsettings.override.json - dotnet build --no-restore Jobs/test/Job.IdentityDeletion.Tests.Integration - dotnet test --no-restore --no-build --logger "GitHubActions;summary.includeNotFoundTests=false" Jobs/test/Job.IdentityDeletion.Tests.Integration - - - name: Archive logs - if: failure() - uses: actions/upload-artifact@v4 - with: - name: aui.integration-test.postgres - path: capi.integration-test.postgres.txt - env: - DOTNET_CONSOLE_ANSI_COLOR: true - transport-test-sqlserver: name: Run transport Tests (on SQL Server) runs-on: ubuntu-latest