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
3.6 KiB
Plaintext
29 lines
3.6 KiB
Plaintext
Strict-Transport-Security: max-age=31536000
|
|
Referrer-Policy: strict-origin-when-cross-origin
|
|
Ratelimit-Reset: 1701333947
|
|
X-Total: 1
|
|
Ratelimit-Resettime: Thu, 30 Nov 2023 08:45:47 GMT
|
|
Ratelimit-Limit: 2000
|
|
X-Runtime: 0.178411
|
|
Gitlab-Lb: haproxy-main-15-lb-gprd
|
|
Vary: Origin, Accept-Encoding
|
|
X-Page: 1
|
|
X-Frame-Options: SAMEORIGIN
|
|
Ratelimit-Observed: 7
|
|
Cf-Cache-Status: MISS
|
|
Etag: W/"dccc7159dc4b46989d13128a7d6ee859"
|
|
X-Content-Type-Options: nosniff
|
|
Ratelimit-Remaining: 1993
|
|
X-Gitlab-Meta: {"correlation_id":"0044a3de3ede2f913cabe6e464dd73c2","version":"1"}
|
|
X-Total-Pages: 1
|
|
X-Next-Page:
|
|
X-Per-Page: 100
|
|
Content-Type: application/json
|
|
Content-Security-Policy: default-src 'none'
|
|
Set-Cookie: _cfuvid=h1ayMNs6W_kFPoFe28IpiaFUz1ZAPvY6npUWxARRx4I-1701333887452-0-604800000; path=/; domain=.gitlab.com; HttpOnly; Secure; SameSite=None
|
|
Link: <https://gitlab.com/api/v4/projects/15578026/releases?id=15578026&order_by=released_at&page=1&per_page=100&sort=desc>; rel="first", <https://gitlab.com/api/v4/projects/15578026/releases?id=15578026&order_by=released_at&page=1&per_page=100&sort=desc>; rel="last"
|
|
Gitlab-Sv: localhost
|
|
Cache-Control: max-age=0, private, must-revalidate
|
|
X-Prev-Page:
|
|
|
|
[{"name":"First Release","tag_name":"v0.9.99","description":"A test release","created_at":"2019-11-28T09:09:48.840Z","released_at":"2019-11-28T09:09:48.836Z","upcoming_release":false,"author":{"id":1241334,"username":"lafriks","name":"Lauris BH","state":"active","locked":false,"avatar_url":"https://gitlab.com/uploads/-/system/user/avatar/1241334/avatar.png","web_url":"https://gitlab.com/lafriks"},"commit":{"id":"0720a3ec57c1f843568298117b874319e7deee75","short_id":"0720a3ec","created_at":"2019-11-28T08:49:16.000+00:00","parent_ids":["93ea21ce45d35690c35e80961d239645139e872c"],"title":"Add new file","message":"Add new file","author_name":"Lauris BH","author_email":"lauris@nix.lv","authored_date":"2019-11-28T08:49:16.000+00:00","committer_name":"Lauris BH","committer_email":"lauris@nix.lv","committed_date":"2019-11-28T08:49:16.000+00:00","trailers":{},"extended_trailers":{},"web_url":"https://gitlab.com/gitea/test_repo/-/commit/0720a3ec57c1f843568298117b874319e7deee75"},"commit_path":"/gitea/test_repo/-/commit/0720a3ec57c1f843568298117b874319e7deee75","tag_path":"/gitea/test_repo/-/tags/v0.9.99","assets":{"count":4,"sources":[{"format":"zip","url":"https://gitlab.com/gitea/test_repo/-/archive/v0.9.99/test_repo-v0.9.99.zip"},{"format":"tar.gz","url":"https://gitlab.com/gitea/test_repo/-/archive/v0.9.99/test_repo-v0.9.99.tar.gz"},{"format":"tar.bz2","url":"https://gitlab.com/gitea/test_repo/-/archive/v0.9.99/test_repo-v0.9.99.tar.bz2"},{"format":"tar","url":"https://gitlab.com/gitea/test_repo/-/archive/v0.9.99/test_repo-v0.9.99.tar"}],"links":[]},"evidences":[{"sha":"89f1223473ee01f192a83d0cb89f4d1eac1de74f01ad","filepath":"https://gitlab.com/gitea/test_repo/-/releases/v0.9.99/evidences/52147.json","collected_at":"2019-11-28T09:09:48.888Z"}],"_links":{"closed_issues_url":"https://gitlab.com/gitea/test_repo/-/issues?release_tag=v0.9.99\u0026scope=all\u0026state=closed","closed_merge_requests_url":"https://gitlab.com/gitea/test_repo/-/merge_requests?release_tag=v0.9.99\u0026scope=all\u0026state=closed","merged_merge_requests_url":"https://gitlab.com/gitea/test_repo/-/merge_requests?release_tag=v0.9.99\u0026scope=all\u0026state=merged","opened_issues_url":"https://gitlab.com/gitea/test_repo/-/issues?release_tag=v0.9.99\u0026scope=all\u0026state=opened","opened_merge_requests_url":"https://gitlab.com/gitea/test_repo/-/merge_requests?release_tag=v0.9.99\u0026scope=all\u0026state=opened","self":"https://gitlab.com/gitea/test_repo/-/releases/v0.9.99"}}] |