aboutsummaryrefslogtreecommitdiff
path: root/internal/db/mocks.go
Commit message (Collapse)AuthorAge
* db: migrate access table to use GORM (#6371)ᴜɴᴋɴᴡᴏɴ2020-10-06
|
* auth: decouple types and functions from db (#6320)ᴜɴᴋɴᴡᴏɴ2020-09-20
|
* 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
* 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
* access_token: migrate to GORM and add tests (#6086)ᴜɴᴋɴᴡᴏɴ2020-04-11
| | | | | | | | | * access_token: migrate to GORM * Add tests * Fix tests * Fix test clock
* lfsutil: add `Storager` interface and local storage (#6083)ᴜɴᴋɴᴡᴏɴ2020-04-10
| | | | | | | | | | | * Add Storager interface * Add tests * Add back note * Add tests for basic protocol routes * Fix lint errors
* lfs: add tests to batch endpoint (#6073)ᴜɴᴋɴᴡᴏɴ2020-04-06
|
* lfs: add unit test for middleware (#6070)ᴜɴᴋɴᴡᴏɴ2020-04-06
* Add unit test for `authenticate` middleware * Add more cases * Add tests for verifyOID and internalServerError * Add tests for verifyHeader * Add tests for authroize