mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 18:20:44 +00:00
test: follow docker e2e script refactor
This commit is contained in:
@@ -31,12 +31,16 @@ describe("package Telegram live Docker E2E", () => {
|
||||
it("installs the package candidate before forwarding runtime secrets", () => {
|
||||
const script = readFileSync(DOCKER_SCRIPT_PATH, "utf8");
|
||||
const installRunStart = script.indexOf('echo "Running package Telegram live Docker E2E');
|
||||
const installRunEnd = script.indexOf('run_logged docker run --rm \\\n "${docker_env[@]}"');
|
||||
const installRunEnd = script.indexOf("# Mount only test harness/plugin QA sources");
|
||||
const installRun = script.slice(installRunStart, installRunEnd);
|
||||
|
||||
expect(installRunStart).toBeGreaterThanOrEqual(0);
|
||||
expect(installRunEnd).toBeGreaterThan(installRunStart);
|
||||
expect(installRun).toContain('npm install -g "$install_source" --no-fund --no-audit');
|
||||
expect(installRun).toContain('"${package_mount_args[@]}"');
|
||||
expect(installRun).not.toContain('"${docker_env[@]}"');
|
||||
expect(script).toContain("run_logged docker_e2e_run_with_harness");
|
||||
expect(script).toContain('"${docker_env[@]}"');
|
||||
expect(script).toContain('if [ -z "$credential_role" ] && [ -n "${CI:-}" ]');
|
||||
expect(script).toContain('credential_role="ci"');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user