Skip to content

test: add integration tests for gitlab git provider - #25653

Merged
johnstcn merged 1 commit into
cj/gitsync-gitlab-2from
cj/gitsync-gitlab-3
May 25, 2026
Merged

test: add integration tests for gitlab git provider#25653
johnstcn merged 1 commit into
cj/gitsync-gitlab-2from
cj/gitsync-gitlab-3

Conversation

@johnstcn

@johnstcn johnstcn commented May 25, 2026

Copy link
Copy Markdown
Member

Part of CODAGT-146

Add go-vcr based integration tests for the GitLab provider, covering all four provider interface methods against recorded API responses.

Test coverage:

  • FetchPullRequestStatus: 4 fixtures (open/mergeable, open/conflicts, nested/merged, nested/closed from fork)
  • FetchPullRequestDiff: 4 fixtures
  • FetchBranchDiff: 3 fixtures (open MR branch, deleted after merge, fork branch not on target)
  • ResolveBranchPullRequest: 3 fixtures

Includes cassette YAML files with sanitized GitLab API responses, .gitattributes marking them as generated, and typos.toml exclusion.

Stacked on #25652. Part 3 of 3.

Generated with Coder by @johnstcn

Add go-vcr based integration tests for the GitLab provider covering:
- FetchPullRequestStatus (4 fixtures: open, conflicts, merged, closed)
- FetchPullRequestDiff (4 fixtures)
- FetchBranchDiff (3 fixtures: open, deleted, fork)
- ResolveBranchPullRequest (3 fixtures)

Includes cassette YAML files with recorded GitLab API responses,
.gitattributes marking them as generated, and typos.toml exclusion.
@johnstcn johnstcn changed the title test(coderd/externalauth/gitprovider): add GitLab VCR integration tests test: add integration tests for gitlab git provider May 25, 2026
@johnstcn
johnstcn marked this pull request as ready for review May 25, 2026 15:54
Copilot AI review requested due to automatic review settings May 25, 2026 15:54

This comment was marked as off-topic.

@johnstcn
johnstcn merged commit 5d5afda into cj/gitsync-gitlab-2 May 25, 2026
43 of 45 checks passed
@johnstcn
johnstcn deleted the cj/gitsync-gitlab-3 branch May 25, 2026 16:09
@github-actions github-actions Bot locked and limited conversation to collaborators May 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants