test: fold gateway smoke into qa e2e (#93178) · openclaw/openclaw@f7e5132
RomneyDa
·
2026-06-18
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -56,6 +56,7 @@ describe("qa scenario catalog", () => {
|
56 | 56 | ).toStrictEqual( |
57 | 57 | [ |
58 | 58 | "control-ui-chat-flow-playwright", |
| 59 | +"gateway-smoke", |
59 | 60 | "package-openclaw-for-docker", |
60 | 61 | "plugin-lifecycle-probe", |
61 | 62 | "qa-otel-smoke", |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +title: Gateway smoke evidence |
| 2 | + |
| 3 | +scenario: |
| 4 | +id: gateway-smoke |
| 5 | +surface: runtime |
| 6 | +coverage: |
| 7 | +primary: |
| 8 | + - gateway.smoke |
| 9 | +secondary: |
| 10 | + - gateway.health |
| 11 | + - gateway.protocol |
| 12 | +objective: Exercise gateway health and WebSocket smoke assertions through QA Lab evidence. |
| 13 | +successCriteria: |
| 14 | + - Gateway health probe succeeds against a reachable local endpoint. |
| 15 | + - WebSocket hello succeeds with the expected protocol and auth envelope. |
| 16 | + - Missing health or WebSocket responses fail with bounded diagnostics. |
| 17 | + - CLI argument parsing preserves explicit gateway URLs and timeouts. |
| 18 | +docsRefs: |
| 19 | + - docs/gateway/index.md |
| 20 | + - docs/concepts/qa-e2e-automation.md |
| 21 | +codeRefs: |
| 22 | + - test/e2e/qa-lab/runtime/gateway-smoke.e2e.test.ts |
| 23 | +execution: |
| 24 | +kind: vitest |
| 25 | +path: test/e2e/qa-lab/runtime/gateway-smoke.e2e.test.ts |
| 26 | +summary: Vitest coverage for gateway health and WebSocket smoke checks. |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -664,6 +664,7 @@ const TOOLING_SOURCE_TEST_TARGETS = new Map([
|
664 | 664 | ["scripts/test-projects.test-support.d.mts", ["test/scripts/test-projects.test.ts"]], |
665 | 665 | ["scripts/test-projects.test-support.mjs", ["test/scripts/test-projects.test.ts"]], |
666 | 666 | ["scripts/tsdown-build.mjs", ["test/scripts/tsdown-build.test.ts"]], |
| 667 | +["scripts/dev/gateway-smoke.ts", ["test/e2e/qa-lab/runtime/gateway-smoke.e2e.test.ts"]], |
667 | 668 | ["scripts/bundled-plugin-assets.mjs", ["test/scripts/bundled-plugin-assets.test.ts"]], |
668 | 669 | ["scripts/bundle-a2ui.mjs", ["test/scripts/bundled-plugin-assets.test.ts"]], |
669 | 670 | ["scripts/build-diffs-viewer-runtime.mjs", ["test/scripts/build-diffs-viewer-runtime.test.ts"]], |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -// Gateway Smoke tests cover gateway smoke script behavior. |
| 1 | +// Gateway Smoke tests cover QA Lab gateway smoke evidence. |
2 | 2 | import { createServer, type Server } from "node:http"; |
3 | 3 | import { afterEach, describe, expect, it } from "vitest"; |
4 | 4 | import { WebSocket, WebSocketServer } from "ws"; |
5 | | -import { runGatewaySmoke } from "../../scripts/dev/gateway-smoke.js"; |
| 5 | +import { runGatewaySmoke } from "../../../../scripts/dev/gateway-smoke.js"; |
6 | 6 | |
7 | 7 | let server: Server | undefined; |
8 | 8 | let wss: WebSocketServer | undefined; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -641,6 +641,13 @@ describe("scripts/test-projects changed-target routing", () => {
|
641 | 641 | } |
642 | 642 | }); |
643 | 643 | |
| 644 | +it("keeps QA Lab gateway smoke script edits on QA e2e tests", () => { |
| 645 | +expect(resolveChangedTestTargetPlan(["scripts/dev/gateway-smoke.ts"])).toEqual({ |
| 646 | +mode: "targets", |
| 647 | +targets: ["test/e2e/qa-lab/runtime/gateway-smoke.e2e.test.ts"], |
| 648 | +}); |
| 649 | +}); |
| 650 | + |
644 | 651 | it("keeps shared script library edits on owner tests", () => { |
645 | 652 | const expectedTargets = new Map([ |
646 | 653 | [ |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。