test fixes and new product advisories work

This commit is contained in:
master
2026-01-28 02:30:48 +02:00
parent 82caceba56
commit 644887997c
288 changed files with 69101 additions and 375 deletions

View File

@@ -20,6 +20,7 @@ using StellaOps.EvidenceLocker.Core.Domain;
using StellaOps.EvidenceLocker.Core.Repositories;
using StellaOps.EvidenceLocker.Infrastructure.Db;
using StellaOps.EvidenceLocker.Infrastructure.Repositories;
using StellaOps.TestKit.Evidence;
using Xunit;
namespace StellaOps.EvidenceLocker.Tests;
@@ -68,6 +69,7 @@ public sealed class EvidenceBundleImmutabilityTests : IAsyncLifetime
// EVIDENCE-5100-001: Once stored, artifact cannot be overwritten
[Fact]
[Requirement("REQ-EVIDENCE-IMMUTABILITY-001", SprintTaskId = "EVIDENCE-5100-001", ComplianceControl = "SOC2-CC6.1")]
public async Task CreateBundle_SameId_SecondInsertFails()
{
if (_skipReason is not null)
@@ -157,6 +159,7 @@ public sealed class EvidenceBundleImmutabilityTests : IAsyncLifetime
}
[Fact]
[Requirement("REQ-EVIDENCE-SEAL-001", SprintTaskId = "EVIDENCE-5100-001", ComplianceControl = "SOC2-CC6.1")]
public async Task SealedBundle_CannotBeModified()
{
if (_skipReason is not null)
@@ -239,6 +242,7 @@ public sealed class EvidenceBundleImmutabilityTests : IAsyncLifetime
// EVIDENCE-5100-002: Simultaneous writes to same key → deterministic behavior
[Fact]
[Requirement("REQ-EVIDENCE-CONCURRENCY-001", SprintTaskId = "EVIDENCE-5100-002", ComplianceControl = "SOC2-CC7.1")]
public async Task ConcurrentCreates_SameId_ExactlyOneFails()
{
if (_skipReason is not null)