tests fixes and sprints work

This commit is contained in:
master
2026-01-22 19:08:46 +02:00
parent c32fff8f86
commit 726d70dc7f
881 changed files with 134434 additions and 6228 deletions

View File

@@ -22,7 +22,7 @@ public sealed class AttestationEventEndpointTests : IClassFixture<NotifierApplic
}
[Trait("Category", TestCategories.Unit)]
[Fact(Skip = "Disabled under in-memory compatibility mode")]
[Fact]
public async Task Attestation_event_is_published_to_queue()
{
var recordingQueue = new RecordingNotifyEventQueue();

View File

@@ -10,7 +10,7 @@ namespace StellaOps.Notifier.Tests;
public sealed class AttestationTemplateSeederTests
{
[Trait("Category", TestCategories.Unit)]
[Fact(Skip = "Offline seeding disabled in in-memory mode")]
[Fact]
public async Task SeedTemplates_and_routing_load_from_offline_bundle()
{
var templateRepo = new InMemoryTemplateRepository();

View File

@@ -43,7 +43,7 @@ public sealed class DigestGeneratorTests
new NullLogger<DigestGenerator>());
}
[Fact(Skip = "Requires persistent storage backend")]
[Fact]
public async Task GenerateAsync_EmptyTenant_ReturnsEmptyDigest()
{
// Arrange
@@ -61,7 +61,7 @@ public sealed class DigestGeneratorTests
Assert.False(result.Summary.HasActivity);
}
[Fact(Skip = "Requires persistent storage backend")]
[Fact]
public async Task GenerateAsync_WithIncidents_ReturnsSummary()
{
// Arrange
@@ -82,7 +82,7 @@ public sealed class DigestGeneratorTests
Assert.True(result.Summary.HasActivity);
}
[Fact(Skip = "Requires persistent storage backend")]
[Fact]
public async Task GenerateAsync_MultipleIncidents_GroupsByEventKind()
{
// Arrange
@@ -109,7 +109,7 @@ public sealed class DigestGeneratorTests
Assert.Equal(1, result.Summary.ByEventKind["pack.approval.required"]);
}
[Fact(Skip = "Requires persistent storage backend")]
[Fact]
public async Task GenerateAsync_RendersContent()
{
// Arrange
@@ -134,7 +134,7 @@ public sealed class DigestGeneratorTests
Assert.Contains("Critical issue", result.Content.PlainText);
}
[Fact(Skip = "Requires persistent storage backend")]
[Fact]
public async Task GenerateAsync_RespectsMaxIncidents()
{
// Arrange
@@ -160,7 +160,7 @@ public sealed class DigestGeneratorTests
Assert.True(result.HasMore);
}
[Fact(Skip = "Requires persistent storage backend")]
[Fact]
public async Task GenerateAsync_FiltersResolvedIncidents()
{
// Arrange
@@ -196,7 +196,7 @@ public sealed class DigestGeneratorTests
Assert.Equal(2, resultInclude.Incidents.Count);
}
[Fact(Skip = "Requires persistent storage backend")]
[Fact]
public async Task GenerateAsync_FiltersEventKinds()
{
// Arrange
@@ -221,7 +221,7 @@ public sealed class DigestGeneratorTests
Assert.Equal("vulnerability.detected", result.Incidents[0].EventKind);
}
[Fact(Skip = "Requires persistent storage backend")]
[Fact]
public async Task PreviewAsync_SetsIsPreviewFlag()
{
// Arrange
@@ -237,7 +237,7 @@ public sealed class DigestGeneratorTests
Assert.True(result.IsPreview);
}
[Fact(Skip = "Requires persistent storage backend")]
[Fact]
public void DigestQuery_LastHours_CalculatesCorrectWindow()
{
// Arrange
@@ -251,7 +251,7 @@ public sealed class DigestGeneratorTests
Assert.Equal(asOf, query.To);
}
[Fact(Skip = "Requires persistent storage backend")]
[Fact]
public void DigestQuery_LastDays_CalculatesCorrectWindow()
{
// Arrange

View File

@@ -177,7 +177,7 @@ public class InMemoryFallbackHandlerTests
Assert.Equal(NotifyChannelType.Teams, tenant2Chain[0]);
}
[Fact(Skip = "Requires persistent storage backend")]
[Fact]
public async Task GetStatisticsAsync_ReturnsAccurateStats()
{
// Arrange - Create various delivery scenarios

View File

@@ -194,7 +194,7 @@ public class ChaosTestRunnerTests
Assert.False(decision.ShouldFail);
}
[Fact(Skip = "Requires persistent storage backend")]
[Fact]
public async Task ShouldFailAsync_LatencyFault_InjectsLatency()
{
// Arrange

View File

@@ -10,7 +10,7 @@ namespace StellaOps.Notifier.Tests;
public sealed class RiskTemplateSeederTests
{
[Trait("Category", TestCategories.Unit)]
[Fact(Skip = "Offline seeding disabled in in-memory mode")]
[Fact]
public async Task SeedTemplates_and_routing_load_from_offline_bundle()
{
var templateRepo = new InMemoryTemplateRepository();