summaryrefslogtreecommitdiffstats
path: root/tests/Core
Commit message (Collapse)AuthorAgeFilesLines
* Add OCSControllerTestsRoeland Jago Douma2016-11-161-0/+209
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #1109 from nextcloud/add-more-secrets-to-password-reset-linkMorris Jobke2016-11-031-143/+187
|\ | | | | Use mail for encrypting the password reset token as well
| * Fix testsRoeland Jago Douma2016-11-031-166/+174
| | | | | | | | | | | | * Tests fixed and controller coverage to 100% Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * [WIP] Use mail for encrypting the password reset token as wellLukas Reschke2016-11-031-6/+42
| |
* | Add cache 1 day cache to preview endpointRoeland Jago Douma2016-11-031-3/+6
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | More testsRoeland Jago Douma2016-11-031-0/+223
|/ | | | | | | | | * PreviewController test * PublicPreview test * Versions Preview test * Trash Preview test Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* bring back remember-meChristoph Wurst2016-11-021-4/+68
| | | | | | | | | | * try to reuse the old session token for remember me login * decrypt/encrypt token password and set the session id accordingly * create remember-me cookies only if checkbox is checked and 2fa solved * adjust db token cleanup to store remembered tokens longer * adjust unit tests Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Check the mimetype before reading the content and catch exceptionJoas Schilling2016-10-181-2/+46
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #1629 from nextcloud/cleanup-settings-applicationJoas Schilling2016-10-061-1/+2
|\ | | | | Cleanup settings Application class
| * Use our base class everywhereJoas Schilling2016-10-061-1/+2
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Properly catch password policy hint for personal page password changesMorris Jobke2016-10-061-0/+25
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unused endpointJoas Schilling2016-09-301-130/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use magic DI for core controllersJoas Schilling2016-09-301-5/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix testsRoeland Jago Douma2016-09-063-12/+12
| | | | | | * hasParameterOption has an additional default value which we must match in the return map * Fix deprecated getMock calls
* Fix getMock TwoFactorMiddlewareTestRoeland Jago Douma2016-09-061-8/+14
|
* Merge pull request #1158 from nextcloud/cache_avatarsLukas Reschke2016-09-051-1/+6
|\ | | | | Cache avatars
| * Fix testsRoeland Jago Douma2016-08-301-1/+6
| |
* | add 2fa backup codes appChristoph Wurst2016-09-051-0/+19
| | | | | | | | | | * add backup codes app unit tests * add integration tests for the backup codes app
* | Fix depreccated getMock in Core/Command testsRoeland Jago Douma2016-09-0122-90/+167
| |
* | check same URL in unit testsChristoph Wurst2016-08-301-11/+12
| |
* | redirect to default app after solving the 2FA challengeChristoph Wurst2016-08-301-6/+1
|/
* Merge pull request #1172 from nextcloud/core_cleanupMorris Jobke2016-08-302-10/+12
|\ | | | | Core controller cleanup
| * AvatarController use proper JSONResponseRoeland Jago Douma2016-08-291-3/+3
| | | | | | | | | | * Do not rely on DataResponse magic. We want JSON so use JSON * Fix tests
| * Minor cleanup in core ControllersRoeland Jago Douma2016-08-291-7/+9
| |
* | redirect to 2fa provider if there's only one active for the userChristoph Wurst2016-08-291-1/+75
|/
* Merge pull request #1058 from nextcloud/avatarController_cleanupLukas Reschke2016-08-271-62/+83
|\ | | | | Avatar controller cleanup
| * AvatarController cleanupRoeland Jago Douma2016-08-251-62/+83
| | | | | | | | | | | | | | * Use all DI components * Let the AppFramework resolve the AvatarController * Update unit tests * Unit tests no longer require DB
* | Merge pull request #1031 from nextcloud/2fa-infinite-redirect-loopJoas Schilling2016-08-261-0/+2
|\ \ | |/ |/| prevent infinite redirect loops if the there is no 2fa provider to pass
| * prevent infinite redirect loops if the there is no 2fa provider to passChristoph Wurst2016-08-241-0/+2
| | | | | | | | | | | | | | This fixes infinite loops that are caused whenever a user is about to solve a 2FA challenge, but the provider app is disabled at the same time. Since the session value usually indicates that the challenge needs to be solved before we grant access we have to remove that value instead in this special case.
* | Move the reset token to core appJoas Schilling2016-08-232-21/+21
| |
* | Remove "password reset token" after successful loginJoas Schilling2016-08-231-0/+20
|/
* Add tests for ChangePasswordControllerRoeland Jago Douma2016-08-171-0/+161
|
* We have to mock the is_uploaded_file in the OC\Core\Controller namespaceRoeland Jago Douma2016-08-151-8/+10
|
* Fix mock call in AvatarControllerTestRoeland Jago Douma2016-08-151-12/+12
|
* Use generated URLLukas Reschke2016-08-151-1/+1
|
* Fix template testLukas Reschke2016-08-151-1/+1
|
* Fix tests for LoginControllerLukas Reschke2016-08-151-5/+4
|
* Don't use create mockLukas Reschke2016-08-151-14/+14
| | | | Not compatible with this PHPunit version
* Use createMock instead of deprecated getMockLukas Reschke2016-08-111-12/+12
|
* Redirect users when already logged-in on login formLukas Reschke2016-08-111-0/+95
|
* Renamed test classes for file logging tests.Thomas Pulzer2016-07-221-1/+1
|
* Changed logtype to file instead of owncloud.Thomas Pulzer2016-07-222-6/+6
| | | | | | | | | | | | | | - Updated the config sample to point to log_type='file' - Renamed the Class for logfile logging to File in namespace 'OC\Log\'. Changed the occurrences of 'OC\Log\Owncloud' to 'OC\Log\File'. - Renamed the Class for log:file command to File in namespace 'OC\Core\Command\Log\File'. Changed registration of the command to use 'OC\Core\Command\Log\File'. - Changed default Syslog tag to Nextcloud - Retained backwards compatibility for configs with 'logtype' => 'owncloud' - Adjusted tests for the new file log. Closes #490.
* Mitigate race conditionLukas Reschke2016-07-201-6/+31
|
* Implement brute force protectionLukas Reschke2016-07-201-2/+57
| | | | | | | | | Class Throttler implements the bruteforce protection for security actions in Nextcloud. It is working by logging invalid login attempts to the database and slowing down all login attempts from the same subnet. The max delay is 30 seconds and the starting delay are 200 milliseconds. (after the first failed login)
* Use argument instead of valueJoas Schilling2016-07-141-20/+18
|
* FIx my emailJoas Schilling2016-07-131-1/+1
|
* Add tests for set/get/delete/listJoas Schilling2016-07-131-5/+234
|
* Make sure the exception is catchedJoas Schilling2016-07-131-5/+31
|
* Add tests for checkInput()Joas Schilling2016-07-131-0/+211
|
* Revert "occ web executor (#24957)"Morris Jobke2016-07-071-143/+0
| | | | This reverts commit 854352d9a064a1e469ede207493bce44fd41d96c.