Add Docker-based Gitea integration test suite #66

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

Curated 2026-07-02 to reflect review consensus (issue text only; not started).

Add an optional Docker / local-Gitea integration test suite. Mocked unit
tests stay the default; these prove real Gitea behavior (pagination,
permissions, label endpoints, PR review endpoints, error payloads).

Acceptance criteria

  • Integration tests are skipped by default.
  • Explicit opt-in env var enables them (name documented).
  • Harness can start or connect to a local/containerized Gitea instance.
  • Pinned Gitea image/version for reproducibility.
  • Defined seed data and cleanup/teardown requirements.
  • Covers issue listing + pagination, PR listing + pagination, targeted label
    add/remove, permission denial / fail-closed, and review/comment/merge
    eligibility where feasible.
  • Reuses the shared API/client shape from #65 where appropriate.
  • Does not require production credentials; does not leak tokens in logs.
  • Unit tests remain fast and unchanged by default.

Depends on: #65 (reusable API client).

_Curated 2026-07-02 to reflect review consensus (issue text only; not started)._ Add an **optional** Docker / local-Gitea integration test suite. Mocked unit tests stay the default; these prove real Gitea behavior (pagination, permissions, label endpoints, PR review endpoints, error payloads). ## Acceptance criteria * Integration tests are **skipped by default**. * Explicit **opt-in env var** enables them (name documented). * Harness can start or connect to a local/containerized Gitea instance. * **Pinned Gitea image/version** for reproducibility. * Defined **seed data** and **cleanup/teardown** requirements. * Covers issue listing + pagination, PR listing + pagination, targeted label add/remove, permission denial / fail-closed, and review/comment/merge eligibility where feasible. * Reuses the shared API/client shape from #65 where appropriate. * Does not require production credentials; does not leak tokens in logs. * Unit tests remain fast and unchanged by default. Depends on: #65 (reusable API client).
jcwalker3 added the importanttestingintegration labels 2026-07-02 05:43:56 -05:00
sysadmin added the status:in-progress label 2026-07-02 15:05:27 -05:00
sysadmin removed the status:in-progress label 2026-07-02 15:32:36 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Scaled-Tech-Consulting/Gitea-Tools#66