{ "version": 1, "caseName": "conversation-session-automation-cron-create", "spec": "./test/e2e/conversation-session/automations/conversation-session-automation-cron-create.test.ts", "fixtures": [ { "id": "upstream-conversation-automation-cron-create-title", "description": "定时任务创建 case 的标题生成固定响应,避免标题请求误命中主流程 fixture。", "metadata": { "kind": "common", "timingPolicy": "fast-text", "source": "synthetic", "syntheticReason": "标题生成不属于定时任务产品语义,只需稳定返回,避免标题请求误命中主流程 fixture。" }, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["Generate a concise title", "E2E_AUTOMATION_CRON_CREATE"] }, "response": { "statusCode": 200, "statusMessage": "OK", "headers": { "content-type": "application/json; charset=utf-8" }, "body": "{\"id\":\"upstream-e2e-automation-cron-create-title\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"title\\\":\\\"Automation Cron Create E2E\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":120,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":20,\"service_tier\":\"standard\"}}" } }, { "id": "upstream-conversation-automation-cron-create-tool", "description": "首段响应:返回 CronCreate tool_use,以 31 小时 interval carrier 创建任务,供聊天卡片、详情回显和合法兼容 cron 断言。", "metadata": { "kind": "main", "timingPolicy": "fast-text", "source": "synthetic", "syntheticReason": "真实 provider 不一定稳定选择 CronCreate;本响应固定触发工具,专门验证会话内创建→聊天卡片→按 automationId 直达任务详情。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["E2E_AUTOMATION_CRON_CREATE"], "bodyExcludes": [ "Generate a concise title", "CRITICAL: Respond with TEXT ONLY", "E2E_CRON_STANDUP" ] }, "response": { "statusCode": 200, "toolUse": { "id": "toolu_e2e_automation_cron_create", "messageId": "msg_e2e_automation_cron_create", "name": "CronCreate", "input": { "cron": "49 * * * *", "intervalUnit": "hourly", "interval": 31, "title": "E2E_CRON_STANDUP", "prompt": "Remind the team to run the daily standup." } } } }, { "id": "upstream-conversation-automation-cron-create-final", "description": "收尾响应:CronCreate tool_result 进入历史后返回结束文本,稳定完成 case。", "metadata": { "kind": "main", "timingPolicy": "fast-text", "source": "synthetic", "syntheticReason": "CronCreate tool_result 进入历史后结束 case,真实 provider 回复内容不影响产品语义。" }, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["E2E_AUTOMATION_CRON_CREATE", "E2E_CRON_STANDUP"], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "statusMessage": "OK", "text": { "id": "upstream-e2e-automation-cron-create-final", "inputTokens": 200, "outputTokens": 12, "text": "upstream-e2e-ok" } } } ] }