| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- {
- "version": 1,
- "caseName": "conversation-session-attachment-upload-progress-gating",
- "spec": "./test/e2e/conversation-session/attachments/conversation-session-attachment-upload-progress-gating.test.ts",
- "fixtures": [
- {
- "id": "ap02-title",
- "metadata": {
- "kind": "common",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定模型回复用于验证真实发送、附件提交和会话完成路径;不模拟应用状态。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["Generate a concise title", "E2E_AP02_ATTACHMENT_GATE"]
- },
- "response": {
- "statusCode": 200,
- "headers": {
- "content-type": "application/json; charset=utf-8"
- },
- "body": "{\"id\":\"msg_upstream_e2e_text\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"title\\\":\\\"Attachment upload gating\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":128,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":12,\"service_tier\":\"standard\"}}"
- }
- },
- {
- "id": "ap02-ready-send",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定模型回复用于验证真实发送、附件提交和会话完成路径;不模拟应用状态。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_AP02_ATTACHMENT_GATE"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "text": "AP02_ATTACHMENT_GATE_OK"
- }
- }
- ]
- }
|