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 f10d83c444
1385 changed files with 69732 additions and 10280 deletions

View File

@@ -15,7 +15,8 @@ public class ConcelierTimelineEndpointTests : IClassFixture<WebApplicationFactor
_factory = factory.WithWebHostBuilder(_ => { });
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task Timeline_requires_tenant_header()
{
var client = _factory.CreateClient();
@@ -25,7 +26,8 @@ public class ConcelierTimelineEndpointTests : IClassFixture<WebApplicationFactor
response.StatusCode.Should().Be(HttpStatusCode.BadRequest);
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task Timeline_returns_sse_event()
{
var client = _factory.CreateClient();
@@ -39,6 +41,7 @@ public class ConcelierTimelineEndpointTests : IClassFixture<WebApplicationFactor
var stream = await response.Content.ReadAsStreamAsync();
using var reader = new StreamReader(stream);
using StellaOps.TestKit;
var firstLine = await reader.ReadLineAsync();
firstLine.Should().NotBeNull();
firstLine!.Should().StartWith("event: ingest.update");