mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 11:30:43 +00:00
test: skip bootstrap in release validation onboarding
This commit is contained in:
@@ -6,6 +6,7 @@ import { setTimeout as delay } from "node:timers/promises";
|
||||
import { describe, expect, it } from "vitest";
|
||||
import {
|
||||
agentOutputHasExpectedOkMarker,
|
||||
buildReleaseOnboardArgs,
|
||||
buildWindowsDevUpdateToolchainCheckScript,
|
||||
buildWindowsFreshShellVersionCheckScript,
|
||||
buildInstalledBrowserOverrideImportProbeScript,
|
||||
@@ -272,6 +273,34 @@ describe("scripts/openclaw-cross-os-release-checks", () => {
|
||||
expect(shouldUseManagedGatewayService("linux")).toBe(false);
|
||||
});
|
||||
|
||||
it("skips workspace bootstrap during release onboarding", () => {
|
||||
expect(
|
||||
buildReleaseOnboardArgs({
|
||||
authChoice: "openai-api-key",
|
||||
gatewayPort: 34111,
|
||||
skipHealth: true,
|
||||
}),
|
||||
).toEqual([
|
||||
"onboard",
|
||||
"--non-interactive",
|
||||
"--mode",
|
||||
"local",
|
||||
"--auth-choice",
|
||||
"openai-api-key",
|
||||
"--secret-input-mode",
|
||||
"ref",
|
||||
"--gateway-port",
|
||||
"34111",
|
||||
"--gateway-bind",
|
||||
"loopback",
|
||||
"--skip-skills",
|
||||
"--skip-bootstrap",
|
||||
"--accept-risk",
|
||||
"--json",
|
||||
"--skip-health",
|
||||
]);
|
||||
});
|
||||
|
||||
it("keeps the Windows installer runtime on the manual gateway after managed lifecycle checks", () => {
|
||||
expect(shouldExerciseManagedGatewayLifecycleAfterInstall("win32")).toBe(true);
|
||||
expect(shouldUseManagedGatewayForInstallerRuntime("win32")).toBe(false);
|
||||
|
||||
Reference in New Issue
Block a user