tests fixes and some product advisories tunes ups

This commit is contained in:
master
2026-01-30 07:57:43 +02:00
parent 644887997c
commit 55744f6a39
345 changed files with 26290 additions and 2267 deletions

View File

@@ -6,10 +6,10 @@ namespace StellaOps.Notifier.Tests;
public sealed class AttestationTemplateCoverageTests
{
private static readonly string RepoRoot = LocateRepoRoot();
private static readonly string? RepoRoot = TryLocateRepoRoot();
[Trait("Category", TestCategories.Unit)]
[Fact]
[Fact]
public void Attestation_templates_cover_required_channels()
{
var directory = Path.Combine(RepoRoot, "offline", "notifier", "templates", "attestation");
@@ -45,7 +45,7 @@ public sealed class AttestationTemplateCoverageTests
}
[Trait("Category", TestCategories.Unit)]
[Fact]
[Fact]
public void Attestation_templates_include_schema_and_locale_metadata()
{
var directory = Path.Combine(RepoRoot, "offline", "notifier", "templates", "attestation");
@@ -61,7 +61,7 @@ public sealed class AttestationTemplateCoverageTests
}
}
private static string LocateRepoRoot()
private static string? TryLocateRepoRoot()
{
var directory = AppContext.BaseDirectory;
while (directory != null)
@@ -75,6 +75,6 @@ public sealed class AttestationTemplateCoverageTests
directory = Directory.GetParent(directory)?.FullName;
}
throw new InvalidOperationException("Unable to locate repository root containing offline/notifier/templates/attestation.");
return null;
}
}