summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
| * | | | Check if a preview provider is available before using itRoeland Jago Douma2018-08-171-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Else if a preview provider is registerd but not available (for example missing support in some external lib). It will do :boom:. This way the providers can at least do the sanity checks required. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | | | add deck and mail to the groupware bundle, remove talkBjoern Schiessle2018-08-171-1/+2
|/ / / / | | | | | | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | | | update unit testsBjoern Schiessle2018-08-151-1/+41
| | | | | | | | | | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | | | Adds an acceptance test for the users settings navigation without disabled usersMichael Weimann2018-08-141-0/+14
| | | | | | | | | | | | | | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* | | | Merge pull request #10621 from ↵blizzz2018-08-131-0/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | nextcloud/feature/noid/add-tos-to-enterprise-bundle Add the ToS app to the enterprise bundle
| * | | | Add the ToS app to the enterprise bundleJoas Schilling2018-08-091-0/+1
| |/ / / | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | / / Drop support for xcacheDaniel Kesselberg2018-08-121-22/+0
| |/ / |/| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | | Merge pull request #10543 from nextcloud/ignore-deactivated-usersRoeland Jago Douma2018-08-101-1/+5
|\ \ \ | | | | | | | | Do not show deactivated users in sharees and contacts
| * | | Ignore deactivated users in collaborators user search pluginThomas Citharel2018-08-061-1/+5
| | | | | | | | | | | | | | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | | | Remove unused importChristoph Wurst2018-08-101-1/+0
| | | | | | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | | Fix 2FA being enforced if only backup codes provider is activeChristoph Wurst2018-08-101-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | Fixes https://github.com/nextcloud/server/issues/10634. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | | Do not use file as template parameterRoeland Jago Douma2018-08-091-1/+1
| |/ / |/| | | | | | | | | | | | | | | | | | | | Using file will overwrite the $file parameter in the template base. Leading to trying to include a file that is the exception message. Which will of course fail. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Fix double-inserts of the same provider stateChristoph Wurst2018-08-091-2/+2
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Add integration/unit test for the double-insert of same valuesChristoph Wurst2018-08-091-0/+19
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Merge pull request #10588 from nextcloud/fix/single-2fa-provider-login-redirectRoeland Jago Douma2018-08-092-5/+24
|\ \ \ | | | | | | | | Fix login redirection if only one 2FA provider is active
| * | | Rename providerset method to get primary providersChristoph Wurst2018-08-081-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
| * | | Fix login redirection if only one 2FA provider is activeChristoph Wurst2018-08-082-5/+24
| | | | | | | | | | | | | | | | | | | | | | | | Fixes https://github.com/nextcloud/server/issues/10500. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>