5100* tests strengthtenen work

This commit is contained in:
StellaOps Bot
2025-12-24 12:38:34 +02:00
parent 9a08d10b89
commit 02772c7a27
117 changed files with 29941 additions and 66 deletions

View File

@@ -26,6 +26,7 @@ using StellaOps.TaskRunner.Infrastructure.Execution;
using StellaOps.TaskRunner.WebService;
using StellaOps.TaskRunner.WebService.Deprecation;
using StellaOps.Telemetry.Core;
using StellaOps.Router.AspNet;
var builder = WebApplication.CreateBuilder(args);
@@ -107,10 +108,18 @@ builder.Services.AddSingleton<IPackRunIncidentModeService, PackRunIncidentModeSe
builder.Services.AddOpenApi();
// Stella Router integration
var routerOptions = builder.Configuration.GetSection("TaskRunner:Router").Get<StellaRouterOptionsBase>();
builder.Services.TryAddStellaRouter(
serviceName: "taskrunner",
version: typeof(Program).Assembly.GetName().Version?.ToString() ?? "1.0.0",
routerOptions: routerOptions);
var app = builder.Build();
// Add deprecation middleware for sunset headers (RFC 8594)
app.UseApiDeprecation();
app.TryUseStellaRouter(routerOptions);
app.MapOpenApi("/openapi");
@@ -236,6 +245,9 @@ app.MapGet("/.well-known/openapi", (HttpResponse response) =>
app.MapGet("/", () => Results.Redirect("/openapi"));
// Refresh Router endpoint cache
app.TryRefreshStellaRouterEndpoints(routerOptions);
async Task<IResult> HandleCreateRun(
[FromBody] CreateRunRequest request,
TaskPackManifestLoader loader,

View File

@@ -33,7 +33,7 @@
<ProjectReference Include="..\..\..\Telemetry\StellaOps.Telemetry.Core\StellaOps.Telemetry.Core\StellaOps.Telemetry.Core.csproj"/>
<ProjectReference Include="..\..\..\AirGap\StellaOps.AirGap.Policy\StellaOps.AirGap.Policy\StellaOps.AirGap.Policy.csproj"/>
<ProjectReference Include="..\..\..\__Libraries\StellaOps.Router.AspNet\StellaOps.Router.AspNet.csproj"/>
</ItemGroup>