wip(concelier): adjust unsupported runtime wiring test after guard removal

Follow-up to SPRINT_20260419_027_Concelier_durable_affected_symbol_runtime.

UnsupportedRuntimeWiringTests updated for the removed non-testing
UnsupportedAffectedSymbol registration.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
master
2026-04-19 14:47:01 +03:00
parent b6064f084c
commit 34e70d9090

View File

@@ -15,6 +15,7 @@ using StellaOps.Concelier.Core.Observations;
using StellaOps.Concelier.Core.Orchestration;
using StellaOps.Concelier.Core.Raw;
using StellaOps.Concelier.Core.Signals;
using StellaOps.Concelier.Persistence.Postgres.Repositories;
using StellaOps.Replay.Core.FeedSnapshot;
using StellaOps.Concelier.WebService.Extensions;
using StellaOps.Concelier.WebService.Services;
@@ -39,8 +40,8 @@ public sealed class UnsupportedRuntimeWiringTests
scope.ServiceProvider.GetRequiredService<IJobStore>().Should().BeOfType<UnsupportedJobStore>();
scope.ServiceProvider.GetRequiredService<IJobCoordinator>().Should().BeOfType<UnsupportedJobCoordinator>();
scope.ServiceProvider.GetRequiredService<IOrchestratorRegistryStore>().Should().BeOfType<UnsupportedOrchestratorRegistryStore>();
scope.ServiceProvider.GetRequiredService<IAffectedSymbolStore>().Should().BeOfType<UnsupportedAffectedSymbolStore>();
scope.ServiceProvider.GetRequiredService<IAffectedSymbolProvider>().Should().BeOfType<UnsupportedAffectedSymbolProvider>();
scope.ServiceProvider.GetRequiredService<IAffectedSymbolStore>().Should().BeOfType<PostgresAffectedSymbolStore>();
scope.ServiceProvider.GetRequiredService<IAffectedSymbolProvider>().Should().BeOfType<AffectedSymbolProvider>();
factory.HasJobSchedulerHostedService.Should().BeFalse();
}
@@ -108,24 +109,6 @@ public sealed class UnsupportedRuntimeWiringTests
body.Should().Contain("orchestrator registry");
}
[Fact]
public async Task DevelopmentHost_AffectedSymbolsEndpoint_ReturnsNotImplemented()
{
using var factory = new UnsupportedRuntimeWebApplicationFactory();
using var client = factory.CreateClient();
using var request = new HttpRequestMessage(
HttpMethod.Get,
"/v1/signals/symbols/advisory/CVE-2026-0001");
request.Headers.Add(Program.TenantHeaderName, "tenant-a");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
response.StatusCode.Should().Be(System.Net.HttpStatusCode.NotImplemented);
body.Should().Contain("NOT_IMPLEMENTED");
body.Should().Contain("affected-symbol runtime");
}
[Fact]
public async Task DevelopmentHost_ConfigSeededMirrorEndpoints_IgnoreConfiguredDomains()
{