-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integration test for migration #18124
Conversation
Codecov Report
@@ Coverage Diff @@
## main #18124 +/- ##
=======================================
Coverage ? 45.66%
=======================================
Files ? 828
Lines ? 91675
Branches ? 0
=======================================
Hits ? 41864
Misses ? 43088
Partials ? 6723 Continue to review full report at Codecov.
|
00481f3
to
4eca7a8
Compare
405e426
to
0eb55bd
Compare
Apologies for multiple force-pushes, this is my first time relaying contributions. I hope future contributions will not be as messy as then one. Again, apologies and thank you for your patience! |
0eb55bd
to
4a153c8
Compare
I proposed a PR for the AppVer problem. If that PR can be accepted, then we can remove the code for |
This is a first step for integration testing of DumpRepository and RestoreRepository. It: * runs a Gitea server, * dumps a repo via DumpRepository to the filesystem, * restores the repo via RestoreRepository from the filesystem, * dumps the restored repository to the filesystem, * compares the first and second dump and expects them to be identical The verification is trivial and the goal is to add more tests for each topic of the dump. Signed-off-by: Loïc Dachary <loic@dachary.org>
5c98bc4
to
bf5564c
Compare
I have added https://gitea.com/gitea/go-sdk/pulls/560 will release v0.15.1 sdk after backport of this pull and the version fix ... |
After some discussion, it's preferred to continue to use fake versions during tests. The comment is updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Little thingy.
On behalf of @dachary: @Gusted thanks for fixing the ioutil vs os comopatibility, good catch too :-) @6543 & @wxiaoguang I'm impressed by the level of attention you gave to this API version issue, kudos. |
* Team permission allow different unit has different permission * Finish the interface and the logic * Fix lint * Fix translation * align center for table cell content * Fix fixture * merge * Fix test * Add deprecated * Improve code * Add tooltip * Fix swagger * Fix newline * Fix tests * Fix tests * Fix test * Fix test * Max permission of external wiki and issues should be read * Move team units with limited max level below units table * Update label and column names * Some improvements * Fix lint * Some improvements * Fix template variables * Add permission docs * improve doc * Fix fixture * Fix bug * Fix some bug * fix * gofumpt * Integration test for migration (#18124) integrations: basic test for Gitea {dump,restore}-repo This is a first step for integration testing of DumpRepository and RestoreRepository. It: runs a Gitea server, dumps a repo via DumpRepository to the filesystem, restores the repo via RestoreRepository from the filesystem, dumps the restored repository to the filesystem, compares the first and second dump and expects them to be identical The verification is trivial and the goal is to add more tests for each topic of the dump. Signed-off-by: Loïc Dachary <loic@dachary.org> * Team permission allow different unit has different permission * Finish the interface and the logic * Fix lint * Fix translation * align center for table cell content * Fix fixture * merge * Fix test * Add deprecated * Improve code * Add tooltip * Fix swagger * Fix newline * Fix tests * Fix tests * Fix test * Fix test * Max permission of external wiki and issues should be read * Move team units with limited max level below units table * Update label and column names * Some improvements * Fix lint * Some improvements * Fix template variables * Add permission docs * improve doc * Fix fixture * Fix bug * Fix some bug * Fix bug Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Aravinth Manivannan <realaravinth@batsense.net>
* 'main' of https://github.com/go-gitea/gitea: Enable partial clone by default (go-gitea#18195) Add option to convert CRLF to LF line endings for sendmail (go-gitea#18075) Add replay of webhooks. (go-gitea#18191) Load EasyMDE/CodeMirror dynamically, remove RequireEasyMDE (go-gitea#18069) refactoring nits (go-gitea#18188) slight optimization for default avatar (go-gitea#18187) code.gitea.io/sdk/gitea v0.14.0 -> v0.15.1 (go-gitea#18186) Team permission allow different unit has different permission (go-gitea#17811) Integration test for migration (go-gitea#18124) Update `TODOs` badge to reflect new default branch (go-gitea#18182) Increase Salt randomness (go-gitea#18179)
integrations: basic test for Gitea {dump,restore}-repo This is a first step for integration testing of DumpRepository and RestoreRepository. It: runs a Gitea server, dumps a repo via DumpRepository to the filesystem, restores the repo via RestoreRepository from the filesystem, dumps the restored repository to the filesystem, compares the first and second dump and expects them to be identical The verification is trivial and the goal is to add more tests for each topic of the dump. Signed-off-by: Loïc Dachary <loic@dachary.org>
…ea#17811) * Team permission allow different unit has different permission * Finish the interface and the logic * Fix lint * Fix translation * align center for table cell content * Fix fixture * merge * Fix test * Add deprecated * Improve code * Add tooltip * Fix swagger * Fix newline * Fix tests * Fix tests * Fix test * Fix test * Max permission of external wiki and issues should be read * Move team units with limited max level below units table * Update label and column names * Some improvements * Fix lint * Some improvements * Fix template variables * Add permission docs * improve doc * Fix fixture * Fix bug * Fix some bug * fix * gofumpt * Integration test for migration (go-gitea#18124) integrations: basic test for Gitea {dump,restore}-repo This is a first step for integration testing of DumpRepository and RestoreRepository. It: runs a Gitea server, dumps a repo via DumpRepository to the filesystem, restores the repo via RestoreRepository from the filesystem, dumps the restored repository to the filesystem, compares the first and second dump and expects them to be identical The verification is trivial and the goal is to add more tests for each topic of the dump. Signed-off-by: Loïc Dachary <loic@dachary.org> * Team permission allow different unit has different permission * Finish the interface and the logic * Fix lint * Fix translation * align center for table cell content * Fix fixture * merge * Fix test * Add deprecated * Improve code * Add tooltip * Fix swagger * Fix newline * Fix tests * Fix tests * Fix test * Fix test * Max permission of external wiki and issues should be read * Move team units with limited max level below units table * Update label and column names * Some improvements * Fix lint * Some improvements * Fix template variables * Add permission docs * improve doc * Fix fixture * Fix bug * Fix some bug * Fix bug Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Aravinth Manivannan <realaravinth@batsense.net>
integrations: basic test for Gitea {dump,restore}-repo
This is a first step for integration testing of DumpRepository and
RestoreRepository. It:
runs a Gitea server,
dumps a repo via DumpRepository to the filesystem,
restores the repo via RestoreRepository from the filesystem,
dumps the restored repository to the filesystem,
compares the first and second dump and expects them to be identical
The verification is trivial and the goal is to add more tests for each
topic of the dump.
Signed-off-by: Loïc Dachary loic@dachary.org
This PR is on behalf of Loïc Dachary from the forgefriends project. Please see the GitLab merge request for source.