test fixes and new product advisories work
This commit is contained in:
@@ -1,11 +1,18 @@
|
||||
using System.Collections.Immutable;
|
||||
using StellaOps.Policy.Crypto;
|
||||
using StellaOps.Policy.Engine.Crypto;
|
||||
using StellaOps.TestKit;
|
||||
using StellaOps.TestKit.Traits;
|
||||
using Xunit;
|
||||
using EngineCryptoRiskEvaluator = StellaOps.Policy.Engine.Crypto.CryptoRiskEvaluator;
|
||||
|
||||
namespace StellaOps.Policy.Engine.Tests.Crypto;
|
||||
|
||||
/// <summary>
|
||||
/// Tests for cryptographic risk evaluation to detect weak or deprecated algorithms.
|
||||
/// </summary>
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Intent(TestIntents.Safety, "Cryptographic weakness detection prevents security vulnerabilities")]
|
||||
public sealed class CryptoRiskEvaluatorTests
|
||||
{
|
||||
private readonly EngineCryptoRiskEvaluator _evaluator = new();
|
||||
|
||||
@@ -1,9 +1,16 @@
|
||||
using FluentAssertions;
|
||||
using StellaOps.Policy.Engine.DeterminismGuard;
|
||||
using StellaOps.TestKit;
|
||||
using StellaOps.TestKit.Traits;
|
||||
using Xunit;
|
||||
|
||||
namespace StellaOps.Policy.Engine.Tests.DeterminismGuard;
|
||||
|
||||
/// <summary>
|
||||
/// Tests for determinism guard infrastructure ensuring policy evaluation reproducibility.
|
||||
/// </summary>
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Intent(TestIntents.Safety, "Determinism is critical for reproducible evidence and audit trails")]
|
||||
public sealed class DeterminismGuardTests
|
||||
{
|
||||
#region ProhibitedPatternAnalyzer Tests
|
||||
|
||||
@@ -7,10 +7,16 @@ using StellaOps.Policy.Engine.Services;
|
||||
using StellaOps.Policy.Engine.Snapshots;
|
||||
using StellaOps.Policy.Engine.TrustWeighting;
|
||||
using StellaOps.Policy.Engine.Violations;
|
||||
|
||||
using StellaOps.TestKit;
|
||||
using StellaOps.TestKit.Traits;
|
||||
|
||||
namespace StellaOps.Policy.Engine.Tests;
|
||||
|
||||
/// <summary>
|
||||
/// Tests for policy decision service ensuring correct allow/deny verdicts.
|
||||
/// </summary>
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Intent(TestIntents.Regulatory, "Policy decisions affect compliance and must be auditable")]
|
||||
public sealed class PolicyDecisionServiceTests
|
||||
{
|
||||
private static (PolicyDecisionService service, string snapshotId) BuildService()
|
||||
|
||||
@@ -2,10 +2,17 @@ using System.Collections.Immutable;
|
||||
using FluentAssertions;
|
||||
using Microsoft.Extensions.Time.Testing;
|
||||
using StellaOps.Policy.Engine.Telemetry;
|
||||
using StellaOps.TestKit;
|
||||
using StellaOps.TestKit.Traits;
|
||||
using Xunit;
|
||||
|
||||
namespace StellaOps.Policy.Engine.Tests.Telemetry;
|
||||
|
||||
/// <summary>
|
||||
/// Tests for policy telemetry infrastructure ensuring proper observability.
|
||||
/// </summary>
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Intent(TestIntents.Operational, "Telemetry is critical for observability and incident response")]
|
||||
public sealed class TelemetryTests
|
||||
{
|
||||
#region RuleHitTrace Tests
|
||||
|
||||
@@ -3,6 +3,8 @@ using Moq;
|
||||
using StellaOps.Policy.Exceptions.Models;
|
||||
using StellaOps.Policy.Exceptions.Repositories;
|
||||
using StellaOps.Policy.Exceptions.Services;
|
||||
using StellaOps.TestKit;
|
||||
using StellaOps.TestKit.Traits;
|
||||
using Xunit;
|
||||
|
||||
namespace StellaOps.Policy.Tests.Exceptions;
|
||||
@@ -10,6 +12,8 @@ namespace StellaOps.Policy.Tests.Exceptions;
|
||||
/// <summary>
|
||||
/// Unit tests for ExceptionEvaluator service.
|
||||
/// </summary>
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Intent(TestIntents.Regulatory, "Exception handling affects compliance decisions and audit trails")]
|
||||
public sealed class ExceptionEvaluatorTests
|
||||
{
|
||||
private readonly Mock<IExceptionRepository> _repositoryMock;
|
||||
|
||||
Reference in New Issue
Block a user