gitea/services
Earl Warren 7bde2bf809
add unit test for user renaming ()
- The user renaming function has zero test coverage.
- This patch brings that up to speed to test for various scenarios and
ensure that in a normal workflow the correct things has changed to their
respective new value. Most scenarios are to ensure certain things DO NOT
happen.

(cherry picked from commit 5b9d34ed115c9ef24012b8027959ea0afdcb4e2d)

Refs: https://codeberg.org/forgejo/forgejo/pulls/1156

Co-authored-by: Gusted <postmaster@gusted.xyz>
..
actions Fix pull request check list is limited ()
agit Add context parameter to some database functions ()
asymkey Add context cache as a request level cache ()
attachment Preserve file size when creating attachments ()
auth Bump github.com/golang-jwt/jwt to v5 ()
automerge Improve queue and logger context ()
context Replace `interface{}` with `any` ()
convert Fix API leaking Usermail if not logged in ()
cron Replace gogs/cron with go-co-op/gocron ()
externalaccount Replace `interface{}` with `any` ()
forms Allow Organisations to have a E-Mail ()
gitdiff Less naked returns ()
issue Add context parameter to some database functions ()
lfs Bump github.com/golang-jwt/jwt to v5 ()
mailer Replace `interface{}` with `any` ()
markup Decouple the different contexts from each other ()
migrations Add context parameter to some database functions ()
mirror Sync branches when mirroring ()
org Refactor rename user and rename organization ()
packages Fix version in rpm repodata/primary.xml.gz ()
pull Fix pull request check list is limited ()
release Less naked returns ()
repository Show branches and tags that contain a commit ()
task Update tool dependencies, lock govulncheck and actionlint ()
user add unit test for user renaming ()
webhook Warn instead of reporting an error when a webhook cannot be found ()
wiki add some Wiki unit tests ()