conversation-session-ssh-remote-cold-reconnect.json 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-ssh-remote-cold-reconnect",
  4. "spec": "./test/e2e/conversation-session/remote/connection/conversation-session-ssh-remote-cold-reconnect.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "ssh-cold-reconnect-title",
  8. "description": "SSH cold reconnect task 标题辅助响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "标题不属于冷恢复断言。"
  14. },
  15. "maxMatches": 4,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/chat/completions",
  19. "bodyIncludes": ["Generate a concise title", "E2E_SSH_P0_COLD_RECONNECT"]
  20. },
  21. "response": {
  22. "statusCode": 200,
  23. "headers": {
  24. "content-type": "application/json; charset=utf-8"
  25. },
  26. "body": "{\"id\":\"ssh-cold-title\",\"object\":\"chat.completion\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"message\":{\"role\":\"assistant\",\"content\":\"{\\\"title\\\":\\\"SSH cold reconnect\\\"}\"},\"finish_reason\":\"stop\"}]}"
  27. }
  28. },
  29. {
  30. "id": "ssh-cold-reconnect-main",
  31. "description": "SSH cold reconnect 首发和续发的通用响应。",
  32. "metadata": {
  33. "kind": "main",
  34. "timingPolicy": "slow-stream",
  35. "source": "synthetic",
  36. "syntheticReason": "首发与冷恢复续发都只需要稳定完成,用 task history 断言路由。"
  37. },
  38. "maxMatches": 10,
  39. "match": {
  40. "method": "POST",
  41. "pathIncludes": "/chat/completions",
  42. "bodyIncludes": ["E2E_SSH_P0_COLD_RECONNECT_"],
  43. "bodyExcludes": ["Generate a concise title"]
  44. },
  45. "response": {
  46. "statusCode": 200,
  47. "delayMs": 1200,
  48. "headers": {
  49. "content-type": "text/event-stream; charset=utf-8"
  50. },
  51. "body": "data: {\"id\":\"ssh-cold-main\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"SSH_P0_COLD_RECONNECT_REPLY\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"ssh-cold-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"
  52. }
  53. }
  54. ]
  55. }