mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-09-18 04:41:26 +02: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
)
22 lines
2.6 KiB
Plaintext
22 lines
2.6 KiB
Plaintext
Vary: Origin, Accept-Encoding
|
|
Ratelimit-Remaining: 1978
|
|
Gitlab-Lb: haproxy-main-04-lb-gprd
|
|
Set-Cookie: _cfuvid=cKUtcpJODQwk9SDRn91k1DY8CY5Tg238DXGgT0a2go0-1701333891493-0-604800000; path=/; domain=.gitlab.com; HttpOnly; Secure; SameSite=None
|
|
Content-Type: application/json
|
|
Cf-Cache-Status: MISS
|
|
Etag: W/"ce2f774c1b05c5c8a14ec9274444cba3"
|
|
Ratelimit-Limit: 2000
|
|
X-Content-Type-Options: nosniff
|
|
Cache-Control: max-age=0, private, must-revalidate
|
|
X-Gitlab-Meta: {"correlation_id":"98ee1da556bdb3d764679ebab9ab5312","version":"1"}
|
|
Referrer-Policy: strict-origin-when-cross-origin
|
|
X-Frame-Options: SAMEORIGIN
|
|
Gitlab-Sv: localhost
|
|
Content-Security-Policy: default-src 'none'
|
|
X-Runtime: 0.165471
|
|
Strict-Transport-Security: max-age=31536000
|
|
Ratelimit-Observed: 22
|
|
Ratelimit-Reset: 1701333951
|
|
Ratelimit-Resettime: Thu, 30 Nov 2023 08:45:51 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","merge_status":"can_be_merged","approved":true,"approvals_required":0,"approvals_left":0,"require_password_to_approve":false,"approved_by":[{"user":{"id":4575606,"username":"real6543","name":"6543","state":"active","locked":false,"avatar_url":"https://gitlab.com/uploads/-/system/user/avatar/4575606/avatar.png","web_url":"https://gitlab.com/real6543"}}],"suggested_approvers":[],"approvers":[],"approver_groups":[{"group":{"id":3181312,"web_url":"https://gitlab.com/groups/gitea","name":"gitea","path":"gitea","description":"Mirror of Gitea source code repositories","visibility":"public","share_with_group_lock":false,"require_two_factor_authentication":false,"two_factor_grace_period":48,"project_creation_level":"maintainer","auto_devops_enabled":null,"subgroup_creation_level":"owner","emails_disabled":false,"emails_enabled":true,"mentions_disabled":null,"lfs_enabled":true,"default_branch_protection":2,"default_branch_protection_defaults":{"allowed_to_push":[{"access_level":30}],"allow_force_push":true,"allowed_to_merge":[{"access_level":30}]},"avatar_url":"https://gitlab.com/uploads/-/system/group/avatar/3181312/gitea.png","request_access_enabled":true,"full_name":"gitea","full_path":"gitea","created_at":"2018-07-04T16:32:10.176Z","parent_id":null,"shared_runners_setting":"enabled","ldap_cn":null,"ldap_access":null,"wiki_access_level":"enabled"}}],"user_has_approved":false,"user_can_approve":false,"approval_rules_left":[],"has_approval_rules":true,"merge_request_approvers_available":false,"multiple_approval_rules_available":false,"invalid_approvers_rules":[]} |