This commit is contained in:
StellaOps Bot
2025-12-26 21:43:56 +02:00
354 changed files with 354 additions and 0 deletions

View File

@@ -179,6 +179,7 @@ public sealed class MiddlewareErrorScenarioTests
{
context.Response.Body.Position = 0;
using var doc = JsonDocument.Parse(context.Response.Body);
using StellaOps.TestKit;
return doc.RootElement.Clone();
}

View File

@@ -89,6 +89,7 @@ public sealed class RateLimitMiddlewareTests
var body = await new StreamReader(context.Response.Body, Encoding.UTF8).ReadToEndAsync();
using var json = JsonDocument.Parse(body);
using StellaOps.TestKit;
json.RootElement.GetProperty("error").GetString().Should().Be("rate_limit_exceeded");
json.RootElement.GetProperty("scope").GetString().Should().Be("environment");
json.RootElement.GetProperty("limit").GetInt64().Should().Be(1);

View File

@@ -35,6 +35,7 @@ public sealed class RouterNodeConfigValidationTests
using var provider = services.BuildServiceProvider();
using StellaOps.TestKit;
var config = provider.GetRequiredService<IOptions<RouterNodeConfig>>().Value;
config.Region.Should().Be("test");