Merge branch 'main' of https://git.stella-ops.org/stella-ops.org/git.stella-ops.org
This commit is contained in:
@@ -465,6 +465,7 @@ internal class LedgerProjectionReducer
|
||||
private static string ComputeCycleHash(IList<LedgerEvent> events)
|
||||
{
|
||||
using var sha256 = SHA256.Create();
|
||||
using StellaOps.TestKit;
|
||||
var combined = new StringBuilder();
|
||||
|
||||
foreach (var evt in events.OrderBy(e => e.Sequence))
|
||||
|
||||
@@ -272,6 +272,7 @@ public sealed class FindingsLedgerWebServiceContractTests : IDisposable
|
||||
var content = await response.Content.ReadAsStringAsync();
|
||||
using var doc = JsonDocument.Parse(content);
|
||||
|
||||
using StellaOps.TestKit;
|
||||
// Navigate to FindingSummary schema
|
||||
if (doc.RootElement.TryGetProperty("components", out var components) &&
|
||||
components.TryGetProperty("schemas", out var schemas) &&
|
||||
|
||||
@@ -23,6 +23,7 @@ public class HarnessRunnerTests
|
||||
|
||||
var json = await File.ReadAllTextAsync(tempReport);
|
||||
using var doc = JsonDocument.Parse(json);
|
||||
using StellaOps.TestKit;
|
||||
doc.RootElement.GetProperty("eventsWritten").GetInt64().Should().BeGreaterThan(0);
|
||||
doc.RootElement.GetProperty("status").GetString().Should().Be("pass");
|
||||
doc.RootElement.GetProperty("tenant").GetString().Should().Be("tenant-test");
|
||||
|
||||
@@ -195,6 +195,7 @@ public class LedgerMetricsTests
|
||||
public void VersionInfoGauge_EmitsConstantOne()
|
||||
{
|
||||
using var listener = CreateListener();
|
||||
using StellaOps.TestKit;
|
||||
var measurements = new List<(long Value, KeyValuePair<string, object?>[] Tags)>();
|
||||
|
||||
listener.SetMeasurementEventCallback<long>((instrument, measurement, tags, state) =>
|
||||
|
||||
@@ -90,6 +90,7 @@ public sealed class PolicyEngineEvaluationServiceTests
|
||||
var factory = new TestHttpClientFactory(handler);
|
||||
var options = CreateOptions(baseAddress: null);
|
||||
using var cache = new PolicyEvaluationCache(options.PolicyEngine, NullLogger<PolicyEvaluationCache>.Instance);
|
||||
using StellaOps.TestKit;
|
||||
var inline = new InlinePolicyEvaluationService(NullLogger<InlinePolicyEvaluationService>.Instance);
|
||||
var service = new PolicyEngineEvaluationService(factory, inline, cache, Microsoft.Extensions.Options.Options.Create(options), NullLogger<PolicyEngineEvaluationService>.Instance);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user