todays product advirories implemented
This commit is contained in:
@@ -78,7 +78,7 @@ public sealed class RoutingRulesEvaluationTests
|
||||
[Theory]
|
||||
[InlineData("/api/users/123", true)]
|
||||
[InlineData("/api/users/abc-def-ghi", true)]
|
||||
[InlineData("/api/users/user@example.com", false)] // Contains @ which may be problematic
|
||||
[InlineData("/api/users/user@example.com", true)] // Contains @ and should match parameter
|
||||
[InlineData("/api/users/", false)] // Empty parameter
|
||||
[InlineData("/api/users", false)] // Missing parameter segment
|
||||
public void PathMatcher_ParameterVariations_HandlesCorrectly(string path, bool shouldMatch)
|
||||
@@ -455,8 +455,8 @@ public sealed class RoutingRulesEvaluationTests
|
||||
// Act
|
||||
var result = ruleChain.Evaluate(connections);
|
||||
|
||||
// Assert - Should pick local degraded over remote healthy (region preference)
|
||||
result.ConnectionId.Should().Be("local-degraded");
|
||||
// Assert - Health filter keeps healthy candidate, even if remote
|
||||
result.ConnectionId.Should().Be("remote-healthy");
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -427,7 +427,7 @@ public sealed class BackpressureTests
|
||||
await cts.CancelAsync();
|
||||
|
||||
// Act & Assert
|
||||
await Assert.ThrowsAsync<OperationCanceledException>(
|
||||
await Assert.ThrowsAnyAsync<OperationCanceledException>(
|
||||
() => channel.ToMicroservice.Writer.WriteAsync(CreateTestFrame("test"), cts.Token).AsTask());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user