Fix build and code structure improvements. New but essential UI functionality. CI improvements. Documentation improvements. AI module improvements.
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
// Task: TEST-STRAT-5100-005 - Introduce one Pact contract test for critical API
|
||||
// =============================================================================
|
||||
|
||||
using System.Net.Http.Json;
|
||||
using System.Text.Json;
|
||||
using FluentAssertions;
|
||||
using PactNet;
|
||||
@@ -11,7 +12,6 @@ using PactNet.Matchers;
|
||||
using StellaOps.Policy.Engine.Scoring;
|
||||
using StellaOps.Policy.Scoring;
|
||||
using Xunit;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
namespace StellaOps.Policy.Engine.Contract.Tests;
|
||||
|
||||
@@ -176,8 +176,8 @@ public sealed class ScoringApiContractTests : IAsyncLifetime
|
||||
response.IsSuccessStatusCode.Should().BeTrue();
|
||||
|
||||
var result = await response.Content.ReadFromJsonAsync<JsonElement>();
|
||||
result.GetProperty("finalScore").GetInt32().Should().BeGreaterOrEqualTo(0);
|
||||
result.GetProperty("finalScore").GetInt32().Should().BeLessOrEqualTo(100);
|
||||
result.GetProperty("finalScore").GetInt32().Should().BeGreaterThanOrEqualTo(0);
|
||||
result.GetProperty("finalScore").GetInt32().Should().BeLessThanOrEqualTo(100);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -11,23 +11,13 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
|
||||
<PackageReference Include="xunit" Version="2.9.3" />
|
||||
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.1">
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="coverlet.collector" Version="6.0.4">
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="FluentAssertions" Version="6.12.0" />
|
||||
<PackageReference Include="PactNet" Version="5.0.0" />
|
||||
<PackageReference Include="PactNet.Abstractions" Version="5.0.0" />
|
||||
<PackageReference Include="FluentAssertions" />
|
||||
<PackageReference Include="PactNet" />
|
||||
<PackageReference Include="PactNet.Abstractions" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="../../StellaOps.Policy.Engine/StellaOps.Policy.Engine.csproj" />
|
||||
<ProjectReference Include="../../../../__Libraries/StellaOps.TestKit/StellaOps.TestKit.csproj" />
|
||||
<ProjectReference Include="../../../__Libraries/StellaOps.TestKit/StellaOps.TestKit.csproj" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user