conversation-session-bot-continuous-worker.json 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-bot-continuous-worker",
  4. "spec": "./test/e2e/conversation-session/conversation-session-bot-continuous-worker.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "queue-running",
  8. "metadata": {
  9. "kind": "main",
  10. "timingPolicy": "controlled-stream",
  11. "source": "synthetic",
  12. "syntheticReason": "真实 CLI 顺序提升群聊队列与私聊持续订阅;模型与平台 HTTP 隔离。"
  13. },
  14. "match": {
  15. "method": "POST",
  16. "pathIncludes": "/messages",
  17. "lastUserMessageIncludes": [
  18. "E2E_BOT_GROUP_RUNNING"
  19. ],
  20. "bodyExcludes": [
  21. "E2E_BOT_GROUP_QUEUED",
  22. "Generate a concise title",
  23. "CRITICAL: Respond with TEXT ONLY"
  24. ]
  25. },
  26. "response": {
  27. "statusCode": 200,
  28. "headers": {
  29. "content-type": "text/event-stream"
  30. },
  31. "chunks": [
  32. {
  33. "offsetMs": 0,
  34. "text": "event: message_start\ndata: {\"type\": \"message_start\", \"message\": {\"id\": \"slow\", \"type\": \"message\", \"role\": \"assistant\", \"model\": \"e2e-bot-model\", \"content\": [], \"usage\": {\"input_tokens\": 20, \"output_tokens\": 0}}}\n\nevent: content_block_start\ndata: {\"type\": \"content_block_start\", \"index\": 0, \"content_block\": {\"type\": \"text\", \"text\": \"\"}}\n\nevent: content_block_delta\ndata: {\"type\": \"content_block_delta\", \"index\": 0, \"delta\": {\"type\": \"text_delta\", \"text\": \"E2E_GROUP_RUNNING\"}}\n\n"
  35. },
  36. {
  37. "offsetMs": 12000,
  38. "text": "event: content_block_delta\ndata: {\"type\": \"content_block_delta\", \"index\": 0, \"delta\": {\"type\": \"text_delta\", \"text\": \" E2E_GROUP_FINISHED\"}}\n\nevent: content_block_stop\ndata: {\"type\": \"content_block_stop\", \"index\": 0}\n\nevent: message_delta\ndata: {\"type\": \"message_delta\", \"delta\": {\"stop_reason\": \"end_turn\", \"stop_sequence\": null}, \"usage\": {\"output_tokens\": 10}}\n\nevent: message_stop\ndata: {\"type\": \"message_stop\"}\n\n"
  39. }
  40. ]
  41. }
  42. },
  43. {
  44. "id": "queue-next",
  45. "metadata": {
  46. "kind": "main",
  47. "timingPolicy": "fast-text",
  48. "source": "synthetic",
  49. "syntheticReason": "真实 CLI 顺序提升群聊队列与私聊持续订阅;模型与平台 HTTP 隔离。"
  50. },
  51. "match": {
  52. "method": "POST",
  53. "pathIncludes": "/messages",
  54. "lastUserMessageIncludes": [
  55. "E2E_BOT_GROUP_QUEUED"
  56. ],
  57. "bodyExcludes": [
  58. "Generate a concise title",
  59. "CRITICAL: Respond with TEXT ONLY"
  60. ]
  61. },
  62. "response": {
  63. "statusCode": 200,
  64. "text": "E2E_GROUP_QUEUED_DONE"
  65. }
  66. },
  67. {
  68. "id": "private-first",
  69. "metadata": {
  70. "kind": "main",
  71. "timingPolicy": "fast-text",
  72. "source": "synthetic",
  73. "syntheticReason": "真实 CLI 顺序提升群聊队列与私聊持续订阅;模型与平台 HTTP 隔离。"
  74. },
  75. "match": {
  76. "method": "POST",
  77. "pathIncludes": "/messages",
  78. "lastUserMessageIncludes": [
  79. "E2E_BOT_PRIVATE_FIRST"
  80. ],
  81. "bodyExcludes": [
  82. "Generate a concise title",
  83. "CRITICAL: Respond with TEXT ONLY"
  84. ]
  85. },
  86. "response": {
  87. "statusCode": 200,
  88. "text": "E2E_PRIVATE_FIRST_DONE"
  89. }
  90. },
  91. {
  92. "id": "private-next",
  93. "metadata": {
  94. "kind": "main",
  95. "timingPolicy": "fast-text",
  96. "source": "synthetic",
  97. "syntheticReason": "真实 CLI 顺序提升群聊队列与私聊持续订阅;模型与平台 HTTP 隔离。"
  98. },
  99. "match": {
  100. "method": "POST",
  101. "pathIncludes": "/messages",
  102. "lastUserMessageIncludes": [
  103. "E2E_BOT_PRIVATE_NEXT"
  104. ],
  105. "bodyExcludes": [
  106. "Generate a concise title",
  107. "CRITICAL: Respond with TEXT ONLY"
  108. ]
  109. },
  110. "response": {
  111. "statusCode": 200,
  112. "text": "E2E_PRIVATE_NEXT_DONE"
  113. }
  114. }
  115. ]
  116. }