test: check doctor plugin warnings · openclaw/openclaw@b11bdab
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 |
|---|
@@ -49,9 +49,7 @@ describe("collectPluginToolAllowlistWarnings", () => {
|
49 | 49 | }); |
50 | 50 | |
51 | 51 | expect(warnings).toEqual([ |
52 | | -expect.stringContaining( |
53 | | -'plugins.allow is an exclusive plugin allowlist. tools.allow contains "*"', |
54 | | -), |
| 52 | +'- plugins.allow is an exclusive plugin allowlist. tools.allow contains "*", but that wildcard only matches tools from plugins that are loaded; plugin tools outside plugins.allow stay unavailable. Add the required plugin ids to plugins.allow or remove plugins.allow.', |
55 | 53 | ]); |
56 | 54 | }); |
57 | 55 | |
@@ -124,7 +122,7 @@ describe("collectPluginToolAllowlistWarnings", () => {
|
124 | 122 | }); |
125 | 123 | |
126 | 124 | expect(warnings).toEqual([ |
127 | | -expect.stringContaining('set plugins.bundledDiscovery to "allowlist"'), |
| 125 | +'- plugins.allow is restrictive, but bundled provider discovery is still in legacy compatibility mode. Bundled provider plugins can still appear in runtime provider inventories; set plugins.bundledDiscovery to "allowlist" after confirming omitted bundled providers are intentionally blocked.', |
128 | 126 | ]); |
129 | 127 | }); |
130 | 128 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -168,8 +168,8 @@ describe("doctor stale plugin config helpers", () => {
|
168 | 168 | }); |
169 | 169 | |
170 | 170 | expect(warnings).toEqual([ |
171 | | -expect.stringContaining('plugins.allow: stale plugin reference "acpx"'), |
172 | | -expect.stringContaining('Run "openclaw doctor --fix"'), |
| 171 | +'- plugins.allow: stale plugin reference "acpx" was found.', |
| 172 | +'- Run "openclaw doctor --fix" to remove stale plugin ids and dangling channel references.', |
173 | 173 | ]); |
174 | 174 | }); |
175 | 175 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。