test(audit): comprehensive tests for emission, PII redaction, hash chain, enrichers
- AuditPiiRedactorTests: 10 tests for recursive redaction + edge cases - AuditActionFilterTests: 14 tests for capture, enrichment, fallback - AuditModulesAndActionsTests: 3 tests for constant validation - PostgresUnifiedAuditEventStoreTests: 8 tests for hash chain integrity - UnifiedAuditAggregationServiceTests: 6 tests for new query filters - AuditCleanseJobPluginTests: 7 tests for retention logic + validation - PluginRegistryTests: 9 tests for plugin discovery - Authority/Policy enricher tests: 8 tests for GUID resolution - Total: ~65 new tests across 5 test projects - Added InternalsVisibleTo for Audit.Emission and Timeline.WebService - Created AuditCleanseJobPlugin implementation for retention-based cleanup Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -11,6 +11,10 @@
|
||||
<Description>Shared audit event emission infrastructure for StellaOps services. Provides an endpoint filter and DI registration to automatically emit UnifiedAuditEvents to the Timeline service.</Description>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<InternalsVisibleTo Include="StellaOps.Audit.Emission.Tests" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<FrameworkReference Include="Microsoft.AspNetCore.App" />
|
||||
</ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user