conversation-session-ssh-remote-shared-desktop-credentials.json 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-ssh-remote-shared-desktop-credentials",
  4. "spec": "./test/e2e/conversation-session/remote/installation/conversation-session-ssh-remote-shared-desktop-credentials.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "r3-ssh-shared-cred-title",
  8. "description": "远端 task 标题生成固定响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "标题内容不属于本 case 语义,只需保持 task row 稳定。"
  14. },
  15. "maxMatches": 4,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/chat/completions",
  19. "bodyIncludes": ["Generate a concise title", "E2E_R3_SSH_SHARED_CRED"]
  20. },
  21. "response": {
  22. "statusCode": 200,
  23. "headers": {
  24. "content-type": "application/json; charset=utf-8"
  25. },
  26. "body": "{\"id\":\"chatcmpl-ssh-title\",\"object\":\"chat.completion\",\"created\":0,\"model\":\"e2e-r3-ssh-shared-cred-model\",\"choices\":[{\"index\":0,\"message\":{\"role\":\"assistant\",\"content\":\"{\\\"title\\\":\\\"SSH Remote P0\\\"}\"},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":32,\"completion_tokens\":8,\"total_tokens\":40}}"
  27. }
  28. },
  29. {
  30. "id": "r3-ssh-shared-cred-first",
  31. "description": "同机 Desktop 共享库已固定 os 时,远端项目首发固定回复。",
  32. "metadata": {
  33. "kind": "main",
  34. "timingPolicy": "controlled-stream",
  35. "source": "synthetic",
  36. "syntheticReason": "延迟回复固定 Agent 运行窗口,在窗口内核对远端 Agent 的凭据文件变量与回复。"
  37. },
  38. "match": {
  39. "method": "POST",
  40. "pathIncludes": "/chat/completions",
  41. "lastUserMessageIncludes": ["E2E_R3_SSH_SHARED_CRED_PROMPT"],
  42. "bodyExcludes": ["Generate a concise title"]
  43. },
  44. "response": {
  45. "statusCode": 200,
  46. "delayMs": 6000,
  47. "headers": {
  48. "content-type": "text/event-stream; charset=utf-8"
  49. },
  50. "body": "data: {\"id\":\"chatcmpl-ssh-a1\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-r3-ssh-shared-cred-model\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"E2E_R3_SSH_SHARED_CRED_REPLY\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-ssh-a1\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-r3-ssh-shared-cred-model\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":32,\"completion_tokens\":8,\"total_tokens\":40}}\n\ndata: [DONE]\n\n"
  51. }
  52. }
  53. ]
  54. }