1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-05 07:24:25 +00:00
gitea/models/auth
wxiaoguang 0ed160ffea
Refactor tests (#33021)
1. fix incorrect tests, for example: BeanExists doesn't do assert and
shouldn't be used
2. remove unnecessary test functions
3. introduce DumpQueryResult to help to see the database rows during
test (at least I need it)

```
====== DumpQueryResult: SELECT * FROM action_runner_token ======
- # row[0]
  id: 1
  token: xeiWBL5kuTYxGPynHCqQdoeYmJAeG3IzGXCYTrDX
  owner_id: 0
...
```
2024-12-29 01:05:56 +00:00
..
access_token_scope_test.go
access_token_scope.go Fix nuget/conan/container packages upload bugs (#31967) 2024-09-05 07:05:42 +00:00
access_token_test.go
access_token.go
auth_token.go
main_test.go
oauth2_list.go
oauth2_test.go Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
oauth2.go add skip secondary authorization option for public oauth2 clients (#31454) 2024-07-19 14:28:30 -04:00
session.go
source_test.go Refactor db package and remove unnecessary DumpTables (#32930) 2024-12-20 16:11:38 +00:00
source.go allow synchronizing user status from OAuth2 login providers (#31572) 2024-07-16 20:33:16 +02:00
twofactor.go Use crypto/sha256 (#29386) 2024-02-25 13:32:13 +00:00
webauthn_test.go Refactor tests (#33021) 2024-12-29 01:05:56 +00:00
webauthn.go Fix: passkey login not working anymore (#32623) 2024-11-26 16:04:17 +00:00