plugin-runtime-env-agent-projection.json 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {
  2. "version": 1,
  3. "caseName": "plugin-runtime-env-agent-projection",
  4. "spec": "./test/e2e/plugins/plugin-runtime-env-agent-projection.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "upstream-plugin-runtime-env-tool-call",
  8. "description": "PLM-LC-010 advertises and calls the installed plugin secret-env verifier.",
  9. "match": {
  10. "method": "POST",
  11. "pathIncludes": "/messages",
  12. "lastUserMessageIncludes": ["E2E_PLUGIN_SECRET_ENV_CASE_"],
  13. "bodyIncludes": ["E2E_PLUGIN_SECRET_ENV_CASE_"],
  14. "bodyExcludes": [
  15. "Generate a concise title",
  16. "CRITICAL: Respond with TEXT ONLY"
  17. ]
  18. },
  19. "replay": { "consumeOnce": true },
  20. "response": {
  21. "statusCode": 200,
  22. "toolUse": {
  23. "id": "toolu_e2e_plugin_secret_env",
  24. "name": "mcp__plugin_e2e-plugin-secret-agent_secret-verifier__verify_secret_env",
  25. "input": {}
  26. }
  27. }
  28. },
  29. {
  30. "id": "upstream-plugin-runtime-env-final",
  31. "description": "PLM-LC-010 final response after the MCP confirms the secret env was resolved.",
  32. "match": {
  33. "method": "POST",
  34. "pathIncludes": "/messages",
  35. "bodyIncludes": [
  36. "E2E_PLUGIN_SECRET_ENV_CASE_",
  37. "toolu_e2e_plugin_secret_env",
  38. "E2E_PLUGIN_RUNTIME_SECRET_RESOLVED"
  39. ],
  40. "bodyExcludes": [
  41. "Generate a concise title",
  42. "CRITICAL: Respond with TEXT ONLY"
  43. ]
  44. },
  45. "response": { "statusCode": 200, "text": "upstream-e2e-ok" }
  46. }
  47. ]
  48. }