mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-09-06 22:33:14 +00:00
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
No EOL
1.7 KiB
Text
29 lines
No EOL
1.7 KiB
Text
X-Content-Type-Options: nosniff
|
|
X-Next-Page:
|
|
Ratelimit-Observed: 5
|
|
X-Frame-Options: SAMEORIGIN
|
|
X-Per-Page: 100
|
|
Ratelimit-Limit: 2000
|
|
Cf-Cache-Status: MISS
|
|
Strict-Transport-Security: max-age=31536000
|
|
Referrer-Policy: strict-origin-when-cross-origin
|
|
Ratelimit-Resettime: Thu, 30 Nov 2023 08:45:46 GMT
|
|
Content-Security-Policy: default-src 'none'
|
|
Link: <https://gitlab.com/api/v4/projects/15578026/milestones?id=15578026&include_parent_milestones=false&page=1&per_page=100&state=all>; rel="first", <https://gitlab.com/api/v4/projects/15578026/milestones?id=15578026&include_parent_milestones=false&page=1&per_page=100&state=all>; rel="last"
|
|
X-Gitlab-Meta: {"correlation_id":"4f72373995f8681ce127c62d384745a3","version":"1"}
|
|
Gitlab-Sv: localhost
|
|
X-Runtime: 0.073691
|
|
Ratelimit-Remaining: 1995
|
|
Ratelimit-Reset: 1701333946
|
|
Content-Type: application/json
|
|
Etag: W/"c8e2d3a5f05ee29c58b665c86684f9f9"
|
|
X-Page: 1
|
|
Gitlab-Lb: haproxy-main-47-lb-gprd
|
|
Vary: Origin, Accept-Encoding
|
|
X-Prev-Page:
|
|
X-Total: 2
|
|
Cache-Control: max-age=0, private, must-revalidate
|
|
X-Total-Pages: 1
|
|
Set-Cookie: _cfuvid=ZfjvK5rh2nTUjEDt1Guwzd8zrl6uCDplfE8NBPbdJ7c-1701333886832-0-604800000; path=/; domain=.gitlab.com; HttpOnly; Secure; SameSite=None
|
|
|
|
[{"id":1082927,"iid":2,"project_id":15578026,"title":"1.1.0","description":"","state":"active","created_at":"2019-11-28T08:42:44.575Z","updated_at":"2019-11-28T08:42:44.575Z","due_date":null,"start_date":null,"expired":false,"web_url":"https://gitlab.com/gitea/test_repo/-/milestones/2"},{"id":1082926,"iid":1,"project_id":15578026,"title":"1.0.0","description":"","state":"closed","created_at":"2019-11-28T08:42:30.301Z","updated_at":"2019-11-28T15:57:52.401Z","due_date":null,"start_date":null,"expired":false,"web_url":"https://gitlab.com/gitea/test_repo/-/milestones/1"}] |