Merge branch 'main' of https://git.stella-ops.org/stella-ops.org/git.stella-ops.org
This commit is contained in:
@@ -135,6 +135,7 @@ public class CallgraphIngestionTests : IClassFixture<SignalsTestFactory>
|
||||
Assert.Equal(HttpStatusCode.Accepted, secondResponse.StatusCode);
|
||||
|
||||
using var scope = factory.Services.CreateScope();
|
||||
using StellaOps.TestKit;
|
||||
var repo = scope.ServiceProvider.GetRequiredService<ICallgraphRepository>();
|
||||
var doc = await repo.GetByIdAsync((await secondResponse.Content.ReadFromJsonAsync<CallgraphIngestResponse>())!.CallgraphId, CancellationToken.None);
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@ public class SignalsApiTests : IClassFixture<SignalsTestFactory>
|
||||
public async Task Callgraph_Ingest_Response_Includes_Extended_Fields()
|
||||
{
|
||||
using var client = factory.CreateClient();
|
||||
using StellaOps.TestKit;
|
||||
client.DefaultRequestHeaders.Add("X-Scopes", "signals:write signals:read");
|
||||
|
||||
var req = CallgraphIngestionTests.CreateRequest("java", component: "api-test", version: "1.2.3");
|
||||
|
||||
@@ -50,6 +50,7 @@ public class SyntheticRuntimeProbeTests : IClassFixture<SignalsTestFactory>
|
||||
Assert.Equal(HttpStatusCode.OK, factRes.StatusCode);
|
||||
var factJson = await factRes.Content.ReadAsStringAsync();
|
||||
using var doc = JsonDocument.Parse(factJson);
|
||||
using StellaOps.TestKit;
|
||||
Assert.True(doc.RootElement.TryGetProperty("states", out var states));
|
||||
Assert.True(states.GetArrayLength() > 0);
|
||||
Assert.True(doc.RootElement.TryGetProperty("runtimeFacts", out var runtimeFacts));
|
||||
|
||||
Reference in New Issue
Block a user