more audit work

This commit is contained in:
master
2026-01-08 10:21:51 +02:00
parent 43c02081ef
commit 51cf4bc16c
546 changed files with 36721 additions and 4003 deletions

View File

@@ -0,0 +1,29 @@
# StellaOps.TestKit.Tests - Local Agent Charter
## Roles
- Backend developer
- QA automation engineer
## Working directory
- src/__Libraries/__Tests/StellaOps.TestKit.Tests
## Allowed dependencies
- src/__Libraries/StellaOps.TestKit
- src/__Libraries/StellaOps.Canonical.Json
- src/__Tests/__Libraries/StellaOps.Testing.Determinism
## Required reading
- docs/README.md
- docs/07_HIGH_LEVEL_ARCHITECTURE.md
- docs/modules/platform/architecture-overview.md
- docs/modules/cli/contracts/output-determinism.md
## Determinism and test rules
- Use deterministic inputs; avoid DateTime.UtcNow, DateTimeOffset.UtcNow, Guid.NewGuid, and Random.Shared in tests.
- Use TimeProvider and fixed seeds or fixtures for time- and randomness-dependent tests.
- Use CultureInfo.InvariantCulture for parsing and formatting in tests.
- Tag tests with TestCategories (Unit, Integration, Performance) and keep integration tests out of unit-only runs.
## Quality and safety
- ASCII-only strings and comments unless explicitly justified.
- Keep fixtures small and deterministic; clean up temp resources.

View File

@@ -1,3 +1,4 @@
using System.Text.Json;
using FluentAssertions;
using StellaOps.Canonical.Json;
using StellaOps.Testing.Determinism;
@@ -132,7 +133,7 @@ public sealed class DeterminismManifestTests
{
// Arrange
var manifest = CreateSampleManifest() with { SchemaVersion = "2.0" };
var bytes = DeterminismManifestWriter.ToCanonicalBytes(manifest);
var bytes = JsonSerializer.SerializeToUtf8Bytes(manifest);
// Act
Action act = () => DeterminismManifestReader.FromBytes(bytes);

View File

@@ -0,0 +1,10 @@
# StellaOps.TestKit.Tests Task Board
This board mirrors active sprint tasks for this module.
Source of truth: `docs/implplan/SPRINT_20251229_049_BE_csproj_audit_maint_tests.md`.
| Task ID | Status | Notes |
| --- | --- | --- |
| AUDIT-0041-M | DONE | Revalidated 2026-01-08; open findings tracked in audit report. |
| AUDIT-0041-T | DONE | Revalidated 2026-01-08; open findings tracked in audit report. |
| AUDIT-0041-A | DONE | Waived (test project; revalidated 2026-01-08). |