conversation-session-ssh-remote-server-fault.json 2.3 KB

1234567891011121314151617181920212223
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-ssh-remote-server-fault",
  4. "spec": "./test/e2e/conversation-session/conversation-session-ssh-remote-server-fault.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "ssh-server-fault-title",
  8. "description": "SSH server fault task 标题辅助响应。",
  9. "metadata": { "kind": "common", "timingPolicy": "fast-text", "source": "synthetic", "syntheticReason": "标题不属于远端 server 故障断言。" },
  10. "maxMatches": 4,
  11. "match": { "method": "POST", "pathIncludes": "/chat/completions", "bodyIncludes": ["Generate a concise title", "E2E_SSH_P0_SERVER_FAULT"] },
  12. "response": { "statusCode": 200, "headers": { "content-type": "text/event-stream; charset=utf-8" }, "body": "data: {\"id\":\"ssh-fault-title\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"{\\\"title\\\":\\\"SSH server fault\"}\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"ssh-fault-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-server-fault-main",
  16. "description": "SSH server fault 重连前后的首发和续发通用响应。",
  17. "metadata": { "kind": "main", "timingPolicy": "slow-stream", "source": "synthetic", "syntheticReason": "server fault 后通过 task history 与新 remoteSessionId 断言恢复路由。" },
  18. "maxMatches": 10,
  19. "match": { "method": "POST", "pathIncludes": "/chat/completions", "bodyIncludes": ["E2E_SSH_P0_SERVER_FAULT_"], "bodyExcludes": ["Generate a concise title"] },
  20. "response": { "statusCode": 200, "delayMs": 1200, "headers": { "content-type": "text/event-stream; charset=utf-8" }, "body": "data: {\"id\":\"ssh-fault-main\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"SSH_P0_SERVER_FAULT_REPLY\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"ssh-fault-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. }