summaryrefslogtreecommitdiffstats
path: root/tests/Core
Commit message (Collapse)AuthorAgeFilesLines
* Move OC_Defaults to OCP\DefaultsMorris Jobke2017-04-091-3/+3
| | | | | | | | | | | | | * currently there are two ways to access default values: OCP\Defaults or OC_Defaults (which is extended by OCA\Theming\ThemingDefaults) * our code used a mixture of both of them, which made it hard to work on theme values * this extended the public interface with the missing methods and uses them everywhere to only rely on the public interface Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #4123 from nextcloud/allow-password-reset-with-emailRoeland Jago Douma2017-04-051-10/+75
|\ | | | | Allow to reset the password with the email as an input
| * Allow to reset the password with the email as an inputJoas Schilling2017-03-281-10/+75
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix gzip files for SafariMorris Jobke2017-03-292-2/+2
| | | | | | | | | | | | | | * Safari support gzip only if the filename does not end on .gz - so this renames them to .gzip Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Fix controller testsRoeland Jago Douma2017-03-282-2/+134
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* TestsRoeland Jago Douma2017-03-241-0/+110
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Clean up single user modeMorris Jobke2017-02-223-144/+12
| | | | | | | | | | | | | | Single user mode basically disables WebDAV, OCS and cron execution. Since we heavily rely on WebDAV and OCS also in the web UI it's basically useless. An admin only sees a broken interface and can't even change any settings nor sees any files. Also sharing is not possible. As this is at least the case since Nextcloud 9 and we haven't received any reports for this it seems that this feature is not used at all so I removed it. The encryption commands now rely on the well tested maintenance mode. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* oc_token should be nc_tokenChristoph Wurst2017-02-021-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #2044 from nextcloud/login-credential-storeMorris Jobke2017-01-301-3/+0
|\ | | | | Login credential store
| * always allow remembered loginChristoph Wurst2017-01-111-3/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | unify endpoints form core and the the provisioning apiBjoern Schiessle2017-01-251-18/+0
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | Merge pull request #3023 from ↵Christoph Wurst2017-01-171-0/+6
|\ \ | | | | | | | | | | | | nextcloud/issue-2915-filter-out-sensitive-appconfigs Filter out sensitive appconfig values
| * | Fix testsJoas Schilling2017-01-121-0/+6
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Merge pull request #2918 from nextcloud/encryption-recovery-improvementsMorris Jobke2017-01-131-38/+0
|\ \ \ | |_|/ |/| | create new encryption keys on password reset and backup the old one
| * | create new encryption keys on password reset and backup the old oneBjoern Schiessle2017-01-101-38/+0
| |/ | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | fix coding style and increase code coverageChristoph Wurst2017-01-111-40/+111
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Fix testsCornelius Kölbel2017-01-111-2/+5
|/ | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Adds CssControllerTestsRoeland Jago Douma2017-01-061-0/+111
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #2892 from nextcloud/usercontroller_testsRoeland Jago Douma2016-12-301-0/+76
|\ | | | | Adds user controller tests
| * Adds user controller testsRoeland Jago Douma2016-12-301-0/+76
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | User command enable/disable testsRoeland Jago Douma2016-12-302-0/+188
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add Group Command testsRoeland Jago Douma2016-12-293-0/+365
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Set redirect_url on 2FA challenge pageChristoph Wurst2016-12-231-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #2563 from nextcloud/fix-password-resetMorris Jobke2016-12-221-0/+39
|\ | | | | fix password reset if encryption is enabled
| * fix password reset if encryption is enabledBjoern Schiessle2016-12-081-0/+39
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | Add tests for 2FA commandsRoeland Jago Douma2016-12-202-0/+198
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Save the timezone on login againJoas Schilling2016-12-081-1/+14
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix changing display names for subadminsLukas Reschke2016-11-211-7/+42
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* 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