Refactor code structure and optimize performance across multiple modules

This commit is contained in:
StellaOps Bot
2025-12-26 20:03:22 +02:00
parent c786faae84
commit b4fc66feb6
3353 changed files with 88254 additions and 1590657 deletions

View File

@@ -1,13 +1,15 @@
using StellaOps.AirGap.Importer.Contracts;
using StellaOps.AirGap.Importer.Validation;
using StellaOps.TestKit;
namespace StellaOps.AirGap.Importer.Tests;
public class ReplayVerifierTests
{
private readonly ReplayVerifier _verifier = new();
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public void FullRecompute_succeeds_when_hashes_match_and_fresh()
{
var now = DateTimeOffset.Parse("2025-12-02T01:00:00Z");
@@ -28,7 +30,8 @@ public class ReplayVerifierTests
Assert.Equal("full-recompute-passed", result.Reason);
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public void Detects_hash_drift()
{
var now = DateTimeOffset.UtcNow;
@@ -49,7 +52,8 @@ public class ReplayVerifierTests
Assert.Equal("manifest-hash-drift", result.Reason);
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public void PolicyFreeze_requires_matching_policy_hash()
{
var now = DateTimeOffset.UtcNow;