Say in plain words what was called and drop the command card
Build and deploy / build (push) Successful in 1m29s
Release / image (push) Successful in 1m54s
Build and deploy / deploy (push) Successful in 30s
Release / release (push) Successful in 6s

The column "Aufgerufen" hides the requested host and GET and names other
methods; the top list counts a call across hosts. Changelog prepared for
0.11.2.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
TomandClaude Sonnet 5.5 committed 2026-11-27 22:15:19 +01:00
1 parent 46f70c9065
commit b168d1124d
10 files changed
+148 -74

No files matched your search

@@ -49,6 +49,28 @@ public sealed class RecentCatchesTests : IDisposable
recent.Total.ShouldBe(expected);
}
[Fact]
public async Task A_call_is_counted_and_filtered_across_all_requested_hosts()
{
using (var db = _data.Factory.CreateDbContext())
{
foreach (var target in new[] { "OPTIONS a.example/", "OPTIONS 192.0.2.1:8080/", "OPTIONS b.example/sub/", "OPTIONS b.example/?x=/" })
{
var started = McpTestData.Now.AddMinutes(-5);
db.TrapEvents.Add(TrapEventEntity.From(new TrapEvent(
Guid.NewGuid(), TrapProtocol.Http, IPAddress.Parse("203.0.113.77"), "maze-drip", started, started.AddSeconds(1), 1, TrapOutcome.ClientAborted, target, null)));
}
db.SaveChanges();
}
var top = (await _queries.GetAsync()).TopTargets;
top.Single(e => e.Key == "OPTIONS /").Count.ShouldBe(2);
(await _queries.GetRecentAsync(new RecentFilter(Target: "OPTIONS /"))).Total.ShouldBe(2);
(await _queries.GetRecentAsync(new RecentFilter(Target: "OPTIONS a.example/"))).Total.ShouldBe(1);
}
[Fact]
public async Task Unexplained_filter_keeps_only_targets_without_an_enabled_target_rule()
{