conversation-session-ssh-remote-settings-overlay-sidebar-status.json 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-ssh-remote-settings-overlay-sidebar-status",
  4. "spec": "./test/e2e/conversation-session/remote/configuration/conversation-session-ssh-remote-settings-overlay-sidebar-status.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "ssh-settings-overlay-title",
  8. "description": "SSH settings overlay 标题辅助响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "标题内容不属于侧栏状态断言,只需稳定 task row。"
  14. },
  15. "maxMatches": 2,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/chat/completions",
  19. "bodyIncludes": ["Generate a concise title", "E2E_SSH_P0_SETTINGS_OVERLAY_SIDEBAR"]
  20. },
  21. "response": {
  22. "statusCode": 200,
  23. "headers": {
  24. "content-type": "application/json; charset=utf-8"
  25. },
  26. "body": "{\"id\":\"ssh-settings-overlay-title\",\"object\":\"chat.completion\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"message\":{\"role\":\"assistant\",\"content\":\"{\\\"title\\\":\\\"SSH settings overlay\\\"}\"},\"finish_reason\":\"stop\"}]}"
  27. }
  28. },
  29. {
  30. "id": "ssh-settings-overlay-a-first",
  31. "description": "workspace A 首发响应。",
  32. "metadata": {
  33. "kind": "main",
  34. "timingPolicy": "slow-stream",
  35. "source": "synthetic",
  36. "syntheticReason": "稳定创建远程 task 并让首发回到 idle。"
  37. },
  38. "match": {
  39. "method": "POST",
  40. "pathIncludes": "/chat/completions",
  41. "lastUserMessageIncludes": ["E2E_SSH_P0_SETTINGS_OVERLAY_SIDEBAR_A_FIRST_PROMPT"],
  42. "bodyExcludes": ["Generate a concise title"]
  43. },
  44. "response": {
  45. "statusCode": 200,
  46. "delayMs": 1200,
  47. "headers": {
  48. "content-type": "text/event-stream; charset=utf-8"
  49. },
  50. "body": "data: {\"id\":\"ssh-settings-overlay-a-first\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"SSH_P0_SETTINGS_OVERLAY_SIDEBAR_REPLY\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"ssh-settings-overlay-a-first\",\"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. "id": "ssh-settings-overlay-a-follow",
  55. "description": "续发写出首个流片段后等待开关设置页及运行态断言,显式释放后结束任务。",
  56. "metadata": {
  57. "kind": "main",
  58. "timingPolicy": "controlled-stream",
  59. "source": "synthetic",
  60. "syntheticReason": "确保设置页覆盖与返回都发生在远端任务运行期间,释放后验证侧栏订阅正确收口。"
  61. },
  62. "match": {
  63. "method": "POST",
  64. "pathIncludes": "/chat/completions",
  65. "lastUserMessageIncludes": ["E2E_SSH_P0_SETTINGS_OVERLAY_SIDEBAR_A_FOLLOW_PROMPT"],
  66. "bodyExcludes": ["Generate a concise title"]
  67. },
  68. "response": {
  69. "statusCode": 200,
  70. "headers": {
  71. "content-type": "text/event-stream; charset=utf-8"
  72. },
  73. "chunks": [
  74. {
  75. "offsetMs": 0,
  76. "text": "data: {\"id\":\"ssh-settings-overlay-a-follow\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"SSH_P0_SETTINGS_OVERLAY_SIDEBAR_REPLY\"},\"finish_reason\":null}]}\n\n"
  77. },
  78. {
  79. "offsetMs": 100,
  80. "text": "data: {\"id\":\"ssh-settings-overlay-a-follow\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}]}\n\n"
  81. },
  82. {
  83. "offsetMs": 200,
  84. "text": "data: [DONE]\n\n"
  85. }
  86. ],
  87. "releaseAfterChunks": 1
  88. }
  89. }
  90. ]
  91. }