test: check doctor allowlist warnings · openclaw/openclaw@6923cf3
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
File tree
src/commands/doctor/shared
| Original file line number | Diff line number | Diff line change |
|---|
@@ -28,7 +28,7 @@ describe("doctor empty allowlist policy warnings", () => {
|
28 | 28 | }); |
29 | 29 | |
30 | 30 | expect(warnings).toEqual([ |
31 | | -expect.stringContaining('channels.signal.dmPolicy is "allowlist" but allowFrom is empty'), |
| 31 | +'- channels.signal.dmPolicy is "allowlist" but allowFrom is empty — all DMs will be blocked. Add sender IDs to channels.signal.allowFrom, or run "openclaw doctor --fix" to auto-migrate from pairing store when entries exist.', |
32 | 32 | ]); |
33 | 33 | }); |
34 | 34 | |
@@ -41,7 +41,7 @@ describe("doctor empty allowlist policy warnings", () => {
|
41 | 41 | }); |
42 | 42 | |
43 | 43 | expect(warnings).toEqual([ |
44 | | -expect.stringContaining('channels.imessage.groupPolicy is "allowlist"'), |
| 44 | +'- channels.imessage.groupPolicy is "allowlist" but groupAllowFrom is empty — this channel does not fall back to allowFrom, so all group messages will be silently dropped. Add sender IDs to channels.imessage.groupAllowFrom, or set groupPolicy to "open".', |
45 | 45 | ]); |
46 | 46 | }); |
47 | 47 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -31,10 +31,8 @@ describe("doctor empty allowlist policy scan", () => {
|
31 | 31 | ); |
32 | 32 | |
33 | 33 | expect(warnings).toEqual([ |
34 | | -expect.stringContaining('channels.signal.dmPolicy is "allowlist" but allowFrom is empty'), |
35 | | -expect.stringContaining( |
36 | | -'channels.signal.accounts.work.dmPolicy is "allowlist" but allowFrom is empty', |
37 | | -), |
| 34 | +'- channels.signal.dmPolicy is "allowlist" but allowFrom is empty — all DMs will be blocked. Add sender IDs to channels.signal.allowFrom, or run "openclaw doctor --fix" to auto-migrate from pairing store when entries exist.', |
| 35 | +'- channels.signal.accounts.work.dmPolicy is "allowlist" but allowFrom is empty — all DMs will be blocked. Add sender IDs to channels.signal.accounts.work.allowFrom, or run "openclaw doctor --fix" to auto-migrate from pairing store when entries exist.', |
38 | 36 | ]); |
39 | 37 | }); |
40 | 38 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -136,8 +136,8 @@ describe("doctor open-policy allowFrom repair", () => {
|
136 | 136 | }); |
137 | 137 | |
138 | 138 | expect(warnings).toEqual([ |
139 | | -expect.stringContaining('channels.signal.allowFrom: set to ["*"]'), |
140 | | -expect.stringContaining('Run "openclaw doctor --fix"'), |
| 139 | +'- channels.signal.allowFrom: set to ["*"] (required by dmPolicy="open")', |
| 140 | +'- Run "openclaw doctor --fix" to add missing allowFrom wildcards.', |
141 | 141 | ]); |
142 | 142 | }); |
143 | 143 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。