mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-10-22 17:07:33 +00:00
01b0ead664
Fix gitlab migration unit test Closes #1837. The differences in dates can be explained by commite19b9653ea
, which changed the order in which "created_date" and "updated_date" are considered. (cherry picked from commitb0bba20aa4
) 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 commit52053b1389
) Enable mocked HTTP responses for GitLab migration test (cherry picked from commit19cefc4de2
) Simplify HTTP mocking utility in unit tests Follow-up to https://codeberg.org/forgejo/forgejo/pulls/1841 (cherry picked from commitca517c8bb4
) (cherry picked from commitb227e0dd6b
) (cherry picked from commit6cc9d06556
) (cherry picked from commitf0746e648d
) (cherry picked from commit414193341b
) (cherry picked from commit6e93df3bbb
) (cherry picked from commitdb0dbab552
) (cherry picked from commit8f9c9c63fb
) (cherry picked from commite74e262030
) (cherry picked from commit2e0933edcf
) (cherry picked from commit65060c6961
)
29 lines
1.8 KiB
Plaintext
29 lines
1.8 KiB
Plaintext
Content-Type: application/json
|
|
X-Page: 1
|
|
Link: <https://gitlab.com/api/v4/projects/15578026/merge_requests?id=15578026&order_by=created_at&page=2&per_page=1&sort=desc&state=all&view=simple&with_labels_details=false&with_merge_status_recheck=false>; rel="next", <https://gitlab.com/api/v4/projects/15578026/merge_requests?id=15578026&order_by=created_at&page=1&per_page=1&sort=desc&state=all&view=simple&with_labels_details=false&with_merge_status_recheck=false>; rel="first", <https://gitlab.com/api/v4/projects/15578026/merge_requests?id=15578026&order_by=created_at&page=2&per_page=1&sort=desc&state=all&view=simple&with_labels_details=false&with_merge_status_recheck=false>; rel="last"
|
|
Vary: Origin, Accept-Encoding
|
|
X-Runtime: 0.139912
|
|
X-Gitlab-Meta: {"correlation_id":"002c20b78ace441f5585931fed7093ed","version":"1"}
|
|
Gitlab-Sv: localhost
|
|
Cache-Control: max-age=0, private, must-revalidate
|
|
X-Total: 2
|
|
X-Total-Pages: 2
|
|
Ratelimit-Observed: 16
|
|
Ratelimit-Limit: 2000
|
|
X-Content-Type-Options: nosniff
|
|
Ratelimit-Remaining: 1984
|
|
Set-Cookie: _cfuvid=6nsOEFMJm7NgrvYZAMGwiJBdm5A5CU71S33zOdN8Kyo-1701333889768-0-604800000; path=/; domain=.gitlab.com; HttpOnly; Secure; SameSite=None
|
|
X-Per-Page: 1
|
|
X-Prev-Page:
|
|
Strict-Transport-Security: max-age=31536000
|
|
Ratelimit-Reset: 1701333949
|
|
Gitlab-Lb: haproxy-main-09-lb-gprd
|
|
X-Next-Page: 2
|
|
Cf-Cache-Status: MISS
|
|
Content-Security-Policy: default-src 'none'
|
|
Etag: W/"14f72c1f555b0e6348d338190e9e4839"
|
|
X-Frame-Options: SAMEORIGIN
|
|
Referrer-Policy: strict-origin-when-cross-origin
|
|
Ratelimit-Resettime: Thu, 30 Nov 2023 08:45:49 GMT
|
|
|
|
[{"id":43524600,"iid":2,"project_id":15578026,"title":"Test branch","description":"do not merge this PR","state":"opened","created_at":"2019-11-28T15:56:54.104Z","updated_at":"2020-04-19T19:24:21.108Z","web_url":"https://gitlab.com/gitea/test_repo/-/merge_requests/2"}] |