Add Docker-based Gitea integration test suite #66

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

Current tests rely heavily on mocked api_request responses. That is valuable for unit testing, but it does not prove compatibility with real Gitea API behavior around pagination, permissions, label endpoints, PR review endpoints, and error payloads.

Add an optional Docker-based integration test suite against a local/containerized Gitea instance.

Acceptance criteria

  • Integration test harness can start or connect to a local test Gitea instance.
  • Tests are optional and skipped unless explicitly enabled.
  • Covers issue listing and pagination.
  • Covers PR listing and pagination.
  • Covers label add/remove behavior.
  • Covers permission denial/fail-closed behavior.
  • Covers review/comment/merge eligibility paths where feasible.
  • Does not require production credentials.
  • Does not leak tokens in logs.
  • Unit tests remain fast and unchanged by default.
Current tests rely heavily on mocked `api_request` responses. That is valuable for unit testing, but it does not prove compatibility with real Gitea API behavior around pagination, permissions, label endpoints, PR review endpoints, and error payloads. Add an optional Docker-based integration test suite against a local/containerized Gitea instance. ## Acceptance criteria * Integration test harness can start or connect to a local test Gitea instance. * Tests are optional and skipped unless explicitly enabled. * Covers issue listing and pagination. * Covers PR listing and pagination. * Covers label add/remove behavior. * Covers permission denial/fail-closed behavior. * Covers review/comment/merge eligibility paths where feasible. * Does not require production credentials. * Does not leak tokens in logs. * Unit tests remain fast and unchanged by default.
jcwalker3 added the importanttestingintegration labels 2026-07-02 05:43:56 -05:00
Sign in to join this conversation.