{ "version": 1, "caseName": "conversation-session-r3-restart-remote-service", "spec": "./test/e2e/conversation-session/remote/installation/conversation-session-r3-restart-remote-service.test.ts", "fixtures": [ { "id": "r3-restart-remote-service-title", "description": "重启远端服务用例的 task 标题辅助响应。", "metadata": { "kind": "common", "timingPolicy": "fast-text", "source": "synthetic", "syntheticReason": "标题不属于重启远端服务的断言。" }, "maxMatches": 4, "match": { "method": "POST", "pathIncludes": "/chat/completions", "bodyIncludes": ["Generate a concise title", "E2E_R3_RESTART_REMOTE_SERVICE"] }, "response": { "statusCode": 200, "headers": { "content-type": "text/event-stream; charset=utf-8" }, "body": "data: {\"id\":\"r3-restart-remote-service-title\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"{\\\"title\\\":\\\"Restart remote service\"}\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"r3-restart-remote-service-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" } }, { "id": "r3-restart-remote-service-main", "description": "重启前首发和重启后续发的通用响应。", "metadata": { "kind": "main", "timingPolicy": "fast-text", "source": "synthetic", "syntheticReason": "首发与重启后续发都只需要稳定完成,用 task history 与远端会话换代断言路由。" }, "maxMatches": 10, "match": { "method": "POST", "pathIncludes": "/chat/completions", "bodyIncludes": ["E2E_R3_RESTART_REMOTE_SERVICE_"], "bodyExcludes": ["Generate a concise title"] }, "response": { "statusCode": 200, "headers": { "content-type": "text/event-stream; charset=utf-8" }, "body": "data: {\"id\":\"r3-restart-remote-service-main\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"R3_RESTART_REMOTE_SERVICE_REPLY\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"r3-restart-remote-service-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" } } ] }