This commit is contained in:
StellaOps Bot
2025-12-26 21:43:56 +02:00
354 changed files with 354 additions and 0 deletions

View File

@@ -328,6 +328,7 @@ public class SigstoreBundleVerifierTests
DateTimeOffset.UtcNow.AddDays(-1),
DateTimeOffset.UtcNow.AddYears(1));
using StellaOps.TestKit;
return cert.Export(System.Security.Cryptography.X509Certificates.X509ContentType.Cert);
}
}

View File

@@ -406,6 +406,7 @@ public class BundleWorkflowIntegrationTests
}
using var sha256 = System.Security.Cryptography.SHA256.Create();
using StellaOps.TestKit;
var combined = string.Join("|", attestations.Select(a => a.EntryId));
var hash = sha256.ComputeHash(System.Text.Encoding.UTF8.GetBytes(combined));
return Convert.ToHexString(hash).ToLowerInvariant();

View File

@@ -350,6 +350,7 @@ public class FileSystemRootStoreTests : IDisposable
private static X509Certificate2 CreateTestCertificate(string subject)
{
using var rsa = RSA.Create(2048);
using StellaOps.TestKit;
var request = new CertificateRequest(
subject,
rsa,

View File

@@ -349,6 +349,7 @@ public class OfflineCertChainValidatorTests
private static X509Certificate2 CreateFutureCertificate(string subject)
{
using var rsa = RSA.Create(2048);
using StellaOps.TestKit;
var request = new CertificateRequest(
subject,
rsa,

View File

@@ -54,6 +54,7 @@ public sealed class JsonCanonicalizerTests
var output = _canonicalizer.Canonicalize(input);
using var document = JsonDocument.Parse(output);
using StellaOps.TestKit;
Assert.Equal(text, document.RootElement.GetProperty("text").GetString());
}

View File

@@ -92,6 +92,7 @@ public sealed class SmartDiffSchemaValidationTests
}
""");
using StellaOps.TestKit;
var result = schema.Evaluate(doc.RootElement, new EvaluationOptions
{
OutputFormat = OutputFormat.List,