aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Make it possible to enforce mandatory 2FA for groupsChristoph Wurst2018-10-155-56/+277
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Disallow unsafe-eval by defaultRoeland Jago Douma2018-10-145-60/+69
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make activity events strictJoas Schilling2018-10-121-0/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #11675 from nextcloud/feature/enforce-2fa-admin-settingsRoeland Jago Douma2018-10-101-0/+82
|\ | | | | Add admin interface to enforce 2FA
| * Add admin interface to enforce 2FAChristoph Wurst2018-10-101-0/+82
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Move normalizePath to regexes instead of loopingRoeland Jago Douma2018-10-101-61/+68
|/ | | | | | | | | | | | | This is IMO a bit more readable and it seems to make the code faster. Tested it on the company instance where there are over 3k calls to this function. It shaves off around 10ms. The advantage here is that the pattern gets optimized by php itsel and cached. Also looking for all patterns at the same time and especially no longer looping for /./ patterns should save time. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add function to generate urls for OCS routesRoeland Jago Douma2018-10-091-0/+18
| | | | | | | | | | fixes #11617 The OCS routes are only absolute for now as they are often exposed to the outside anyway and are on a different endpoint than index.php in anyway. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove HHVM checkChristoph Wurst2018-10-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Deprecate unused, private OC_Helper::linkToPublicMorris Jobke2018-10-081-38/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #10839 from nextcloud/bugfix/10212/use_class_implementationMorris Jobke2018-10-082-16/+74
|\ | | | | adjust Calendar resource / room interfaces to use class implementation
| * RoomManager/ResourceManager: Inject IServerContainer instead of using OC ServerGeorg Ehrke2018-10-082-38/+60
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
| * adjust Calendar resource / room interfaces to use class implementationGeorg Ehrke2018-10-082-14/+50
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* | Merge pull request #11671 from nextcloud/refactor/rename-admin-security-sectionMorris Jobke2018-10-081-6/+6
|\ \ | | | | | | Rename admin security section
| * | Fix reference to template in testsChristoph Wurst2018-10-081-2/+2
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
| * | Rename admin security sectionChristoph Wurst2018-10-081-4/+4
| |/ | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #10898 from ↵Morris Jobke2018-10-0810-10/+153
|\ \ | |/ |/| | | | | nextcloud/feature/10684/default-logo-color-theme-colors Switches the default logo color depending on the primary color
| * Refactors the scss svg functionsMichael Weimann2018-10-025-0/+143
| | | | | | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
| * Moves the logo files to logoMichael Weimann2018-10-025-10/+10
| | | | | | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* | Remove deprecated publishActivity functionRoeland Jago Douma2018-10-051-52/+0
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Move files_versions to compiled handlebars templatesRoeland Jago Douma2018-10-041-0/+1
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Move Comments to compiled handlebarsRoeland Jago Douma2018-10-041-0/+1
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Add an endppoint for clients to request an app passwordRoeland Jago Douma2018-10-031-0/+179
| | | | | | | | | | | | | | | | Now that we allow enforcing 2 factor auth it make sense if we also allow and endpoint where the clients can in the background fetch an apppassword if they were configured before the login flow was present. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #11446 from nextcloud/bugfix/10678/pretty-urls-dont-workMorris Jobke2018-10-021-2/+12
|\ \ | | | | | | Allow overwrite.cli.url without trailing slash
| * | Add more test casesDaniel Kesselberg2018-09-301-1/+4
| | | | | | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
| * | Allow url without / for overwrite.cli.urlDaniel Kesselberg2018-09-281-2/+9
| | | | | | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | | Merge pull request #11390 from nextcloud/feature/11043/apptoken_v3Morris Jobke2018-10-025-10/+216
|\ \ \ | | | | | | | | Apptoken v3: imrpove token handling on external password change
| * | | Add testsRoeland Jago Douma2018-10-025-6/+214
| | | | | | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * | | Mark token as invalid if the password doesn't matchRoeland Jago Douma2018-10-021-4/+2
| | |/ | |/| | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* / | Fix testsMorris Jobke2018-10-021-6/+6
|/ / | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #11462 from ↵Morris Jobke2018-10-011-1/+27
|\ \ | | | | | | | | | | | | nextcloud/feature/11380/2fa_backup_code_generation Add notification to generate 2FA backup codes
| * | Generate backups code notification if not enable but 2fa isRoeland Jago Douma2018-10-011-1/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Generate a notification to generate backup codes if you enable an other 2FA provider but backup codes are not yet generated. * Add event listner * Insert background job * Background job tests and emits notification every 2 weeks * If the backup codes are generated the next run will remove the job Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Merge pull request #11501 from nextcloud/coverage_no_composerMorris Jobke2018-10-011-0/+1
|\ \ \ | |/ / |/| | Do not cover composer folders for code coverage
| * | Do not cover composer folders for code coverageRoeland Jago Douma2018-10-011-0/+1
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Change wording of 'Copy URL' to more understandable 'Copy link'Jan-Christoph Borchardt2018-10-011-2/+2
|/ / | | | | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* / Add mandatory 2FA service/classChristoph Wurst2018-09-303-0/+224
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix class selector for acceptance testsJohn Molakvoæ (skjnldsv)2018-09-281-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Remove unused constructor argumentChristoph Wurst2018-09-271-4/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Reduce settings manager complexity by loading sections via DIChristoph Wurst2018-09-271-49/+32
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Also test enabling of the Antivirus App for filesRoeland Jago Douma2018-09-261-5/+5
| | | | | | | Since there is no calendar release for 15 yet we should use an app that we can quickly release for 15 as well. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #11150 from nextcloud/feature/noid/unit-test-find-webrootblizzz2018-09-261-9/+43
|\ | | | | Extract logic for webroot into method and add test
| * Change visibility to privateDaniel Kesselberg2018-09-131-1/+1
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
| * Restore previous state for OC::$CLIDaniel Kesselberg2018-09-111-0/+3
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
| * Change return false to throw newDaniel Kesselberg2018-09-101-5/+10
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
| * Extract logic for webroot into method and add testDaniel Kesselberg2018-09-101-9/+35
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Merge pull request #11240 from ↵Morris Jobke2018-09-251-0/+1
|\ \ | | | | | | | | | | | | nextcloud/feature/noid/consider-openssl-settings-from-config.php Consider openssl settings from config.php
| * | Add openssl to mockDaniel Kesselberg2018-09-161-0/+1
| | | | | | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | | Only allow 2FA state changs if providers support the operationChristoph Wurst2018-09-258-128/+482
| | | | | | | | | | | | | | | | | | | | | | | | Ref https://github.com/nextcloud/server/issues/11019. Add `twofactorauth:cleanup` command Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Add simple unit test for findLanguageFromLocaleDaniel Kesselberg2018-09-231-0/+27
| | | | | | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | | Include empty directories in the default state of acceptance testsDaniel Calviño Sánchez2018-09-181-0/+2
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before each scenario of the acceptance tests is run the Nextcloud server is reset to a default state. To do this the full directory of the Nextcloud server is commited to a local Git repository and then reset to that commit when needed. Unfortunately, Git does not support including empty directories in a commit. Due to this, when the default state was restored, it could happen that the file cache listed an empty directory that did not exist because it was not properly restored (for example, "data/appdata_*/css/icons"), and that in turn could lead to an error when the directory was used. Currently the only way to force Git to include an empty directory is to add a dummy file to the directory (so it will no longer be empty, but that should not be a problem in the affected directories, even if the dummy file is not included in the file cache); although Git FAQ suggests using a ".gitignore" file a ".keep" file was used instead, as it conveys better its purpose. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Merge pull request #10743 from ↵blizzz2018-09-131-0/+84
|\ \ | | | | | | | | | | | | danielkesselberg/bugfix/noid/allow-password-reset-for-duplicate-email Enable password reset for user with same email address when only one is active