fix tests. new product advisories enhancements
This commit is contained in:
@@ -85,9 +85,9 @@ public class ProjectionEndpointTests : IClassFixture<WebApplicationFactory<Stell
|
||||
|
||||
private static string GetProjectionFixturePath()
|
||||
{
|
||||
// Resolve docs/modules/sbomservice/fixtures/lnm-v1/projections.json relative to test bin directory.
|
||||
// Resolve docs/modules/sbom-service/fixtures/lnm-v1/projections.json relative to test bin directory.
|
||||
var baseDir = ResolveContentRoot();
|
||||
return Path.Combine(baseDir, "docs", "modules", "sbomservice", "fixtures", "lnm-v1", "projections.json");
|
||||
return Path.Combine(baseDir, "docs", "modules", "sbom-service", "fixtures", "lnm-v1", "projections.json");
|
||||
}
|
||||
|
||||
private static string ResolveContentRoot()
|
||||
|
||||
@@ -181,7 +181,7 @@ builder.Services.AddSingleton<IProjectionRepository>(sp =>
|
||||
|
||||
foreach (var root in candidateRoots)
|
||||
{
|
||||
var candidate = Path.Combine(root, "docs", "modules", "sbomservice", "fixtures", "lnm-v1", "projections.json");
|
||||
var candidate = Path.Combine(root, "docs", "modules", "sbom-service", "fixtures", "lnm-v1", "projections.json");
|
||||
if (File.Exists(candidate))
|
||||
{
|
||||
return new FileProjectionRepository(candidate);
|
||||
@@ -203,7 +203,7 @@ static string? FindFixture(IHostEnvironment env, string fileName)
|
||||
|
||||
foreach (var root in candidateRoots)
|
||||
{
|
||||
var candidate = Path.Combine(root, "docs", "modules", "sbomservice", "fixtures", "lnm-v1", fileName);
|
||||
var candidate = Path.Combine(root, "docs", "modules", "sbom-service", "fixtures", "lnm-v1", fileName);
|
||||
if (File.Exists(candidate))
|
||||
{
|
||||
return candidate;
|
||||
|
||||
Reference in New Issue
Block a user