fix(notification-outbox+test): provider-aware InsertIfNotExists for SQLite + supply ApiKeyPepper in IntegrationTests host config (#286)

This commit is contained in:
Joseph Doherty
2026-06-19 01:03:48 -04:00
parent 649e45b5c0
commit 6a4c9a85b8
2 changed files with 37 additions and 0 deletions
@@ -38,6 +38,10 @@ public class ScadaBridgeWebApplicationFactory : WebApplicationFactory<Program>
["ScadaBridge__Database__MachineDataDb"] = "Server=localhost;Database=ScadaBridge_MachineData_Test;TrustServerCertificate=True",
["ScadaBridge__Database__SkipMigrations"] = "true",
["ScadaBridge__Security__JwtSigningKey"] = "integration-test-signing-key-must-be-at-least-32-chars-long",
// The inbound API-key pepper is a REQUIRED Central config value (StartupValidator
// enforces a >=16-char floor; it backs the peppered-HMAC verifier). Supply a fixed
// test pepper so host boot passes validation in the test environment.
["ScadaBridge__InboundApi__ApiKeyPepper"] = "integration-test-api-key-pepper-0123456789",
// Task 1.4: LDAP settings nest under Security:Ldap (shared LdapOptions) and use
// the renamed keys (Transport replaces LdapUseTls; None == plaintext for the
// GLAuth dev directory, paired with AllowInsecure=true).