test: verify allowlist scan warnings · openclaw/openclaw@0573b23
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
File tree
src/commands/doctor/shared
| Original file line number | Diff line number | Diff line change |
|---|
@@ -52,7 +52,10 @@ describe("doctor empty allowlist policy scan", () => {
|
52 | 52 | }, |
53 | 53 | ); |
54 | 54 | |
55 | | -expect(warnings).toContain("extra:channels.telegram"); |
| 55 | +expect(warnings).toStrictEqual([ |
| 56 | +'- channels.telegram.groupPolicy is "allowlist" but groupAllowFrom (and allowFrom) is empty — all group messages will be silently dropped. Add sender IDs to channels.telegram.groupAllowFrom or channels.telegram.allowFrom, or set groupPolicy to "open".', |
| 57 | +"extra:channels.telegram", |
| 58 | +]); |
56 | 59 | }); |
57 | 60 | |
58 | 61 | it("skips disabled channel and account entries", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。