Add pagination and API failure-mode coverage #67

Open
opened 2026-07-02 05:43:23 -05:00 by jcwalker3 · 0 comments
Owner

Add focused tests for API pagination and failure modes. The code should handle multi-page Gitea responses and common network/API failures predictably.

Acceptance criteria

  • Tests cover endpoints returning more than one page.
  • Tests cover missing/empty pagination headers where applicable.
  • Tests cover connection timeout behavior.
  • Tests cover DNS/network failure behavior.
  • Tests cover 502/503 upstream failures.
  • Tests cover malformed Gitea error payloads.
  • Errors are returned clearly without exposing secrets.
  • Existing successful-path behavior remains unchanged.
Add focused tests for API pagination and failure modes. The code should handle multi-page Gitea responses and common network/API failures predictably. ## Acceptance criteria * Tests cover endpoints returning more than one page. * Tests cover missing/empty pagination headers where applicable. * Tests cover connection timeout behavior. * Tests cover DNS/network failure behavior. * Tests cover 502/503 upstream failures. * Tests cover malformed Gitea error payloads. * Errors are returned clearly without exposing secrets. * Existing successful-path behavior remains unchanged.
jcwalker3 added the testingreliability labels 2026-07-02 05:43:58 -05:00
Sign in to join this conversation.