conversation-session-background-connection.json 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-background-connection",
  4. "spec": "./test/e2e/conversation-session/background/conversation-session-background-connection.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "background-connection-title",
  8. "description": "后台显式继续选目录并在既有远程项目首发。",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "固定模型响应以检查真实任务的 Host、项目与目录。"
  14. },
  15. "maxMatches": 4,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/chat/completions",
  19. "bodyIncludes": ["E2E_BACKGROUND_CONNECTION", "Generate a concise title"]
  20. },
  21. "response": {
  22. "statusCode": 200,
  23. "headers": {
  24. "content-type": "application/json; charset=utf-8"
  25. },
  26. "body": "{\"id\":\"ssh-task-title\",\"object\":\"chat.completion\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"message\":{\"role\":\"assistant\",\"content\":\"{\\\"title\\\":\\\"SSH lifecycle\\\"}\"},\"finish_reason\":\"stop\"}]}"
  27. }
  28. },
  29. {
  30. "id": "background-connection-a-first",
  31. "description": "后台显式继续选目录并在既有远程项目首发。",
  32. "metadata": {
  33. "kind": "main",
  34. "timingPolicy": "fast-text",
  35. "source": "synthetic",
  36. "syntheticReason": "固定模型响应以检查真实任务的 Host、项目与目录。"
  37. },
  38. "match": {
  39. "method": "POST",
  40. "pathIncludes": "/chat/completions",
  41. "bodyIncludes": ["E2E_BACKGROUND_CONNECTION"],
  42. "bodyExcludes": ["Generate a concise title"]
  43. },
  44. "response": {
  45. "statusCode": 200,
  46. "headers": {
  47. "content-type": "text/event-stream; charset=utf-8"
  48. },
  49. "body": "data: {\"id\":\"ssh-task-a-first\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"SSH_P0_TASK_LIFECYCLE_REPLY\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"ssh-task-a-first\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}]}\n\ndata: [DONE]\n\n"
  50. }
  51. }
  52. ],
  53. "description": "后台显式继续选目录并在既有远程项目首发。"
  54. }