Refactor code structure and optimize performance across multiple modules

This commit is contained in:
StellaOps Bot
2025-12-26 20:03:22 +02:00
parent c786faae84
commit b4fc66feb6
3353 changed files with 88254 additions and 1590657 deletions

View File

@@ -11,6 +11,8 @@ using StellaOps.Signals.Persistence;
using StellaOps.Signals.Tests.TestInfrastructure;
using Xunit;
using StellaOps.TestKit;
namespace StellaOps.Signals.Tests;
public class CallgraphIngestionTests : IClassFixture<SignalsTestFactory>
@@ -22,7 +24,8 @@ public class CallgraphIngestionTests : IClassFixture<SignalsTestFactory>
this.factory = factory;
}
[Theory]
[Trait("Category", TestCategories.Unit)]
[Theory]
[InlineData("java")]
[InlineData("nodejs")]
[InlineData("python")]
@@ -74,7 +77,8 @@ public class CallgraphIngestionTests : IClassFixture<SignalsTestFactory>
Assert.Equal(body.SchemaVersion, manifest.SchemaVersion);
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task Ingest_UnsupportedLanguage_ReturnsBadRequest()
{
using var client = factory.CreateClient();
@@ -86,7 +90,8 @@ public class CallgraphIngestionTests : IClassFixture<SignalsTestFactory>
Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode);
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task Ingest_InvalidArtifactContent_ReturnsBadRequest()
{
using var client = factory.CreateClient();
@@ -98,7 +103,8 @@ public class CallgraphIngestionTests : IClassFixture<SignalsTestFactory>
Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode);
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task Ingest_InvalidGraphStructure_ReturnsUnprocessableEntity()
{
using var client = factory.CreateClient();
@@ -111,7 +117,8 @@ public class CallgraphIngestionTests : IClassFixture<SignalsTestFactory>
Assert.True((int)response.StatusCode >= 400);
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task Ingest_SameComponentUpsertsDocument()
{
using var client = factory.CreateClient();

View File

@@ -6,6 +6,8 @@ using StellaOps.Signals.Models;
using StellaOps.Signals.Tests.TestInfrastructure;
using Xunit;
using StellaOps.TestKit;
namespace StellaOps.Signals.Tests;
public class SignalsApiTests : IClassFixture<SignalsTestFactory>
@@ -17,7 +19,8 @@ public class SignalsApiTests : IClassFixture<SignalsTestFactory>
this.factory = factory;
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task Callgraph_Ingest_Response_Includes_Extended_Fields()
{
using var client = factory.CreateClient();

View File

@@ -24,5 +24,6 @@
<ItemGroup>
<ProjectReference Include="../../../Signals/StellaOps.Signals/StellaOps.Signals.csproj" />
<ProjectReference Include="../../StellaOps.TestKit/StellaOps.TestKit.csproj" />
</ItemGroup>
</Project>

View File

@@ -6,6 +6,8 @@ using StellaOps.Signals.Models;
using StellaOps.Signals.Tests.TestInfrastructure;
using Xunit;
using StellaOps.TestKit;
namespace StellaOps.Signals.Tests;
public class SyntheticRuntimeProbeTests : IClassFixture<SignalsTestFactory>
@@ -17,7 +19,8 @@ public class SyntheticRuntimeProbeTests : IClassFixture<SignalsTestFactory>
this.factory = factory;
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task SyntheticProbe_Generates_Runtime_Facts_And_Scoring()
{
using var client = factory.CreateClient();