conversation-session-ssh-remote-daemon-starting-reuse.json 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-ssh-remote-daemon-starting-reuse",
  4. "spec": "./test/e2e/conversation-session/remote/installation/conversation-session-ssh-remote-daemon-starting-reuse.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "ssh-daemon-starting-reuse-title",
  8. "description": "远端 agent 的标题辅助响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "标题不属于 daemon 复用与版本头断言。"
  14. },
  15. "maxMatches": 4,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/chat/completions",
  19. "bodyIncludes": ["Generate a concise title", "E2E_SSH_DAEMON_STARTING_REUSE"]
  20. },
  21. "response": {
  22. "statusCode": 200,
  23. "headers": { "content-type": "application/json; charset=utf-8" },
  24. "body": "{\"id\":\"ssh-daemon-starting-reuse-title\",\"object\":\"chat.completion\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"message\":{\"role\":\"assistant\",\"content\":\"{\\\"title\\\":\\\"SSH daemon starting reuse\\\"}\"},\"finish_reason\":\"stop\"}]}"
  25. }
  26. },
  27. {
  28. "id": "ssh-daemon-starting-reuse-main",
  29. "description": "远端 agent 首发回复;用例只断言请求头与连接结果。",
  30. "metadata": {
  31. "kind": "main",
  32. "timingPolicy": "fast-text",
  33. "source": "synthetic",
  34. "syntheticReason": "首发只需稳定完成,断言对象是远端请求头。"
  35. },
  36. "maxMatches": 6,
  37. "match": {
  38. "method": "POST",
  39. "pathIncludes": "/chat/completions",
  40. "bodyIncludes": ["E2E_SSH_DAEMON_STARTING_REUSE_"],
  41. "bodyExcludes": ["Generate a concise title"]
  42. },
  43. "response": {
  44. "statusCode": 200,
  45. "headers": { "content-type": "text/event-stream; charset=utf-8" },
  46. "body": "data: {\"id\":\"ssh-daemon-starting-reuse-main\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"SSH_DAEMON_STARTING_REUSE_REPLY\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"ssh-daemon-starting-reuse-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"
  47. }
  48. }
  49. ]
  50. }