conversation-session-configurable-data-directory.json 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-configurable-data-directory",
  4. "spec": "./test/e2e/conversation-session/runtime/conversation-session-configurable-data-directory.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "cdd01-before-migration-title",
  8. "description": "迁移前任务的稳定标题响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "source": "synthetic",
  12. "timingPolicy": "fast-text",
  13. "syntheticReason": "使用 CDD01 marker 隔离标题请求,避免标题生成影响主路径回放。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": ["Generate a concise title", "E2E_CDD01_BEFORE_MIGRATION"]
  19. },
  20. "response": {
  21. "statusCode": 200,
  22. "text": {
  23. "id": "cdd01-before-migration-title",
  24. "inputTokens": 64,
  25. "outputTokens": 8,
  26. "text": "{\"title\":\"Data Directory Migration\"}"
  27. }
  28. }
  29. },
  30. {
  31. "id": "cdd01-before-migration-main",
  32. "description": "迁移前完成一轮普通 conversation,形成可恢复的历史任务。",
  33. "metadata": {
  34. "kind": "main",
  35. "source": "synthetic",
  36. "timingPolicy": "fast-text",
  37. "syntheticReason": "固定迁移前 completed assistant marker,避免依赖真实模型文本。"
  38. },
  39. "match": {
  40. "method": "POST",
  41. "pathIncludes": "/messages",
  42. "lastUserMessageIncludes": ["E2E_CDD01_BEFORE_MIGRATION"],
  43. "bodyExcludes": ["Generate a concise title", "E2E_CDD01_AFTER_MIGRATION"]
  44. },
  45. "response": {
  46. "statusCode": 200,
  47. "text": {
  48. "id": "cdd01-before-migration-main",
  49. "inputTokens": 96,
  50. "outputTokens": 8,
  51. "text": "CDD01_BEFORE_MIGRATION_DONE"
  52. }
  53. }
  54. },
  55. {
  56. "id": "cdd01-after-migration-main",
  57. "description": "冷重启后在同一任务中完成 follow-up。",
  58. "metadata": {
  59. "kind": "main",
  60. "source": "synthetic",
  61. "timingPolicy": "fast-text",
  62. "syntheticReason": "固定迁移后 completed assistant marker,证明新 App 根下原任务仍可继续。"
  63. },
  64. "match": {
  65. "method": "POST",
  66. "pathIncludes": "/messages",
  67. "lastUserMessageIncludes": ["E2E_CDD01_AFTER_MIGRATION"],
  68. "bodyIncludes": ["CDD01_BEFORE_MIGRATION_DONE"],
  69. "bodyExcludes": ["Generate a concise title"]
  70. },
  71. "response": {
  72. "statusCode": 200,
  73. "text": {
  74. "id": "cdd01-after-migration-main",
  75. "inputTokens": 128,
  76. "outputTokens": 8,
  77. "text": "CDD01_AFTER_MIGRATION_DONE"
  78. }
  79. }
  80. }
  81. ]
  82. }