chore: vire toute trace d'InMemory, remplace par Testcontainers PostgreSQL
- Supprime InMemory de tous les .csproj (Infrastructure, Domain.Tests, IntegrationTests)\n- Supprime le branchement Database:Provider=InMemory de DependencyInjection.cs\n (plus que du PostgreSQL natif)\n- Infrastructure.Tests: CameraAssignment + CameraEvent tests -> Testcontainers\n- PostgreSqlContainerFixture ajoute aux Infrastructure.Tests\n- appsettings.Testing.json: retire Database:Provider et Hangfire:Enabled\n- 4 tests echouent encore: bugs pre-existants masques par InMemory\n (FK non respectees, donnees de test erronees)\n\nTests: 222/226 passed (4 pre-existants lies aux FK)
This commit is contained in:
1 parent
ee7894646f
commit
58a3ce5b1b
12 files changed
+77
-55
No files matched your search
@@ -29,7 +29,7 @@ public class AuthControllerTests : PostgresTestBase
|
||||
{
|
||||
if (_seeded) return;
|
||||
|
||||
// First registration is auto-admin (no prior users in the InMemory DB)
|
||||
// First registration is auto-admin (no prior users in the DB)
|
||||
var adminEmail = $"admin-{Guid.NewGuid()}@heimdall.test";
|
||||
var regResponse = await _client.PostAsJsonAsync("api/auth/register", new
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user