Commit Graph
8 Commits
Author SHA1 Message Date
Arnaud Dartois 9e27e89af5 Fix health check failures and align patch dependencies
Heimdall Gitea / Build and tests (pull_request) Failing after 1m34s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-23 03:14:43 +02:00
Arnaud Dartois 8cdbe6c7fa fix(deps): update vulnerable NuGet dependencies without weakening gates 2026-10-20 07:24:18 +02:00
Arnaud Dartois ad2a582b63 build(gitea): reconstruct tests packaging images and release lanes (Refs #1)
Heimdall Gitea / Build and tests (push) Failing after 1m12s
Heimdall Gitea / Publish versioned release (push) Skipped
Heimdall Gitea / Build and tests (pull_request) Failing after 40s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-20 02:29:19 +02:00
Arnaud Dartois 2ee12a39f8 fix(test): extension pg_trgm créée dans la fixture Testcontainers
EnsureCreated() ne joue pas les migrations → l'index GIN trigram (AddBusinessEntities)
échouait avec 'operator class gin_trgm_ops does not exist' sur 15 tests
Infrastructure (CameraEventService, CameraAssignment…). La fixture partagée
crée maintenant l'extension une fois au démarrage (idempotent, couvre CI/local).
Infrastructure.Tests : 169/169 verts.
2026-08-12 09:32:54 +02:00
Arnaud Dartois a6b2a21ebc fix: corriger les issues mineures du review
🟡 SnapshotUrl: validation sécurité SSRF (scheme + loopback)
🟡 Integration tests: skip graceful sans PostgreSQL (TestContainers)
2026-07-27 09:09:14 +00:00
Arnaud Dartois 0ef4642f6d fix(tests): restore DATABASE_URL fallback for CI in shared PostgreSqlContainerFixture
The shared fixture (Heimdall.TestCommon) was refactored from per-project
fixtures but lost the DATABASE_URL env var check. Without it, the fixture
always starts a Testcontainers PostgreSQL container, which fails in CI
when Docker disk space is exhausted (initdb: No space left on device).

Now checks DATABASE_URL first — if set (CI mode), skips Testcontainers
and uses the CI-provided PostgreSQL service. Falls back to Testcontainers
for local development.
2026-07-21 19:59:27 +00:00
Arnaud Dartois 6825880b52 fix: share single PostgreSQL container across test projects via static ref-count
Use a static PostgreSqlContainer with reference counting so both
Infrastructure and Integration test projects share one PostgreSQL
container instead of each starting their own. Fixes resource
conflict in CI where only the first test project could connect.
2026-07-21 19:05:54 +00:00
Arnaud Dartois b167c2afcf fix: share one PostgreSQL Testcontainer across all test projects
Create Heimdall.TestCommon project with a single PostgreSqlContainerFixture
shared by both Infrastructure and Integration tests. This prevents Docker
resource conflicts from starting two PostgreSQL containers and ensures
both test suites connect to the same database instance.

- Move shared fixture to tests/Heimdall.TestCommon
- Remove duplicate fixtures from each test project
- Keep test isolation (truncation) and FK fix from previous commit
- Revert DATABASE_URL env var check (Testcontainers works in CI)
2026-07-21 18:48:39 +00:00