feat(agent): add read-only webhook payload fetch endpoint for backfill

This commit is contained in:
Abhimanyu Saharan
2026-02-14 19:05:33 +00:00
committed by Abhimanyu Saharan
parent 9ccb9aefd8
commit 3fc96baa10
3 changed files with 297 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
# ruff: noqa: INP001, S101
from __future__ import annotations
from app.main import app
def test_openapi_includes_agent_webhook_payload_read_endpoint() -> None:
schema = app.openapi()
path = "/api/v1/agent/boards/{board_id}/webhooks/{webhook_id}/payloads/{payload_id}"
assert path in schema["paths"]
op = schema["paths"][path]["get"]
tags = set(op.get("tags", []))
assert "agent-worker" in tags