Files
larksuite-cli/tests
zhaojunlin.0405 84e349eac6 test: match docs request path exactly and assert proxy headers stay off upstream
Two CodeRabbit findings on the previous commit:

1. The docs-request selectors used strings.Contains, so a wrong API
   prefix or version (e.g. docs_ai/v2) could still match while the mock
   answers any path with a generic success. Select by the full exact
   path /open-apis/docs_ai/v1/documents/<doc>/fetch instead.

2. The upstream assertion proved token injection but would not notice
   the forward leaking sidecar wire-protocol headers. Assert every
   X-Lark-Proxy-* header and X-Lark-Body-Sha256 is absent from the
   forwarded docs request.
2026-07-10 14:28:47 +08:00
..