aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
| * | Enable password reset for user with same email address when only one is activeDaniel Kesselberg2018-08-191-0/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | When two or more user share the same email address its not possible to reset password by email. Even when only one account is active. This pr reduce list of users returned by getByEmail by disabled users. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | | Merge pull request #10840 from webfoersterei/refactor/5530-urandom-checkJoas Schilling2018-09-131-1/+7
|\ \ \ | |_|/ |/| | Refactor secure randomness check
| * | Change check if secure randomness is possible.Timo Förster2018-08-241-1/+7
| | | | | | | | | | | | Signed-off-by: Timo Förster <tfoerster@webfoersterei.de>
* | | Add breadcrumb support to crash reportersChristoph Wurst2018-09-051-0/+15
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Change password expiration time from 12h to 7dMorris Jobke2018-08-311-1/+1
| | | | | | | | | | | | | | | | | | We use the same logic for creating accounts without a password and there the 12h is a bit short. Users don't expect that the signup link needs to be clicked within 12h - 7d should be a more expected behavior. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | Allow same section class for multiple section types (fix #10764)sualko2018-08-251-0/+41
|/ / | | | | | | Signed-off-by: Klaus Herberth <klaus@jsxc.org>
* | Merge pull request #10334 from denismosolov/group-addDenis Mosolov2018-08-242-0/+246
|\ \ | | | | | | Add options to create/remove groups via occ
| * | Add an options to create and remove groups via occDenis Mosolov2018-08-162-0/+246
| | | | | | | | | | | | Signed-off-by: Denis Mosolov <denismosolov@gmail.com>
* | | Merge pull request #10526 from steiny2k/HEICHEIFMorris Jobke2018-08-222-0/+48
|\ \ \ | | | | | | | | Support HEIC for previews
| * | | Address comments from @rullzer:Sebastian Steinmetz2018-08-171-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - implement isAvailable - run tests only if ImageMagick with HEIC support is available in the environment Signed-off-by: Sebastian Steinmetz <me@sebastiansteinmetz.ch>
| * | | Testcase for HEIC image (similar to the ImageTest)Sebastian Steinmetz2018-08-112-0/+42
| | | | | | | | | | | | Signed-off-by: Sebastian Steinmetz <me@sebastiansteinmetz.ch>
* | | | Adds license to files. Updates the branch.Michael Weimann2018-08-202-0/+100
|\ \ \ \ | | | | | | | | | | | | | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
| * \ \ \ Merge pull request #10628 from ↵Morris Jobke2018-08-201-0/+79
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | nextcloud/feature/10154/app-directory-permission-check Adds a permission check for app directories
| | * | | | Excludes not writable app roots from the directory permission checkMichael Weimann2018-08-091-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
| | * | | | Adds a test for the app directory permission check.Michael Weimann2018-08-091-0/+58
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* | | | | | Adds tests for the memory checksMichael Weimann2018-08-202-60/+44
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* | | | | | Adds tests for the setup memory limit checksMichael Weimann2018-08-202-0/+126
|/ / / / / | | | | | | | | | | | | | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* | | | | Merge pull request #10712 from ↵blizzz2018-08-201-2/+12
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | | | | | | nextcloud/fix/noid/check_if_provider_is_available_before_use Check if a preview provider is available before using it