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

@@ -1,4 +1,4 @@
Microsoft Visual Studio Solution File, Format Version 12.00
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
@@ -54,19 +54,19 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "StellaOps.Infrastructure.Po
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "StellaOps.Notify.Persistence", "StellaOps.Notify.Persistence", "{C5F86BAD-155A-591C-9610-55D40F59C775}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "StellaOps.Notify.Queue", "StellaOps.Notify.Queue", "{4F9F3B3A-221C-4F00-B4E9-4AA44C0C8F9A}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Router", "Router", "{FC018E5B-1E2F-DE19-1E97-0C845058C469}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "__Libraries", "__Libraries", "{1BE5B76C-B486-560B-6CB2-44C6537249AA}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "StellaOps.Microservice", "StellaOps.Microservice", "{3DE1DCDC-C845-4AC7-7B66-34B0A9E8626B}"
EndProject
@@ -74,19 +74,19 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StellaOps.Notifier.WebServi
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "StellaOps.Microservice.AspNetCore", "StellaOps.Microservice.AspNetCore", "{6FA01E92-606B-0CB8-8583-6F693A903CFC}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "StellaOps.Router.AspNet", "StellaOps.Router.AspNet", "{A5994E92-7E0E-89FE-5628-DE1A0176B8BA}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "StellaOps.Router.Common", "StellaOps.Router.Common", "{54C11B29-4C54-7255-AB44-BEB63AF9BD1F}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "__Libraries", "__Libraries", "{1345DD29-BB3A-FB5F-4B3D-E29F6045A27A}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "StellaOps.Canonical.Json", "StellaOps.Canonical.Json", "{79E122F4-2325-3E92-438E-5825A307B594}"
EndProject
@@ -213,3 +213,4 @@ Global
{A63897D9-9531-989B-7309-E384BCFC2BB9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A63897D9-9531-989B-7309-E384BCFC2BB9}.Debug|Any CPU.Build.0 = Debug|Any CPU

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();