forgejo/services/migrations
Gusted d6f7e154a1
Some checks failed
/ release (push) Waiting to run
testing-integration / test-unit (push) Waiting to run
testing-integration / test-sqlite (push) Waiting to run
testing-integration / test-mariadb (v10.6) (push) Waiting to run
testing-integration / test-mariadb (v11.8) (push) Waiting to run
testing / backend-checks (push) Waiting to run
testing / frontend-checks (push) Waiting to run
testing / test-unit (push) Blocked by required conditions
testing / test-e2e (push) Blocked by required conditions
testing / test-remote-cacher (redis) (push) Blocked by required conditions
testing / test-remote-cacher (valkey) (push) Blocked by required conditions
testing / test-remote-cacher (garnet) (push) Blocked by required conditions
testing / test-remote-cacher (redict) (push) Blocked by required conditions
testing / test-mysql (push) Blocked by required conditions
testing / test-pgsql (push) Blocked by required conditions
testing / test-sqlite (push) Blocked by required conditions
testing / security-check (push) Blocked by required conditions
Integration tests for the release process / release-simulation (push) Has been cancelled
fix: Use mock server for TestBreakConditions (#9948)
- Follow up of forgejo/forgejo!9274
- The test does not call to Gitea for fetching comments, but when initializing the Gitea client it does check the API version and some settings. Mock these responses so this test can be run without a network connection.
- Resolves forgejo/forgejo#9928

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/9948
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.codeberg.org>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2025-11-03 09:33:51 +01:00
..
lint-locale-usage feat(build): add support for the base.Messenger, $.locale.Tr, Form structs to lint-locale-usage (#9095) 2025-09-30 03:25:45 +02:00
testdata fix: Use mock server for TestBreakConditions (#9948) 2025-11-03 09:33:51 +01:00
codebase.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
codebase_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
common.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
dump.go chore: replace gopkg.in/yaml.v3 with go.yaml.in/yaml/v3 (#8956) 2025-08-20 15:31:12 +02:00
error.go fix: github issue migration failing for large datasets (#9348) 2025-10-28 13:57:12 +01:00
forgejo_downloader.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
forgejo_downloader_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
git.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
gitbucket.go Fix migration failing when importing either issues or PRs but not the other (#8892) 2025-09-01 14:05:10 +02:00
gitbucket_test.go Fix migration failing when importing either issues or PRs but not the other (#8892) 2025-09-01 14:05:10 +02:00
gitea_downloader.go fix: stuck gitea/forgejo migration due to API pagination bug (#9274) 2025-10-30 17:32:55 +01:00
gitea_downloader_test.go fix: Use mock server for TestBreakConditions (#9948) 2025-11-03 09:33:51 +01:00
gitea_sdk_hack.go fix(migrations): transfer PR flow information (#7421) 2025-04-03 06:47:37 +00:00
gitea_uploader.go [gitea] week 2025-22 cherry pick (gitea/main -> forgejo) (#8198) 2025-06-17 18:28:07 +02:00
gitea_uploader_test.go Fix migration failing when importing either issues or PRs but not the other (#8892) 2025-09-01 14:05:10 +02:00
github.go fix: github issue migration failing for large datasets (#9348) 2025-10-28 13:57:12 +01:00
github_test.go fix: github issue migration failing for large datasets (#9348) 2025-10-28 13:57:12 +01:00
gitlab.go Update module gitlab.com/gitlab-org/api/client-go to v0.130.1 (forgejo) (#8163) 2025-06-12 11:38:25 +02:00
gitlab_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
gogs.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
gogs_test.go chore(cleanup): replaces unnecessary calls to formatting functions by non-formatting equivalents (#7994) 2025-05-29 17:34:29 +02:00
http_client.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
main_test.go fix(migrations): transfer PR flow information (#7421) 2025-04-03 06:47:37 +00:00
migrate.go chore(cleanup): replaces unnecessary calls to formatting functions by non-formatting equivalents (#7994) 2025-05-29 17:34:29 +02:00
migrate_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
onedev.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
onedev_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
pagure.go Add support for migrating from Pagure (#8513) 2025-08-11 16:56:26 +02:00
pagure_test.go fix: use mocked HTTP server for authorized migration 2025-08-26 21:57:25 +02:00
restore.go chore: replace gopkg.in/yaml.v3 with go.yaml.in/yaml/v3 (#8956) 2025-08-20 15:31:12 +02:00
update.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00