UI work to fill SBOM sourcing management gap. UI planning remaining functionality exposure. Work on CI/Tests stabilization
Introduces CGS determinism test runs to CI workflows for Windows, macOS, Linux, Alpine, and Debian, fulfilling CGS-008 cross-platform requirements. Updates local-ci scripts to support new smoke steps, test timeouts, progress intervals, and project slicing for improved test isolation and diagnostics.
This commit is contained in:
@@ -42,16 +42,16 @@ public sealed class ErrorStderrGoldenTests
|
||||
|
||||
// Act
|
||||
await renderer.RenderAsync(error, stderr);
|
||||
var actual = stderr.ToString().Trim();
|
||||
var actual = stderr.ToString().Trim().Replace("\r\n", "\n");
|
||||
|
||||
// Assert - Golden snapshot
|
||||
var expected = """
|
||||
error: Required argument '--image' is missing
|
||||
error: [MISSING_REQUIRED_ARG] Required argument '--image' is missing
|
||||
|
||||
For more information, run: stellaops <command> --help
|
||||
""";
|
||||
|
||||
actual.Should().Be(expected.Trim());
|
||||
actual.Should().Be(expected.Trim().Replace("\r\n", "\n"));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -70,9 +70,9 @@ public sealed class PolicyListCommandGoldenTests
|
||||
|
||||
// Assert - Table contains headers and data
|
||||
actual.Should().Contain("ID");
|
||||
actual.Should().Contain("Name");
|
||||
actual.Should().Contain("Version");
|
||||
actual.Should().Contain("Status");
|
||||
actual.Should().Contain("NAME");
|
||||
actual.Should().Contain("VERSION");
|
||||
actual.Should().Contain("STATUS");
|
||||
actual.Should().Contain("strict-security");
|
||||
}
|
||||
|
||||
@@ -345,7 +345,7 @@ public sealed class PolicyListCommandGoldenTests
|
||||
|
||||
// Assert
|
||||
actual.Should().Contain("\"error_code\": \"POLICY_NOT_FOUND\"");
|
||||
actual.Should().Contain("Policy 'nonexistent' not found");
|
||||
actual.Should().Contain("Policy \\u0027nonexistent\\u0027 not found");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -157,9 +157,9 @@ public sealed class ScanCommandGoldenTests
|
||||
|
||||
// Assert
|
||||
actual.Should().Contain("CVE");
|
||||
actual.Should().Contain("Severity");
|
||||
actual.Should().Contain("Package");
|
||||
actual.Should().Contain("Fixed");
|
||||
actual.Should().Contain("SEVERITY");
|
||||
actual.Should().Contain("PACKAGE");
|
||||
actual.Should().Contain("FIXED");
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -152,9 +152,9 @@ public sealed class VerifyCommandGoldenTests
|
||||
var actual = writer.ToString();
|
||||
|
||||
// Assert
|
||||
actual.Should().Contain("Rule");
|
||||
actual.Should().Contain("Status");
|
||||
actual.Should().Contain("Message");
|
||||
actual.Should().Contain("RULE");
|
||||
actual.Should().Contain("STATUS");
|
||||
actual.Should().Contain("MESSAGE");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -373,7 +373,7 @@ public sealed class VerifyCommandGoldenTests
|
||||
|
||||
// Assert
|
||||
actual.Should().Contain("\"error_code\": \"POLICY_NOT_FOUND\"");
|
||||
actual.Should().Contain("Policy 'strict-security' not found");
|
||||
actual.Should().Contain("Policy \\u0027strict-security\\u0027 not found in policy store");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user