Skip to content

Commit

Permalink
Merge branch 'main' into NMSHDB-152-Backbone-Administrator-Display-re…
Browse files Browse the repository at this point in the history
…lationships-of-an-identity
  • Loading branch information
stamenione committed Jun 24, 2024
2 parents a62835a + dace53d commit b6c592c
Show file tree
Hide file tree
Showing 7 changed files with 260 additions and 163 deletions.
1 change: 0 additions & 1 deletion .ci/docker-compose.test.postgres.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.3"
services:
### infrastructure ###

Expand Down
1 change: 0 additions & 1 deletion .ci/docker-compose.test.sqlserver.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.3"
services:
### infrastructure ###

Expand Down
25 changes: 6 additions & 19 deletions .ci/docker-compose.test.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
version: "3.3"
services:
consumer-api:
container_name: consumer-api-test
hostname: consumer-api
build:
context: ..
dockerfile: ConsumerApi/Dockerfile
image: consumer-api:0.0.1
environment:
- ASPNETCORE_ENVIRONMENT=Development
ports:
Expand All @@ -24,9 +21,7 @@ services:
admin-ui:
container_name: admin-ui-test
hostname: admin-ui
build:
context: ..
dockerfile: AdminApi/src/AdminApi/Dockerfile
image: admin-ui:0.0.1
environment:
- ASPNETCORE_ENVIRONMENT=Development
ports:
Expand All @@ -42,9 +37,7 @@ services:

event-handler-service:
container_name: event-handler-service-test
build:
context: ..
dockerfile: EventHandlerService/src/EventHandlerService/Dockerfile
image: event-handler-service:0.0.1
environment:
- ASPNETCORE_ENVIRONMENT=Development
depends_on:
Expand All @@ -58,9 +51,7 @@ services:

sse-server:
container_name: sse-server-test
build:
context: ..
dockerfile: SseServer/src/SseServer/Dockerfile
image: sse-server:0.0.1
environment:
- ASPNETCORE_ENVIRONMENT=Development
configs:
Expand All @@ -69,9 +60,7 @@ services:

database-migrator:
container_name: database-migrator-test
build:
context: ..
dockerfile: DatabaseMigrator/Dockerfile
image: database-migrator:0.0.1
depends_on:
seed-database:
condition: service_completed_successfully
Expand Down Expand Up @@ -109,9 +98,7 @@ services:

seed-client:
container_name: seed-client-test
build:
context: ..
dockerfile: Modules/Devices/src/Devices.AdminCli/Dockerfile
image: seed-client:0.0.1
depends_on:
consumer-api:
condition: service_healthy
Expand Down
16 changes: 11 additions & 5 deletions .ci/integrationTest.postgres.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,17 @@ dockerCompose() {
docker compose -f ./.ci/docker-compose.test.yml -f ./.ci/docker-compose.test.postgres.yml "$@"
}

dockerCompose down
dockerCompose build
dockerCompose up -d
dotnet restore "Backbone.sln"
dotnet build --no-restore "Backbone.sln"
{
dockerCompose down;
dockerCompose up -d --no-build
} &
{
dotnet restore "Backbone.sln";
dotnet build --no-restore "Backbone.sln"
}
wait

export CONSUMER_API_BASE_ADDRESS="http://localhost:5000"
export ADMIN_API_BASE_ADDRESS="http://localhost:5173"

dotnet test --no-restore --no-build --filter "Category=Integration&TestCategory!~ignore" --logger "GitHubActions;summary.includeNotFoundTests=false" "Backbone.sln"
16 changes: 11 additions & 5 deletions .ci/integrationTest.sqlserver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,17 @@ dockerCompose() {
docker compose -f ./.ci/docker-compose.test.yml -f ./.ci/docker-compose.test.sqlserver.yml "$@"
}

dockerCompose down
dockerCompose build
dockerCompose up -d
dotnet restore "Backbone.sln"
dotnet build --no-restore "Backbone.sln"
{
dockerCompose down;
dockerCompose up -d --no-build
} &
{
dotnet restore "Backbone.sln";
dotnet build --no-restore "Backbone.sln"
}
wait

export CONSUMER_API_BASE_ADDRESS="http://localhost:5000"
export ADMIN_API_BASE_ADDRESS="http://localhost:5173"

dotnet test --no-restore --no-build --filter "Category=Integration&TestCategory!~ignore" --logger "GitHubActions;summary.includeNotFoundTests=false" "Backbone.sln"
6 changes: 6 additions & 0 deletions .ci/loadDockerImages.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
set -e

for f in /tmp/*.tar; do
docker load --input $f
done
Loading

0 comments on commit b6c592c

Please sign in to comment.