| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- {
- "version": 1,
- "caseName": "conversation-session-ssh-remote-shared-desktop-credentials",
- "spec": "./test/e2e/conversation-session/remote/installation/conversation-session-ssh-remote-shared-desktop-credentials.test.ts",
- "fixtures": [
- {
- "id": "r3-ssh-shared-cred-title",
- "description": "远端 task 标题生成固定响应。",
- "metadata": {
- "kind": "common",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "标题内容不属于本 case 语义,只需保持 task row 稳定。"
- },
- "maxMatches": 4,
- "match": {
- "method": "POST",
- "pathIncludes": "/chat/completions",
- "bodyIncludes": ["Generate a concise title", "E2E_R3_SSH_SHARED_CRED"]
- },
- "response": {
- "statusCode": 200,
- "headers": {
- "content-type": "application/json; charset=utf-8"
- },
- "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}}"
- }
- },
- {
- "id": "r3-ssh-shared-cred-first",
- "description": "同机 Desktop 共享库已固定 os 时,远端项目首发固定回复。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "controlled-stream",
- "source": "synthetic",
- "syntheticReason": "延迟回复固定 Agent 运行窗口,在窗口内核对远端 Agent 的凭据文件变量与回复。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/chat/completions",
- "lastUserMessageIncludes": ["E2E_R3_SSH_SHARED_CRED_PROMPT"],
- "bodyExcludes": ["Generate a concise title"]
- },
- "response": {
- "statusCode": 200,
- "delayMs": 6000,
- "headers": {
- "content-type": "text/event-stream; charset=utf-8"
- },
- "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"
- }
- }
- ]
- }
|