Skip to content

Commit 2ae8f0e

Browse files
committed
Pin sara integration-test container to ConnectionString auth
1 parent 74b52f1 commit 2ae8f0e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

  • robotics_integration_tests/custom_containers

robotics_integration_tests/custom_containers/sara.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ def create_sara_container(
4343
.with_env("Mqtt__Password", settings.SARA_MQTT_PASSWORD)
4444
.with_env("Mqtt__Username", "sara")
4545
.with_env("ASPNETCORE_ENVIRONMENT", settings.ASPNETCORE_ENVIRONMENT)
46+
# Pin the integration-test container to the ConnectionString auth path.
47+
# sara's appsettings.Development.json now lists AppRegIdentity first
48+
# (equinor/sara#396), which would otherwise wire EF Core against the
49+
# dev Azure PostgreSQL server (unreachable from the test docker
50+
# network). Mirrors the migration-workflow override in
51+
# .github/workflows/run_dotnet_migrations.yml (PR #73).
52+
.with_env("Database__AllowedAuthMethods__0", "ConnectionString")
4653
.with_env("AZURE_CLIENT_SECRET", settings.SARA_AZURE_CLIENT_SECRET)
4754
.with_env("AZURE_CLIENT_ID", settings.SARA_AZURE_CLIENT_ID)
4855
.with_env("AZURE_TENANT_ID", settings.SARA_AZURE_TENANT_ID)

0 commit comments

Comments
 (0)