This commit is contained in:
StellaOps Bot
2025-12-13 02:22:15 +02:00
parent 564df71bfb
commit 999e26a48e
395 changed files with 25045 additions and 2224 deletions

View File

@@ -37,7 +37,7 @@ public class ProjectionEndpointTests : IClassFixture<WebApplicationFactory<Progr
builder.ConfigureServices(services =>
{
// Avoid MongoDB dependency in tests; use seeded in-memory repo.
// Use seeded in-memory repo for tests.
services.RemoveAll<IComponentLookupRepository>();
services.AddSingleton<IComponentLookupRepository, InMemoryComponentLookupRepository>();
});

View File

@@ -32,7 +32,7 @@ internal sealed class InMemorySbomQueryService : ISbomQueryService
_projectionRepository = projectionRepository;
_eventPublisher = eventPublisher;
_clock = clock;
// Deterministic seed data for early contract testing; replace with Mongo-backed implementation later.
// Deterministic seed data for early contract testing; replace with PostgreSQL-backed implementation later.
_paths = SeedPaths();
_timelines = SeedTimelines();
}
@@ -157,7 +157,7 @@ internal sealed class InMemorySbomQueryService : ISbomQueryService
.Select(c => new ComponentNeighbor(c.NeighborPurl, c.Relationship, c.License, c.Scope, c.RuntimeFlag))
.ToList();
var cacheHint = _componentLookupRepository.GetType().Name.Contains("Mongo", StringComparison.OrdinalIgnoreCase)
var cacheHint = _componentLookupRepository.GetType().Name.Contains("Postgres", StringComparison.OrdinalIgnoreCase)
? "storage"
: "seeded";