test: check daemon env warnings · openclaw/openclaw@8412d89
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -607,8 +607,14 @@ describe("buildGatewayInstallPlan", () => {
|
607 | 607 | expect(plan.environment.OPENAI_API_KEY).toBe("sk-openai-test"); |
608 | 608 | expect(plan.environment.ANTHROPIC_TOKEN).toBe("ant-test-token"); |
609 | 609 | expect(plan.environment.OPENCLAW_SERVICE_MANAGED_ENV_KEYS).toBeUndefined(); |
610 | | -expect(warn).toHaveBeenCalledWith(expect.stringContaining("NODE_OPTIONS"), "Auth profile"); |
611 | | -expect(warn).toHaveBeenCalledWith(expect.stringContaining("GIT_ASKPASS"), "Auth profile"); |
| 610 | +expect(warn).toHaveBeenCalledWith( |
| 611 | +'Auth profile env ref "NODE_OPTIONS" blocked by host-env security policy', |
| 612 | +"Auth profile", |
| 613 | +); |
| 614 | +expect(warn).toHaveBeenCalledWith( |
| 615 | +'Auth profile env ref "GIT_ASKPASS" blocked by host-env security policy', |
| 616 | +"Auth profile", |
| 617 | +); |
612 | 618 | }); |
613 | 619 | }); |
614 | 620 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。