conversation-session-ssh-remote-share-authority.json 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-ssh-remote-share-authority",
  4. "spec": "./test/e2e/conversation-session/remote/configuration/conversation-session-ssh-remote-share-authority.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "ssh-share-authority-reconnect-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_SHARE_AUTHORITY"]
  20. },
  21. "response": {
  22. "statusCode": 200,
  23. "headers": {
  24. "content-type": "text/event-stream; charset=utf-8"
  25. },
  26. "body": "data: {\"id\":\"ssh-share-authority-title\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"{\\\"title\\\":\\\"SSH directory resilience\"}\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"ssh-share-authority-title\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}]}\n\ndata: [DONE]\n\n"
  27. }
  28. },
  29. {
  30. "id": "ssh-share-authority-reconnect-main",
  31. "description": "SSH directory resilience 首发和续发的通用响应。",
  32. "metadata": {
  33. "kind": "main",
  34. "timingPolicy": "fast-text",
  35. "source": "synthetic",
  36. "syntheticReason": "用固定回复准备和续聊真实远端历史,独立 SSH 与 loopback API 验证合成账号路由。"
  37. },
  38. "maxMatches": 20,
  39. "match": {
  40. "method": "POST",
  41. "pathIncludes": "/chat/completions",
  42. "bodyIncludes": ["E2E_SSH_SHARE_AUTHORITY_"],
  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-share-authority-main\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"SSH_SHARE_AUTHORITY_REPLY\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"ssh-share-authority-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. }