Skip to content

Commit e4b6bde

Browse files
authored
test(gateway): cover agent and artifact APIs (#118889)
1 parent e4ab08c commit e4b6bde

2 files changed

Lines changed: 479 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
title: Gateway agent and artifact APIs
2+
3+
scenario:
4+
id: gateway-agent-artifact-apis
5+
surface: runtime
6+
category: gateway.gateway-rpc-apis-and-events
7+
coverage:
8+
primary:
9+
- gateway.agent-and-artifact-apis
10+
objective: Verify agent configuration, editable agent files, worker environments, and transcript artifacts through the real Gateway RPC and HTTP boundaries.
11+
successCriteria:
12+
- A real operator client creates, lists, updates, and deletes an agent through Gateway RPCs.
13+
- Agent file set, list, and get preserve exact content, byte size, and content hash.
14+
- Worker environment create, replay, list, status, and destroy calls preserve idempotency through the Gateway context service seam.
15+
- A SQLite-backed task transcript exposes a managed artifact through list, get, and download RPCs.
16+
- The ticketed HTTP download returns the exact artifact bytes while unknown and cross-agent lookups fail.
17+
docsRefs:
18+
- docs/gateway/protocol.md
19+
- docs/concepts/qa-e2e-automation.md
20+
codeRefs:
21+
- src/gateway/server-methods/agents.ts
22+
- src/gateway/server-methods/environments.ts
23+
- src/gateway/server-methods/artifacts.ts
24+
- src/gateway/managed-image-attachments.ts
25+
- test/e2e/qa-lab/runtime/gateway-agent-artifact-apis.e2e.test.ts
26+
execution:
27+
kind: vitest
28+
path: test/e2e/qa-lab/runtime/gateway-agent-artifact-apis.e2e.test.ts
29+
summary: Run a real Gateway and operator client across config-backed agents, editable files, injected environment lifecycle, SQLite task transcripts, artifact RPCs, and ticketed HTTP bytes.

0 commit comments

Comments
 (0)