Skip to content

Commit

Permalink
ci: remove single integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tnotheis committed Jul 4, 2024
1 parent 7a82e4b commit 356c0b9
Showing 1 changed file with 0 additions and 206 deletions.
206 changes: 0 additions & 206 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 356c0b9

Please sign in to comment.