aboutsummaryrefslogtreecommitdiff
path: root/internal/db/perms_test.go
Commit message (Collapse)AuthorAge
* 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
|
* 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 `PermsStore` (#7033)Joe Chen2022-06-08
|
* ci: run database tests against Postgres, MySQL and SQLite (#6996)Joe Chen2022-06-01
|
* autofix: format code with gofumpt and gofmt (#6803)deepsource-autofix[bot]2022-03-06
| | | Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
* db: migrate access table to use GORM (#6371)ᴜɴᴋɴᴡᴏɴ2020-10-06
|
* 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
* login_source: migrate to GORM and add tests (#6090)ᴜɴᴋɴᴡᴏɴ2020-04-11
| | | | | | | | | | | | | | | | | | | | | * Use GORM in all write paths * Migrate to GORM * Fix lint errors * Use GORM to init table * dbutil: make writer detect error * Add more tests * Rename to clearTables * db: finish adding tests * osutil: add tests * Fix load source files path
* db: add tests for permissions (#6088)ᴜɴᴋɴᴡᴏɴ2020-04-11
* Add flag to print SQLs * Add tests for perms * Make results stable * codecov: only show diff * Once again, stable find results