test: pass Codex API key into Docker bind lane · openclaw/openclaw@f010593
vincentkoc
·
2026-05-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -37,4 +37,14 @@ describe("scripts/test-live-codex-harness-docker.sh", () => {
|
37 | 37 | script.indexOf('OPENCLAW_LIVE_DOCKER_REPO_ROOT="$ROOT_DIR"'), |
38 | 38 | ); |
39 | 39 | }); |
| 40 | + |
| 41 | +it("forwards API-key auth through both OpenAI and Codex env names", () => { |
| 42 | +const script = fs.readFileSync(SCRIPT_PATH, "utf8"); |
| 43 | + |
| 44 | +expect(script).toContain('printf \'OPENAI_API_KEY=%s\\n\' "${OPENAI_API_KEY}"'); |
| 45 | +expect(script).toContain('printf \'CODEX_API_KEY=%s\\n\' "${CODEX_API_KEY:-$OPENAI_API_KEY}"'); |
| 46 | +expect(script.indexOf("OPENAI_API_KEY=%s")).toBeLessThan( |
| 47 | +script.indexOf("CODEX_API_KEY=%s"), |
| 48 | +); |
| 49 | +}); |
40 | 50 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。