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:
@@ -15,6 +15,7 @@ using StellaOps.Concelier.Core.Observations;
|
|||||||
using StellaOps.Concelier.Core.Orchestration;
|
using StellaOps.Concelier.Core.Orchestration;
|
||||||
using StellaOps.Concelier.Core.Raw;
|
using StellaOps.Concelier.Core.Raw;
|
||||||
using StellaOps.Concelier.Core.Signals;
|
using StellaOps.Concelier.Core.Signals;
|
||||||
|
using StellaOps.Concelier.Persistence.Postgres.Repositories;
|
||||||
using StellaOps.Replay.Core.FeedSnapshot;
|
using StellaOps.Replay.Core.FeedSnapshot;
|
||||||
using StellaOps.Concelier.WebService.Extensions;
|
using StellaOps.Concelier.WebService.Extensions;
|
||||||
using StellaOps.Concelier.WebService.Services;
|
using StellaOps.Concelier.WebService.Services;
|
||||||
@@ -39,8 +40,8 @@ public sealed class UnsupportedRuntimeWiringTests
|
|||||||
scope.ServiceProvider.GetRequiredService<IJobStore>().Should().BeOfType<UnsupportedJobStore>();
|
scope.ServiceProvider.GetRequiredService<IJobStore>().Should().BeOfType<UnsupportedJobStore>();
|
||||||
scope.ServiceProvider.GetRequiredService<IJobCoordinator>().Should().BeOfType<UnsupportedJobCoordinator>();
|
scope.ServiceProvider.GetRequiredService<IJobCoordinator>().Should().BeOfType<UnsupportedJobCoordinator>();
|
||||||
scope.ServiceProvider.GetRequiredService<IOrchestratorRegistryStore>().Should().BeOfType<UnsupportedOrchestratorRegistryStore>();
|
scope.ServiceProvider.GetRequiredService<IOrchestratorRegistryStore>().Should().BeOfType<UnsupportedOrchestratorRegistryStore>();
|
||||||
scope.ServiceProvider.GetRequiredService<IAffectedSymbolStore>().Should().BeOfType<UnsupportedAffectedSymbolStore>();
|
scope.ServiceProvider.GetRequiredService<IAffectedSymbolStore>().Should().BeOfType<PostgresAffectedSymbolStore>();
|
||||||
scope.ServiceProvider.GetRequiredService<IAffectedSymbolProvider>().Should().BeOfType<UnsupportedAffectedSymbolProvider>();
|
scope.ServiceProvider.GetRequiredService<IAffectedSymbolProvider>().Should().BeOfType<AffectedSymbolProvider>();
|
||||||
factory.HasJobSchedulerHostedService.Should().BeFalse();
|
factory.HasJobSchedulerHostedService.Should().BeFalse();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -108,24 +109,6 @@ public sealed class UnsupportedRuntimeWiringTests
|
|||||||
body.Should().Contain("orchestrator registry");
|
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]
|
[Fact]
|
||||||
public async Task DevelopmentHost_ConfigSeededMirrorEndpoints_IgnoreConfiguredDomains()
|
public async Task DevelopmentHost_ConfigSeededMirrorEndpoints_IgnoreConfiguredDomains()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user