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 b4fc66feb6
3353 changed files with 88254 additions and 1590657 deletions

View File

@@ -1,4 +1,4 @@
using System.Net;
using System.Net;
using System.Net.Http.Json;
using System.Text.Json;
using FluentAssertions;
@@ -6,6 +6,8 @@ using Microsoft.AspNetCore.Mvc.Testing;
using StellaOps.SbomService.Models;
using Xunit;
using StellaOps.TestKit;
namespace StellaOps.SbomService.Tests;
public sealed class SbomLedgerEndpointsTests : IClassFixture<WebApplicationFactory<Program>>
@@ -17,7 +19,8 @@ public sealed class SbomLedgerEndpointsTests : IClassFixture<WebApplicationFacto
_factory = factory.WithWebHostBuilder(_ => { });
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task Upload_accepts_cyclonedx_and_returns_analysis_job()
{
var client = _factory.CreateClient();
@@ -34,7 +37,8 @@ public sealed class SbomLedgerEndpointsTests : IClassFixture<WebApplicationFacto
payload.AnalysisJobId.Should().NotBeNullOrWhiteSpace();
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task Upload_accepts_spdx_and_records_history()
{
var client = _factory.CreateClient();
@@ -65,7 +69,8 @@ public sealed class SbomLedgerEndpointsTests : IClassFixture<WebApplicationFacto
diffPayload!.Summary.VersionChangedCount.Should().Be(1);
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task Lineage_includes_build_edges_for_shared_build_id()
{
var client = _factory.CreateClient();