Merge branch 'main' of https://git.stella-ops.org/stella-ops.org/git.stella-ops.org
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user