Merge branch 'main' of https://git.stella-ops.org/stella-ops.org/git.stella-ops.org
This commit is contained in:
@@ -414,6 +414,7 @@ public sealed class GraphApiContractTests : IDisposable
|
||||
// Arrange
|
||||
using var metrics = new GraphMetrics();
|
||||
|
||||
using StellaOps.TestKit;
|
||||
// Assert - Verify meter is correctly configured
|
||||
metrics.Meter.Should().NotBeNull();
|
||||
metrics.Meter.Name.Should().Be("StellaOps.Graph.Api");
|
||||
|
||||
@@ -80,6 +80,7 @@ public class MetricsTests
|
||||
// Now create metrics after listener is started
|
||||
using var metrics = new GraphMetrics();
|
||||
|
||||
using StellaOps.TestKit;
|
||||
var repo = new InMemoryGraphRepository(new[]
|
||||
{
|
||||
new NodeTile { Id = "gn:acme:component:one", Kind = "component", Tenant = "acme" }
|
||||
|
||||
@@ -92,6 +92,7 @@ public class QueryServiceTests
|
||||
{
|
||||
if (!line.Contains("\"type\":\"node\"")) continue;
|
||||
using var doc = JsonDocument.Parse(line);
|
||||
using StellaOps.TestKit;
|
||||
var data = doc.RootElement.GetProperty("data");
|
||||
if (data.TryGetProperty("overlays", out var overlaysElement) && overlaysElement.ValueKind == JsonValueKind.Object)
|
||||
{
|
||||
|
||||
@@ -204,6 +204,7 @@ public class SearchServiceTests
|
||||
private static string ExtractNodeId(string nodeJson)
|
||||
{
|
||||
using var doc = JsonDocument.Parse(nodeJson);
|
||||
using StellaOps.TestKit;
|
||||
return doc.RootElement.GetProperty("data").GetProperty("id").GetString() ?? string.Empty;
|
||||
}
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@ public sealed class GraphAnalyticsPipelineTests
|
||||
provider.Enqueue(snapshot);
|
||||
|
||||
using var metrics = new GraphAnalyticsMetrics();
|
||||
using StellaOps.TestKit;
|
||||
var writer = new InMemoryGraphAnalyticsWriter();
|
||||
var pipeline = new GraphAnalyticsPipeline(
|
||||
new GraphAnalyticsEngine(new GraphAnalyticsOptions()),
|
||||
|
||||
@@ -34,6 +34,7 @@ public sealed class GraphChangeStreamProcessorTests
|
||||
var writer = new FlakyWriter(failFirst: true);
|
||||
using var metrics = new GraphBackfillMetrics();
|
||||
|
||||
using StellaOps.TestKit;
|
||||
var options = Options.Create(new GraphChangeStreamOptions
|
||||
{
|
||||
MaxRetryAttempts = 3,
|
||||
|
||||
Reference in New Issue
Block a user