forgejo/services/migrations/testdata/gitlab/full_download
Antonin Delpeuch 6e93df3bbb
[GITEA] Enable mocked HTTP responses for GitLab migration test
Fix gitlab migration unit test

Closes #1837.

The differences in dates can be explained by commit e19b9653ea, which
changed the order in which "created_date" and "updated_date" are
considered.

(cherry picked from commit b0bba20aa4)

Mock HTTP requests in GitLab migration test

This introduces a new utility which can be added to other tests
making HTTP calls to a live service, to cache the responses of this
service in the repository.

(cherry picked from commit 52053b1389)

Enable mocked HTTP responses for GitLab migration test

(cherry picked from commit 19cefc4de2)

Simplify HTTP mocking utility in unit tests

Follow-up to https://codeberg.org/forgejo/forgejo/pulls/1841

(cherry picked from commit ca517c8bb4)
(cherry picked from commit b227e0dd6b)
(cherry picked from commit 6cc9d06556)
(cherry picked from commit f0746e648d)
(cherry picked from commit 414193341b)
2024-01-01 15:24:08 +01:00
..
_api_v4_projects_15578026
_api_v4_projects_15578026_issues?page=1&per_page=2&sort=asc&state=all
_api_v4_projects_15578026_issues_1_award_emoji?page=1&per_page=2
_api_v4_projects_15578026_issues_1_award_emoji?page=2&per_page=2
_api_v4_projects_15578026_issues_2_award_emoji?page=1&per_page=2
_api_v4_projects_15578026_issues_2_award_emoji?page=2&per_page=2
_api_v4_projects_15578026_issues_2_award_emoji?page=3&per_page=2
_api_v4_projects_15578026_issues_2_award_emoji?page=4&per_page=2
_api_v4_projects_15578026_issues_2_discussions?page=1&per_page=100
_api_v4_projects_15578026_labels?page=1&per_page=100
_api_v4_projects_15578026_merge_requests?page=1&per_page=1&view=simple
_api_v4_projects_15578026_merge_requests_1_approvals
_api_v4_projects_15578026_merge_requests_2
_api_v4_projects_15578026_merge_requests_2_approvals
_api_v4_projects_15578026_merge_requests_2_award_emoji?page=1&per_page=1
_api_v4_projects_15578026_merge_requests_2_award_emoji?page=2&per_page=1
_api_v4_projects_15578026_merge_requests_2_award_emoji?page=3&per_page=1
_api_v4_projects_15578026_milestones?page=1&per_page=100&state=all
_api_v4_projects_15578026_releases?page=1&per_page=100
_api_v4_projects_gitea%2Ftest_repo
_api_v4_version