test(node-host): prove suppression edits bypass auto-review · openclaw/openclaw@7652eda
joshavant
·
2026-05-29
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -682,6 +682,7 @@ describe("handleSystemRunInvoke mac app exec host routing", () => {
|
682 | 682 | |
683 | 683 | it("does not auto-review direct system.run security audit suppression edits", async () => { |
684 | 684 | const tmp = createFixtureDir("openclaw-system-run-auto-review-suppression-"); |
| 685 | +const executablePath = createTempExecutable({ dir: tmp, name: "openclaw" }); |
685 | 686 | setRuntimeConfigSnapshot({ |
686 | 687 | tools: { |
687 | 688 | exec: { |
@@ -697,7 +698,7 @@ describe("handleSystemRunInvoke mac app exec host routing", () => {
|
697 | 698 | })); |
698 | 699 | const runCommand = vi.fn(async () => createLocalRunResult("should-not-run")); |
699 | 700 | const prepared = buildSystemRunApprovalPlan({ |
700 | | -command: ["openclaw", "config", "set", "security.audit.suppressions", "[]"], |
| 701 | +command: [executablePath, "config", "set", "security.audit.suppressions", "[]"], |
701 | 702 | cwd: tmp, |
702 | 703 | }); |
703 | 704 | expect(prepared.ok).toBe(true); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。