aboutsummaryrefslogtreecommitdiff
path: root/internal/db/two_factors_test.go
Commit message (Collapse)AuthorAge
* db: pass context to tests by default (#7622)Joe Chen2023-12-17
| | | [skip ci]
* all: replace `interface{}` with `any` (#7330)Joe Chen2023-02-02
| | | Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
* refactor(db): migrate methods off `user.go` (#7219)Joe Chen2022-10-30
|
* test(db): add missing tests (#7208)Joe Chen2022-10-23
|
* refactor(db): migrate perms methods off `user.go` (#7207)Joe Chen2022-10-23
|
* db: refactor "action" table to use GORM (#7054)Joe Chen2022-06-25
| | | Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
* migrations: add tests and remove XORM (#7050)Joe Chen2022-06-12
|
* db: use `context` and go-mockgen for `TwoFactorsStore` (#7045)Joe Chen2022-06-11
|
* ci: run database tests against Postgres, MySQL and SQLite (#6996)Joe Chen2022-06-01
|
* db: migrate to GORM v2 (#6309)ᴜɴᴋɴᴡᴏɴ2020-09-06
|
* db: use GORM to backup and restore non-legacy tables (#6142)ᴜɴᴋɴᴡᴏɴ2020-05-04
|
* db: add tests for users (#6116)ᴜɴᴋɴᴡᴏɴ2020-04-18
| | | | | | | | | | | | | | | | | | | | | * Add new methods * Use Users.Create to replace previous hack * Reduce side effect * Do not clear tables when test failed * test_users_Authenticate * Rename constant * test_users_Create * test_users_GetByEmail * test_users_GetByID * test_users_GetByUsername
* db: add tests for two factors (#6099)ᴜɴᴋɴᴡᴏɴ2020-04-14
* Rename to TwoFactors.Create * Use GORM to execute queries * TwoFactor.GetByUserID * Add tests * Fix failing tests * Add MD5 tests * Add tests for RandomChars