stabilize tests
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
# StellaOps.Scanner.WebService.Tests Agent Charter
|
||||
|
||||
## Mission
|
||||
Provide deterministic unit and integration tests for the Scanner WebService API surface.
|
||||
|
||||
## Required Reading
|
||||
- `docs/modules/scanner/architecture.md`
|
||||
- `docs/modules/platform/architecture-overview.md`
|
||||
|
||||
## Working Agreement
|
||||
- Update sprint status in `docs/implplan/SPRINT_*.md` and local TASKS.md.
|
||||
- Keep tests deterministic (frozen fixtures, stable ordering).
|
||||
- Add golden snapshot tests for API contract validation.
|
||||
|
||||
## Known Quirks
|
||||
- **Q5 — Large test suite timeout**: This project contains ~776 tests and takes ~19 minutes to complete. CI per-project timeouts below 20 minutes will cause false failures. Set timeout to at least 20 minutes when running this project.
|
||||
@@ -35,7 +35,7 @@ public sealed class ScannerObservabilityContractTests : IClassFixture<ScannerApp
|
||||
using var client = _fixture.CreateClient();
|
||||
|
||||
// Act
|
||||
var response = await client.GetAsync("/health");
|
||||
var response = await client.GetAsync("/healthz");
|
||||
|
||||
// Assert - response is healthy
|
||||
response.EnsureSuccessStatusCode();
|
||||
@@ -70,7 +70,7 @@ public sealed class ScannerObservabilityContractTests : IClassFixture<ScannerApp
|
||||
};
|
||||
|
||||
// Act
|
||||
var response = await client.GetAsync("/health");
|
||||
var response = await client.GetAsync("/healthz");
|
||||
|
||||
// Assert
|
||||
if (capture.CapturedActivities.Count > 0)
|
||||
@@ -156,7 +156,7 @@ public sealed class ScannerObservabilityContractTests : IClassFixture<ScannerApp
|
||||
// Act - make multiple requests to generate counter increments
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
await client.GetAsync("/health");
|
||||
await client.GetAsync("/healthz");
|
||||
}
|
||||
|
||||
// Assert - any counter metrics should be monotonic
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
# StellaOps.Scanner.WebService.Tests Task Board
|
||||
This board mirrors active sprint tasks for this module.
|
||||
Source of truth: `docs/implplan/SPRINT_20260130_002_Tools_csproj_remediation_solid_review.md`.
|
||||
|
||||
| Task ID | Status | Notes |
|
||||
| --- | --- | --- |
|
||||
| REMED-05 | TODO | Remediation checklist: docs/implplan/audits/csproj-standards/remediation/checklists/src/Scanner/__Tests/StellaOps.Scanner.WebService.Tests/StellaOps.Scanner.WebService.Tests.md. |
|
||||
| REMED-06 | DONE | SOLID review notes captured for SPRINT_20260130_002. |
|
||||
Reference in New Issue
Block a user