conversation-session-provider-registry-prewarm.json 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-provider-registry-prewarm",
  4. "spec": "./test/e2e/conversation-session/models/conversation-session-provider-registry-prewarm.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "provider-registry-prewarm-title",
  8. "description": "provider registry 冷启动 case 的标题固定响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "标题生成不属于 provider registry 冷启动屏障语义。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/chat/completions",
  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\":\"provider-registry-prewarm-title\",\"object\":\"chat.completion\",\"created\":0,\"model\":\"GLM-5.2\",\"choices\":[{\"index\":0,\"message\":{\"role\":\"assistant\",\"content\":\"{\\\"title\\\":\\\"Provider prewarm\\\"}\"},\"finish_reason\":\"stop\"}]}"
  27. }
  28. },
  29. {
  30. "id": "provider-registry-prewarm-main",
  31. "description": "I64 registry revision 屏障后的 custom GLM 首发固定响应。",
  32. "metadata": {
  33. "kind": "main",
  34. "timingPolicy": "fast-text",
  35. "source": "synthetic",
  36. "syntheticReason": "核心断言是冷启动首个预热会话与真实请求保持 custom GLM,响应仅用于稳定收口。"
  37. },
  38. "maxMatches": 1,
  39. "match": {
  40. "method": "POST",
  41. "pathIncludes": "/chat/completions",
  42. "lastUserMessageIncludes": ["E2E_PROVIDER_REGISTRY_PREWARM"],
  43. "bodyIncludes": ["E2E_PROVIDER_REGISTRY_PREWARM", "GLM-5.2"],
  44. "bodyExcludes": ["Generate a concise title"]
  45. },
  46. "response": {
  47. "statusCode": 200,
  48. "statusMessage": "OK",
  49. "headers": {
  50. "content-type": "text/event-stream; charset=utf-8"
  51. },
  52. "body": "data: {\"id\":\"provider-registry-prewarm-main\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"GLM-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"upstream-e2e-ok\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"provider-registry-prewarm-main\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"GLM-5.2\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}]}\n\ndata: [DONE]\n\n"
  53. }
  54. }
  55. ]
  56. }