Skip to content

Commit a2e0eea

Browse files
authored
test(gateway): cover node exec approval relay (#118825)
Adds real Gateway QA coverage for node exec approval get/set forwarding, malformed payload rejection, and paired-node ownership fencing.
1 parent 3a57ad4 commit a2e0eea

2 files changed

Lines changed: 504 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
title: Gateway node exec approval relay
2+
3+
scenario:
4+
id: gateway-node-exec-approvals
5+
surface: runtime
6+
coverage:
7+
primary:
8+
- gateway.node-exec-approvals
9+
objective: Prove node-local exec approval reads and writes traverse the real Gateway RPC and paired node WebSocket boundary.
10+
successCriteria:
11+
- The Gateway relays the exact node-local approval snapshot returned by the connected node.
12+
- Node approval writes preserve the requested policy and optimistic base hash and return the node update result.
13+
- Malformed node snapshots are rejected at the Gateway boundary.
14+
- A retired node connection cannot settle an invocation owned by the current paired connection.
15+
docsRefs:
16+
- docs/gateway/protocol.md
17+
- docs/cli/approvals.md
18+
codeRefs:
19+
- src/gateway/server-methods/exec-approvals.ts
20+
- src/gateway/node-registry.ts
21+
- test/e2e/qa-lab/runtime/gateway-node-exec-approvals.e2e.test.ts
22+
execution:
23+
kind: vitest
24+
path: test/e2e/qa-lab/runtime/gateway-node-exec-approvals.e2e.test.ts
25+
summary: Run a real Gateway with an authenticated operator and paired replacement node, then verify exact approval relay, validation, pairing generation, and connection ownership.

0 commit comments

Comments
 (0)