Skip to content

Commit 6ab5569

Browse files
authored
test(gateway): cover WebSocket runtime contracts (#118797)
1 parent 65fa1f9 commit 6ab5569

2 files changed

Lines changed: 657 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
title: Gateway WebSocket runtime contracts
2+
3+
scenario:
4+
id: gateway-websocket-protocol-contracts
5+
surface: runtime
6+
coverage:
7+
primary:
8+
- gateway.runtime-request-validation
9+
- gateway.version-negotiation
10+
- gateway.connect-challenge
11+
- gateway.session-limits
12+
- gateway.plugin-surface-urls
13+
objective: Exercise Gateway WebSocket admission, runtime validation, negotiated policy, and scoped plugin surfaces through a real Gateway child.
14+
successCriteria:
15+
- The Gateway sends a nonce-bearing timestamped connect challenge before any client request.
16+
- Invalid first requests close with policy violation, while valid post-connect envelopes reach runtime and method validators.
17+
- The current protocol range connects and a disjoint range returns structured protocol-mismatch details.
18+
- Hello policy reports the canonical payload, buffering, and tick limits.
19+
- A fixture plugin surface URL is scoped, rotates through plugin.surface.refresh, and serves through the refreshed route.
20+
docsRefs:
21+
- docs/gateway/protocol.md
22+
- docs/concepts/qa-e2e-automation.md
23+
codeRefs:
24+
- test/e2e/qa-lab/runtime/gateway-websocket-protocol-contracts.ts
25+
- src/gateway/server/ws-connection/message-handler.ts
26+
- src/gateway/server/ws-connection/connect-admission.ts
27+
- src/gateway/server/ws-connection/connect-hello.ts
28+
- src/gateway/server-methods/nodes.read.ts
29+
execution:
30+
kind: script
31+
path: test/e2e/qa-lab/runtime/gateway-websocket-protocol-contracts.ts
32+
summary: Starts a real Gateway child, drives raw WebSocket clients, and fetches a capability-scoped fixture plugin route.
33+
args:
34+
- --artifact-base
35+
- ${outputDir}

0 commit comments

Comments
 (0)