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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-bot-continuous-worker",
  4. "spec": "./test/e2e/conversation-session/session-control/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": ["E2E_BOT_GROUP_RUNNING"],
  18. "bodyExcludes": [
  19. "E2E_BOT_GROUP_QUEUED",
  20. "Generate a concise title",
  21. "CRITICAL: Respond with TEXT ONLY"
  22. ]
  23. },
  24. "response": {
  25. "statusCode": 200,
  26. "headers": {
  27. "content-type": "text/event-stream"
  28. },
  29. "releaseAfterChunks": 1,
  30. "chunks": [
  31. {
  32. "offsetMs": 0,
  33. "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"
  34. },
  35. {
  36. "offsetMs": 0,
  37. "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"
  38. }
  39. ]
  40. }
  41. },
  42. {
  43. "id": "queue-next",
  44. "metadata": {
  45. "kind": "main",
  46. "timingPolicy": "fast-text",
  47. "source": "synthetic",
  48. "syntheticReason": "真实 CLI 顺序提升群聊队列与私聊持续订阅;模型与平台 HTTP 隔离。"
  49. },
  50. "match": {
  51. "method": "POST",
  52. "pathIncludes": "/messages",
  53. "lastUserMessageIncludes": ["E2E_BOT_GROUP_QUEUED"],
  54. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  55. },
  56. "response": {
  57. "statusCode": 200,
  58. "text": "E2E_GROUP_QUEUED_DONE"
  59. }
  60. },
  61. {
  62. "id": "private-first",
  63. "metadata": {
  64. "kind": "main",
  65. "timingPolicy": "fast-text",
  66. "source": "synthetic",
  67. "syntheticReason": "真实 CLI 顺序提升群聊队列与私聊持续订阅;模型与平台 HTTP 隔离。"
  68. },
  69. "match": {
  70. "method": "POST",
  71. "pathIncludes": "/messages",
  72. "lastUserMessageIncludes": ["E2E_BOT_PRIVATE_FIRST"],
  73. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  74. },
  75. "response": {
  76. "statusCode": 200,
  77. "text": "E2E_PRIVATE_FIRST_DONE"
  78. }
  79. },
  80. {
  81. "id": "private-next",
  82. "metadata": {
  83. "kind": "main",
  84. "timingPolicy": "fast-text",
  85. "source": "synthetic",
  86. "syntheticReason": "真实 CLI 顺序提升群聊队列与私聊持续订阅;模型与平台 HTTP 隔离。"
  87. },
  88. "match": {
  89. "method": "POST",
  90. "pathIncludes": "/messages",
  91. "lastUserMessageIncludes": ["E2E_BOT_PRIVATE_NEXT"],
  92. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  93. },
  94. "response": {
  95. "statusCode": 200,
  96. "text": "E2E_PRIVATE_NEXT_DONE"
  97. }
  98. }
  99. ]
  100. }