test: follow docker e2e script refactor

This commit is contained in:
Peter Steinberger
2026-04-29 08:56:23 +01:00
parent f2405c830b
commit f3f614fae6
4 changed files with 91 additions and 42 deletions

View File

@@ -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"');
});