conversation-session-rpn-same-path-local-task.json 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-rpn-same-path-local-task",
  4. "spec": "./test/e2e/conversation-session/projects/conversation-session-rpn-same-path-local-task.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "rpn-same-path-title",
  8. "description": "RPN same path 本地与远端任务的标题辅助响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "标题不属于同路径导航断言。"
  14. },
  15. "maxMatches": 10,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/chat/completions",
  19. "bodyIncludes": ["Generate a concise title", "E2E_RPN_SAME_PATH_LOCAL_TASK"]
  20. },
  21. "response": {
  22. "statusCode": 200,
  23. "headers": {
  24. "content-type": "application/json; charset=utf-8"
  25. },
  26. "body": "{\"id\":\"rpn-same-path-title\",\"object\":\"chat.completion\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"message\":{\"role\":\"assistant\",\"content\":\"{\\\"title\\\":\\\"RPN same path\\\"}\"},\"finish_reason\":\"stop\"}]}"
  27. }
  28. },
  29. {
  30. "id": "rpn-same-path-main",
  31. "description": "RPN same path 本地与远端首发的通用响应。",
  32. "metadata": {
  33. "kind": "main",
  34. "timingPolicy": "fast-text",
  35. "source": "synthetic",
  36. "syntheticReason": "两条首发只需要稳定完成,用 tab 与 pane 状态断言导航目标。"
  37. },
  38. "maxMatches": 10,
  39. "match": {
  40. "method": "POST",
  41. "pathIncludes": "/chat/completions",
  42. "bodyIncludes": ["E2E_RPN_SAME_PATH_LOCAL_TASK_"],
  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\":\"rpn-same-path-main\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"RPN_SAME_PATH_LOCAL_TASK_REPLY\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"rpn-same-path-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. }