conversation-session-attachment-upload-progress-gating.json 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-attachment-upload-progress-gating",
  4. "spec": "./test/e2e/conversation-session/attachments/conversation-session-attachment-upload-progress-gating.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "ap02-title",
  8. "metadata": {
  9. "kind": "common",
  10. "source": "synthetic",
  11. "timingPolicy": "fast-text",
  12. "syntheticReason": "固定模型回复用于验证真实发送、附件提交和会话完成路径;不模拟应用状态。"
  13. },
  14. "match": {
  15. "method": "POST",
  16. "pathIncludes": "/messages",
  17. "bodyIncludes": ["Generate a concise title", "E2E_AP02_ATTACHMENT_GATE"]
  18. },
  19. "response": {
  20. "statusCode": 200,
  21. "headers": {
  22. "content-type": "application/json; charset=utf-8"
  23. },
  24. "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\"}}"
  25. }
  26. },
  27. {
  28. "id": "ap02-ready-send",
  29. "metadata": {
  30. "kind": "main",
  31. "source": "synthetic",
  32. "timingPolicy": "fast-text",
  33. "syntheticReason": "固定模型回复用于验证真实发送、附件提交和会话完成路径;不模拟应用状态。"
  34. },
  35. "match": {
  36. "method": "POST",
  37. "pathIncludes": "/messages",
  38. "lastUserMessageIncludes": ["E2E_AP02_ATTACHMENT_GATE"],
  39. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  40. },
  41. "response": {
  42. "statusCode": 200,
  43. "text": "AP02_ATTACHMENT_GATE_OK"
  44. }
  45. }
  46. ]
  47. }