docs re-org, audit fixes, build fixes
This commit is contained in:
@@ -49,7 +49,7 @@ builder.Services.AddOpenApi();
|
||||
var routerOptions = builder.Configuration.GetSection("VexHub:Router").Get<StellaRouterOptionsBase>();
|
||||
builder.Services.TryAddStellaRouter(
|
||||
serviceName: "vexhub",
|
||||
version: typeof(Program).Assembly.GetName().Version?.ToString() ?? "1.0.0",
|
||||
version: System.Reflection.Assembly.GetExecutingAssembly().GetName().Version?.ToString() ?? "1.0.0",
|
||||
routerOptions: routerOptions);
|
||||
|
||||
var app = builder.Build();
|
||||
@@ -83,3 +83,9 @@ app.MapGet("/health", () => Results.Ok(new { Status = "Healthy", Service = "VexH
|
||||
app.TryRefreshStellaRouterEndpoints(routerOptions);
|
||||
|
||||
app.Run();
|
||||
|
||||
// Make Program class explicit to avoid conflicts with imported types
|
||||
namespace StellaOps.VexHub.WebService
|
||||
{
|
||||
public partial class Program { }
|
||||
}
|
||||
|
||||
@@ -10,11 +10,11 @@ namespace StellaOps.VexHub.WebService.Tests.Integration;
|
||||
/// Integration tests verifying VexHub API compatibility with Trivy and Grype.
|
||||
/// These tests ensure the API endpoints return valid OpenVEX format that can be consumed by scanning tools.
|
||||
/// </summary>
|
||||
public sealed class VexExportCompatibilityTests : IClassFixture<WebApplicationFactory<Program>>
|
||||
public sealed class VexExportCompatibilityTests : IClassFixture<WebApplicationFactory<StellaOps.VexHub.WebService.Program>>
|
||||
{
|
||||
private readonly HttpClient _client;
|
||||
|
||||
public VexExportCompatibilityTests(WebApplicationFactory<Program> factory)
|
||||
public VexExportCompatibilityTests(WebApplicationFactory<StellaOps.VexHub.WebService.Program> factory)
|
||||
{
|
||||
_client = factory.CreateClient();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user