mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 17:34:45 +00:00
test: assert channel allowlist warnings
This commit is contained in:
@@ -85,12 +85,12 @@ describe("createDangerousNameMatchingMutableAllowlistWarningCollector", () => {
|
||||
},
|
||||
} as never,
|
||||
}),
|
||||
).toEqual(
|
||||
expect.arrayContaining([
|
||||
expect.stringContaining("mutable allowlist entry"),
|
||||
expect.stringContaining("channels.irc.allowFrom: charlie"),
|
||||
]),
|
||||
);
|
||||
).toEqual([
|
||||
"- Found 1 mutable allowlist entry across irc while name matching is disabled by default.",
|
||||
"- channels.irc.allowFrom: charlie",
|
||||
"- Option A (break-glass): enable channels.irc.dangerouslyAllowNameMatching=true to keep name/email/nick matching.",
|
||||
"- Option B (recommended): resolve names/emails/nicks to stable sender IDs and rewrite the allowlist entries.",
|
||||
]);
|
||||
});
|
||||
|
||||
it("skips scopes that explicitly allow dangerous name matching", () => {
|
||||
|
||||
Reference in New Issue
Block a user