Change localhost to host.internal in ci.yml
This commit is contained in:
@@ -54,17 +54,17 @@ jobs:
|
|||||||
- name: Test
|
- name: Test
|
||||||
env:
|
env:
|
||||||
# Defaults match docker-compose.yml published ports; fixtures fall back to these anyway.
|
# Defaults match docker-compose.yml published ports; fixtures fall back to these anyway.
|
||||||
ConnectionStrings__DefaultConnection: "Host=localhost;Port=5436;Database=vigilcare_test;Username=postgres;Password=password"
|
ConnectionStrings__DefaultConnection: "Host=host.docker.internal;Port=5436;Database=vigilcare_test;Username=postgres;Password=password"
|
||||||
ConnectionStrings__GatewayDb: "Host=localhost;Port=5437;Database=vigilcare_ward_test;Username=postgres;Password=password"
|
ConnectionStrings__GatewayDb: "Host=host.docker.internal;Port=5437;Database=vigilcare_ward_test;Username=postgres;Password=password"
|
||||||
Redis__ConnectionString: "localhost:6382,defaultDatabase=1,allowAdmin=true"
|
Redis__ConnectionString: "host.docker.internal:6382,defaultDatabase=1,allowAdmin=true"
|
||||||
Gateway__Redis__ConnectionString: "localhost:6383,defaultDatabase=2,allowAdmin=true"
|
Gateway__Redis__ConnectionString: "host.docker.internal:6383,defaultDatabase=2,allowAdmin=true"
|
||||||
RabbitMq__Host: "localhost"
|
RabbitMq__Host: "host.docker.internal"
|
||||||
RabbitMq__Port: "5674"
|
RabbitMq__Port: "5674"
|
||||||
Gateway__RabbitMq__Port: "5675"
|
Gateway__RabbitMq__Port: "5675"
|
||||||
Kafka__BootstrapServers: "localhost:9092"
|
Kafka__BootstrapServers: "host.docker.internal:9092"
|
||||||
Kafka__ReplicationFactor: "1"
|
Kafka__ReplicationFactor: "1"
|
||||||
Elasticsearch__Uri: "http://localhost:9200"
|
Elasticsearch__Uri: "http://host.docker.internal:9200"
|
||||||
Minio__Endpoint: "localhost:9005"
|
Minio__Endpoint: "host.docker.internal:9005"
|
||||||
run: |
|
run: |
|
||||||
dotnet test VigilCareClinical.sln -c Release --no-build \
|
dotnet test VigilCareClinical.sln -c Release --no-build \
|
||||||
--logger "trx;LogFileName=test-results.trx" \
|
--logger "trx;LogFileName=test-results.trx" \
|
||||||
|
|||||||
Reference in New Issue
Block a user