fix(test): keep Gemini CLI docker lane advisory

This commit is contained in:
Vincent Koc
2026-06-22 04:32:21 +02:00
parent 190ca52882
commit 044df2516e
4 changed files with 21 additions and 1 deletions

View File

@@ -713,6 +713,17 @@ describe("scripts/lib/docker-e2e-plan", () => {
}
});
it("marks the aggregate Gemini CLI backend lane advisory for auth drift", () => {
const plan = planFor({ selectedLaneNames: ["live-cli-backend-gemini"] });
const lane = requireFirstLane(plan);
expect(lane.command).toContain("OPENCLAW_LIVE_CLI_BACKEND_ADVISORY=1");
expect(lane.command).toContain("OPENCLAW_LIVE_CLI_BACKEND_ALLOW_PROVIDER_SKIP=1");
expect(lane.command).toContain(
"OPENCLAW_LIVE_CLI_BACKEND_MODEL=google-gemini-cli/gemini-3-flash-preview",
);
});
it("plans Codex harness Docker-all lanes for API-key Testbox auth", () => {
for (const name of ["live-codex-harness", "live-codex-bind"]) {
const plan = planFor({ selectedLaneNames: [name] });

View File

@@ -32,6 +32,13 @@ describe("scripts/test-live-cli-backend-docker.sh", () => {
expect(forwardedVars).toContain("OPENCLAW_TEST_CONSOLE");
});
it("forwards advisory provider-skip controls into the Docker container", () => {
const forwardedVars = readForwardedDockerEnvVars();
expect(forwardedVars).toContain("OPENCLAW_LIVE_CLI_BACKEND_ADVISORY");
expect(forwardedVars).toContain("OPENCLAW_LIVE_CLI_BACKEND_ALLOW_PROVIDER_SKIP");
});
it("rejects invalid setup timeout values before metadata or Docker setup", () => {
const result = spawnSync("bash", [SCRIPT_PATH], {
encoding: "utf8",