conversation-session-ssh-remote-attachment-races.json 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-ssh-remote-attachment-races",
  4. "spec": "./test/e2e/conversation-session/remote/execution/conversation-session-ssh-remote-attachment-races.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "ssh-attachment-races-title",
  8. "description": "SSH directory resilience task 标题辅助响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "标题不属于冷恢复断言。"
  14. },
  15. "maxMatches": 20,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/chat/completions",
  19. "bodyIncludes": ["Generate a concise title", "E2E_SSH_ATTACHMENT_RACES"]
  20. },
  21. "response": {
  22. "statusCode": 200,
  23. "headers": {
  24. "content-type": "application/json; charset=utf-8"
  25. },
  26. "body": "{\"id\":\"ssh-account-title\",\"object\":\"chat.completion\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"message\":{\"role\":\"assistant\",\"content\":\"{\\\"title\\\":\\\"SSH directory resilience\\\"}\"},\"finish_reason\":\"stop\"}]}"
  27. }
  28. },
  29. {
  30. "id": "ssh-attachment-races-main",
  31. "description": "SSH directory resilience 首发和续发的通用响应。",
  32. "metadata": {
  33. "kind": "main",
  34. "timingPolicy": "fast-text",
  35. "source": "synthetic",
  36. "syntheticReason": "先创建真实远端会话,再验证上传取消/断线后的拖入与发送;上传故障由实际 SSH 响应代理注入。"
  37. },
  38. "maxMatches": 20,
  39. "match": {
  40. "method": "POST",
  41. "pathIncludes": "/chat/completions",
  42. "bodyIncludes": ["E2E_SSH_ATTACHMENT_RACES_"],
  43. "bodyExcludes": ["Generate a concise title"]
  44. },
  45. "response": {
  46. "statusCode": 200,
  47. "headers": {
  48. "content-type": "text/event-stream; charset=utf-8"
  49. },
  50. "body": "data: {\"id\":\"ssh-account-main\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"SSH_ATTACHMENT_RACES_REPLY\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"ssh-account-main\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}]}\n\ndata: [DONE]\n\n"
  51. }
  52. }
  53. ]
  54. }