惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Visual Studio Blog
月光博客
月光博客
T
Tailwind CSS Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
量子位
人人都是产品经理
人人都是产品经理
IT之家
IT之家
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
罗磊的独立博客
博客园 - 三生石上(FineUI控件)
有赞技术团队
有赞技术团队
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园_首页
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - Franky
The Cloudflare Blog
博客园 - 【当耐特】
Hugging Face - Blog
Hugging Face - Blog
大猫的无限游戏
大猫的无限游戏
S
SegmentFault 最新的问题
Jina AI
Jina AI
阮一峰的网络日志
阮一峰的网络日志
小众软件
小众软件
Last Week in AI
Last Week in AI

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
test: clarify synology security warning assertions · open...
steipete · 2026-05-08 · via Recent Commits to openclaw:main

@@ -256,21 +256,23 @@ describe("createSynologyChatPlugin", () => {

256256

const plugin = createSynologyChatPlugin();

257257

const account = makeSecurityAccount({ token: "" });

258258

const warnings = plugin.security.collectWarnings({ cfg: {}, account });

259-

expect(warnings.some((w: string) => w.includes("token"))).toBe(true);

259+

expect(warnings).toEqual(expect.arrayContaining([expect.stringContaining("token")]));

260260

});

261261262262

it("warns when allowInsecureSsl is true", () => {

263263

const plugin = createSynologyChatPlugin();

264264

const account = makeSecurityAccount({ allowInsecureSsl: true });

265265

const warnings = plugin.security.collectWarnings({ cfg: {}, account });

266-

expect(warnings.some((w: string) => w.includes("SSL"))).toBe(true);

266+

expect(warnings).toEqual(expect.arrayContaining([expect.stringContaining("SSL")]));

267267

});

268268269269

it("warns when dangerous name matching is enabled", () => {

270270

const plugin = createSynologyChatPlugin();

271271

const account = makeSecurityAccount({ dangerouslyAllowNameMatching: true });

272272

const warnings = plugin.security.collectWarnings({ cfg: {}, account });

273-

expect(warnings.some((w: string) => w.includes("dangerouslyAllowNameMatching"))).toBe(true);

273+

expect(warnings).toEqual(

274+

expect.arrayContaining([expect.stringContaining("dangerouslyAllowNameMatching")]),

275+

);

274276

});

275277276278

it("warns when inherited shared webhookPath is dangerously re-enabled", () => {

@@ -281,39 +283,45 @@ describe("createSynologyChatPlugin", () => {

281283

dangerouslyAllowInheritedWebhookPath: true,

282284

});

283285

const warnings = plugin.security.collectWarnings({ cfg: {}, account });

284-

expect(

285-

warnings.some((w: string) => w.includes("dangerouslyAllowInheritedWebhookPath=true")),

286-

).toBe(true);

286+

expect(warnings).toEqual(

287+

expect.arrayContaining([

288+

expect.stringContaining("dangerouslyAllowInheritedWebhookPath=true"),

289+

]),

290+

);

287291

});

288292289293

it("warns when dmPolicy is open", () => {

290294

const plugin = createSynologyChatPlugin();

291295

const account = makeSecurityAccount({ dmPolicy: "open", allowedUserIds: ["*"] });

292296

const warnings = plugin.security.collectWarnings({ cfg: {}, account });

293-

expect(warnings.some((w: string) => w.includes("open"))).toBe(true);

297+

expect(warnings).toEqual(expect.arrayContaining([expect.stringContaining("open")]));

294298

});

295299296300

it("warns when dmPolicy is open and allowedUserIds is empty", () => {

297301

const plugin = createSynologyChatPlugin();

298302

const account = makeSecurityAccount({ dmPolicy: "open", allowedUserIds: [] });

299303

const warnings = plugin.security.collectWarnings({ cfg: {}, account });

300-

expect(warnings.some((w: string) => w.includes("empty allowedUserIds"))).toBe(true);

304+

expect(warnings).toEqual(

305+

expect.arrayContaining([expect.stringContaining("empty allowedUserIds")]),

306+

);

301307

});

302308303309

it("warns when dmPolicy is allowlist and allowedUserIds is empty", () => {

304310

const plugin = createSynologyChatPlugin();

305311

const account = makeSecurityAccount();

306312

const warnings = plugin.security.collectWarnings({ cfg: {}, account });

307-

expect(warnings.some((w: string) => w.includes("empty allowedUserIds"))).toBe(true);

313+

expect(warnings).toEqual(

314+

expect.arrayContaining([expect.stringContaining("empty allowedUserIds")]),

315+

);

308316

});

309317310318

it("warns when named multi-account routes inherit a shared webhookPath", () => {

311319

const plugin = createSynologyChatPlugin();

312320

const cfg = makeSharedWebhookConfig();

313321

const account = plugin.config.resolveAccount(cfg, "alerts");

314322

const warnings = plugin.security.collectWarnings({ cfg, account });

315-

expect(warnings.some((w: string) => w.includes("must set an explicit webhookPath"))).toBe(

316-

true,

323+

expect(warnings).toEqual(

324+

expect.arrayContaining([expect.stringContaining("must set an explicit webhookPath")]),

317325

);

318326

});

319327

@@ -334,7 +342,9 @@ describe("createSynologyChatPlugin", () => {

334342

};

335343

const account = plugin.config.resolveAccount(cfg, "alerts");

336344

const warnings = plugin.security.collectWarnings({ cfg, account });

337-

expect(warnings.some((w: string) => w.includes("conflicts on webhookPath"))).toBe(true);

345+

expect(warnings).toEqual(

346+

expect.arrayContaining([expect.stringContaining("conflicts on webhookPath")]),

347+

);

338348

});

339349340350

it("returns no warnings for fully configured account", () => {