workspace-removal-runtime-release.json 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {
  2. "version": 1,
  3. "caseName": "workspace-removal-runtime-release",
  4. "spec": "./test/e2e/workspace/runtime/workspace-removal-runtime-release.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "workspace-removal-runtime-release-title-sidecar",
  8. "description": "本例标题旁路响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "source": "synthetic",
  12. "timingPolicy": "fast-text",
  13. "syntheticReason": "运行时证据显示标题旁路缺少响应;在本例显式登记固定标题,避免依赖 legacy fixture 或触发后台网络重试。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": ["Generate a concise title"]
  19. },
  20. "response": {
  21. "statusCode": 200,
  22. "statusMessage": "OK",
  23. "headers": {
  24. "content-type": "application/json; charset=utf-8"
  25. },
  26. "body": "{\"id\":\"upstream-e2e-title-fixture\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"title\\\":\\\"Upstream E2E Fixture\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":125,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":24,\"service_tier\":\"standard\"}}"
  27. }
  28. },
  29. {
  30. "id": "workspace-removal-history",
  31. "description": "真实会话首发响应。",
  32. "metadata": {
  33. "kind": "main",
  34. "timingPolicy": "fast-text",
  35. "source": "synthetic",
  36. "syntheticReason": "固定会话内容以验证项目删除保留历史和应用退出资源回收。"
  37. },
  38. "match": {
  39. "method": "POST",
  40. "pathIncludes": "/messages",
  41. "bodyIncludes": ["E2E_WORKSPACE_REMOVAL_RUNTIME_RELEASE"],
  42. "bodyExcludes": ["Generate a concise title"]
  43. },
  44. "response": {
  45. "statusCode": 200,
  46. "text": {
  47. "id": "workspace-removal-history",
  48. "inputTokens": 40,
  49. "outputTokens": 8,
  50. "text": "WRL_HISTORY_PRESERVED"
  51. }
  52. }
  53. }
  54. ]
  55. }