test: update gateway auth assertions · openclaw/openclaw@6369349
shakkernerd
·
2026-05-09
·
via Recent Commits to openclaw:main
File tree
commands/onboard-non-interactive/local
| Original file line number | Diff line number | Diff line change |
|---|
@@ -420,7 +420,7 @@ describe("gateway run option collisions", () => {
|
420 | 420 | ).rejects.toThrow("__exit__:1"); |
421 | 421 | |
422 | 422 | expect(runtimeErrors).toContain( |
423 | | -'Invalid --auth (use "none", "token", "password", or "trusted-proxy")', |
| 423 | +'Invalid --auth. Use "none", "token", "password", or "trusted-proxy".', |
424 | 424 | ); |
425 | 425 | }); |
426 | 426 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -204,7 +204,7 @@ describe("applyNonInteractiveGatewayConfig token resolution chain", () => {
|
204 | 204 | |
205 | 205 | expect(result).toBeNull(); |
206 | 206 | expect(runtime.error).toHaveBeenCalledWith( |
207 | | -'Environment variable "MISSING_GATEWAY_TOKEN_ENV" is missing or empty.', |
| 207 | +'Environment variable "MISSING_GATEWAY_TOKEN_ENV" is missing or empty. Export it first, then rerun openclaw onboard --non-interactive.', |
208 | 208 | ); |
209 | 209 | expect(runtime.exit).toHaveBeenCalledWith(1); |
210 | 210 | expect(randomToken).not.toHaveBeenCalled(); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。