1.3 KiB
1.3 KiB
Integration Test Instructions
Scenarios
- Real host with database (
Api.Tests,Api.AndreaSlopFotografie.Tests/HostPipelineTests):WebApplicationFactoryboots the composed pipeline inDevelopment; checks/health,/api/v1/System/capabilities(Identity and Availability present; Offerings and Master absent),Setup/status(tokenRequired:falsewithout token), the unknown website path (404 withStrictSiteCSP andX-Robots-Tag: noindex, nofollow), and/robots.txt(Disallow: /). The startup migration needs a reachable MariaDB. - Proxy awareness (
Core.Tests/Hosting/Proxy, in-memory, no database): untrusted peers cannot spoofX-Forwarded-For; a trusted proxy yields the real address/scheme and separate limiter buckets; no configuration keeps the old shared bucket. - Prerendered website (
Core.Tests/Hosting/Website, in-memory): routing parity, headers on every response, 404 page, 301 including the percent-encodedLocation.
Environment for scenario 1
Local MariaDB matching appsettings.Development.json, or override ConnectionStrings__DefaultConnection. CI (backend-test) starts mariadb:11 on port 3307 and runs dotnet test SlpModularCms.sln -c Release.
Run
dotnet test SlpModularCms.sln -c Release (with the database available). Cleanup: stop the container.