forgejo/services/migrations/testdata/gitlab/full_download/_api_v4_version
Antonin Delpeuch db0dbab552
[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)
(cherry picked from commit 6e93df3bbb)
2024-01-08 17:05:46 +01:00

22 lines
985 B
Plaintext

Etag: W/"4e5c0a031c3aacb6ba0a3c19e67d7592"
Ratelimit-Observed: 1
Content-Type: application/json
Ratelimit-Remaining: 1999
Set-Cookie: _cfuvid=qtYbzv8YeGg4q7XaV0aAE2.YqWIp_xrYPGilXrlecsk-1701333885742-0-604800000; path=/; domain=.gitlab.com; HttpOnly; Secure; SameSite=None
X-Gitlab-Meta: {"correlation_id":"c7c75f0406e1b1b9705a6d7e9bdb06a5","version":"1"}
X-Runtime: 0.039264
Cf-Cache-Status: MISS
Content-Security-Policy: default-src 'none'
Ratelimit-Reset: 1701333945
Gitlab-Sv: localhost
Strict-Transport-Security: max-age=31536000
Vary: Origin, Accept-Encoding
X-Content-Type-Options: nosniff
Referrer-Policy: strict-origin-when-cross-origin
Ratelimit-Resettime: Thu, 30 Nov 2023 08:45:45 GMT
Gitlab-Lb: haproxy-main-23-lb-gprd
Cache-Control: max-age=0, private, must-revalidate
X-Frame-Options: SAMEORIGIN
Ratelimit-Limit: 2000
{"version":"16.7.0-pre","revision":"acd848a9228","kas":{"enabled":true,"externalUrl":"wss://kas.gitlab.com","version":"v16.7.0-rc2"},"enterprise":true}