gitea/services/migrations
singuliere 49cab2b01f
migrations: add test for importing pull requests in gitea uploader (#18752)
* logs: add the buffer logger to inspect logs during testing

Signed-off-by: Loïc Dachary <loic@dachary.org>

* migrations: add test for importing pull requests in gitea uploader

Signed-off-by: Loïc Dachary <loic@dachary.org>

* for each git.OpenRepositoryCtx, call Close

* Content is expected to return the content of the log

* test for errors before defer

Co-authored-by: Loïc Dachary <loic@dachary.org>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-02-25 17:20:50 +08:00
..
codebase.go
codebase_test.go
dump.go Delete old git.NewCommand() and use it as git.NewCommandContext() (#18552) 2022-02-06 20:01:47 +01:00
error.go
git.go
gitbucket.go
gitea_downloader.go
gitea_downloader_test.go
gitea_uploader.go migrations: add test for importing pull requests in gitea uploader (#18752) 2022-02-25 17:20:50 +08:00
gitea_uploader_test.go migrations: add test for importing pull requests in gitea uploader (#18752) 2022-02-25 17:20:50 +08:00
github.go
github_test.go
gitlab.go GitLab reviews may not have the updated_at field set (#18450) 2022-01-29 18:33:20 +01:00
gitlab_test.go GitLab reviews may not have the updated_at field set (#18450) 2022-01-29 18:33:20 +01:00
gogs.go
gogs_test.go
http_client.go
main_test.go GitLab reviews may not have the updated_at field set (#18450) 2022-01-29 18:33:20 +01:00
migrate.go
migrate_test.go
onedev.go
onedev_test.go
restore.go
update.go