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

1234567891011121314151617181920212223
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-ssh-remote-cold-reconnect",
  4. "spec": "./test/e2e/conversation-session/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": { "kind": "common", "timingPolicy": "fast-text", "source": "synthetic", "syntheticReason": "标题不属于冷恢复断言。" },
  10. "maxMatches": 4,
  11. "match": { "method": "POST", "pathIncludes": "/chat/completions", "bodyIncludes": ["Generate a concise title", "E2E_SSH_P0_COLD_RECONNECT"] },
  12. "response": { "statusCode": 200, "headers": { "content-type": "text/event-stream; charset=utf-8" }, "body": "data: {\"id\":\"ssh-cold-title\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"{\\\"title\\\":\\\"SSH cold reconnect\"}\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"ssh-cold-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" }
  13. },
  14. {
  15. "id": "ssh-cold-reconnect-main",
  16. "description": "SSH cold reconnect 首发和续发的通用响应。",
  17. "metadata": { "kind": "main", "timingPolicy": "slow-stream", "source": "synthetic", "syntheticReason": "首发与冷恢复续发都只需要稳定完成,用 task history 断言路由。" },
  18. "maxMatches": 10,
  19. "match": { "method": "POST", "pathIncludes": "/chat/completions", "bodyIncludes": ["E2E_SSH_P0_COLD_RECONNECT_"], "bodyExcludes": ["Generate a concise title"] },
  20. "response": { "statusCode": 200, "delayMs": 1200, "headers": { "content-type": "text/event-stream; charset=utf-8" }, "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" }
  21. }
  22. ]
  23. }