





















@@ -6,7 +6,6 @@ import { __testing } from "../../scripts/e2e/npm-telegram-live-runner.ts";
6677const TEST_DIR = path.dirname(fileURLToPath(import.meta.url));
88const DOCKER_SCRIPT_PATH = path.resolve(TEST_DIR, "../../scripts/e2e/npm-telegram-live-docker.sh");
9-const WORKFLOW_PATH = path.resolve(TEST_DIR, "../../.github/workflows/npm-telegram-beta-e2e.yml");
1091110describe("npm Telegram live Docker E2E", () => {
1211it("supports npm-specific Convex credential aliases", () => {
@@ -41,39 +40,6 @@ describe("npm Telegram live Docker E2E", () => {
4140expect(script).toContain('credential_role="ci"');
4241});
434244-it("does not require release manager environment approval for the manual npm beta workflow", () => {
45-const workflow = readFileSync(WORKFLOW_PATH, "utf8");
46-47-expect(workflow).not.toContain("approve_release_manager:");
48-expect(workflow).not.toContain("Approve npm Telegram beta E2E");
49-expect(workflow).not.toContain("environment: npm-release");
50-expect(workflow).not.toContain("needs: approve_release_manager");
51-expect(workflow).toContain("environment: qa-live-shared");
52-expect(workflow).not.toContain("Require main workflow ref");
53-expect(workflow).not.toContain("refs/heads/main");
54-expect(workflow).not.toContain('new Set(["admin", "write"])');
55-expect(workflow).not.toContain("data.role_name");
56-expect(workflow).not.toContain("github.rest.teams.listMembersInOrg");
57-expect(workflow).not.toContain("getMembershipForUserInOrg");
58-});
59-60-it("builds and reuses a local Docker E2E image", () => {
61-const workflow = readFileSync(WORKFLOW_PATH, "utf8");
62-63-expect(workflow).not.toContain("prepare_docker_e2e_image:");
64-expect(workflow).toContain("run_npm_telegram_beta_e2e:");
65-expect(workflow).not.toContain("needs: approve_release_manager");
66-expect(workflow).toContain("useblacksmith/setup-docker-builder");
67-expect(workflow).toContain("useblacksmith/build-push-action");
68-expect(workflow).toContain("tags: openclaw-docker-e2e:local");
69-expect(workflow).toContain("load: true");
70-expect(workflow).toContain("push: false");
71-expect(workflow).not.toContain("cache-from: type=gha");
72-expect(workflow).not.toContain("cache-to: type=gha");
73-expect(workflow).toContain('OPENCLAW_SKIP_DOCKER_BUILD: "1"');
74-expect(workflow).toContain("OPENCLAW_DOCKER_E2E_IMAGE: openclaw-docker-e2e:local");
75-});
76-7743it("lets npm-specific credential aliases override shared QA env", () => {
7844expect(
7945__testing.resolveCredentialSource({
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。