Refactor code structure and optimize performance across multiple modules
This commit is contained in:
@@ -15,6 +15,7 @@ using StellaOps.Concelier.Models;
|
||||
using StellaOps.Concelier.Storage.MergeEvents;
|
||||
using Xunit;
|
||||
|
||||
using StellaOps.TestKit;
|
||||
namespace StellaOps.Concelier.Merge.Tests;
|
||||
|
||||
/// <summary>
|
||||
@@ -65,7 +66,8 @@ public sealed class BackportProvenanceE2ETests
|
||||
|
||||
#region E2E: Debian Backport Advisory Flow
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public async Task E2E_IngestDebianAdvisoryWithBackport_CreatesProvenanceScope()
|
||||
{
|
||||
// Arrange: Simulate Debian security advisory for CVE-2024-1234
|
||||
@@ -129,7 +131,8 @@ public sealed class BackportProvenanceE2ETests
|
||||
capturedScope.PatchId.Should().Be(patchCommit);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public async Task E2E_IngestRhelAdvisoryWithBackport_CreatesProvenanceScopeWithDistroOrigin()
|
||||
{
|
||||
// Arrange: Simulate RHEL security advisory with distro-specific patch
|
||||
@@ -186,7 +189,8 @@ public sealed class BackportProvenanceE2ETests
|
||||
|
||||
#region E2E: Multiple Distro Backports for Same CVE
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public async Task E2E_SameCveMultipleDistros_CreatesSeparateProvenanceScopes()
|
||||
{
|
||||
// Arrange: Same CVE with Debian and Ubuntu backports
|
||||
@@ -239,7 +243,8 @@ public sealed class BackportProvenanceE2ETests
|
||||
|
||||
#region E2E: Merge Event with Backport Evidence
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public async Task E2E_MergeWithBackportEvidence_RecordsInAuditLog()
|
||||
{
|
||||
// Arrange
|
||||
@@ -296,7 +301,8 @@ public sealed class BackportProvenanceE2ETests
|
||||
|
||||
#region E2E: Evidence Tier Upgrade
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public async Task E2E_EvidenceUpgrade_UpdatesProvenanceScope()
|
||||
{
|
||||
// Arrange: Start with low-tier evidence, then upgrade
|
||||
@@ -355,7 +361,8 @@ public sealed class BackportProvenanceE2ETests
|
||||
|
||||
#region E2E: Provenance Retrieval
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public async Task E2E_RetrieveProvenanceForCanonical_ReturnsAllDistroScopes()
|
||||
{
|
||||
// Arrange
|
||||
|
||||
Reference in New Issue
Block a user