summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #3884 from nextcloud/downstream-26956Joas Schilling2017-03-203-88/+232
|\ | | | | Skip null groups in group manager
| * Fix 5.6 duplicate class importJoas Schilling2017-03-171-3/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Clean up the testJoas Schilling2017-03-171-81/+52
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Use DIJoas Schilling2017-03-171-27/+31
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Skip null groups in group manager (#26871) (#26956)Vincent Petry2017-03-173-0/+171
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Skip null groups in group manager (#26871) * Skip null groups in group manager * Also skip null groups in group manager's search function * Add more group null checks in sharing code * Add unit tests for null group safety in group manager * Add unit tests for sharing code null group checks * Added tests for null groups handling in sharing code * Ignore moveShare optional repair in mount provider In some cases, data is inconsistent in the oc_share table due to legacy data. The mount provider might attempt to make it consistent but if the target group does not exist any more it cannot work. In such case we simply ignore the exception as it is not critical. Keeping the exception would break user accounts as they would be unable to use their filesystem. * Adjust null group handing + tests * Fix new group manager tests Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #3924 from nextcloud/preview_fixesLukas Reschke2017-03-201-1/+5
|\ \ | | | | | | Do not generate the max preview twice
| * | Fix testsRoeland Jago Douma2017-03-191-1/+5
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Merge pull request #3949 from nextcloud/downstream-27307Morris Jobke2017-03-201-4/+21
|\ \ \ | | | | | | | | Check if app exists before enabling
| * | | Improve the test caseMorris Jobke2017-03-201-4/+7
| | | | | | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * | | checking if app exists in the FileStream nownoveens2017-03-201-4/+18
| | | | | | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | | test setTagGroups with empty groupidsJörn Friedrich Dreyer2017-03-191-0/+9
|/ / / | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | Use SystemConfig instead of AllConfig for DB stuffMorris Jobke2017-03-192-10/+10
| | | | | | | | | | | | | | | | | | * preparation for followup PRs to clean up the DB bootstrapping Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | Merge pull request #3927 from nextcloud/minor-fixesMorris Jobke2017-03-192-5/+20
|\ \ \ | | | | | | | | Namespace and array syntax fixes
| * | | Namespace and array syntax fixesMorris Jobke2017-03-192-5/+20
| | | | | | | | | | | | | | | | | | | | | | | | * minor fixes in preparation of a bigger DB and config PR Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | | Merge pull request #3906 from nextcloud/shares-circles-2Roeland Jago Douma2017-03-191-1/+1
|\ \ \ \ | |_|/ / |/| | | Support Circles
| * | | shares-circlesMaxence Lange2017-03-171-1/+1
| |/ / | | | | | | Signed-off-by: Maxence Lange <maxence@nextcloud.com>
* | | Merge pull request #3898 from nextcloud/issue-3627-always-suggest-cli-urlLukas Reschke2017-03-182-3/+13
|\ \ \ | |/ / |/| | Always suggest the overwrite.cli.url
| * | Always suggest the overwrite.cli.urlJoas Schilling2017-03-172-3/+13
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Merge pull request #3892 from nextcloud/downstream-27101Joas Schilling2017-03-171-253/+288
|\ \ \ | |/ / |/| | Redirect unlink to rmdir
| * | Cleanup testJoas Schilling2017-03-171-254/+266
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | Fix unit testJoas Schilling2017-03-171-2/+1
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | Redirect unlink to rmdir (#27101)Vincent Petry2017-03-161-0/+24
| |/ | | | | | | | | | | | | Many API callers will call unlink even for directories and it can mess up with some wrappers like the encryption wrapper Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #3878 from nextcloud/downstream-26303Joas Schilling2017-03-173-7/+5
|\ \ | | | | | | Fixed failing test which was ignoring a required (not null) column
| * | Fixed failing test which was ignoring a required (not null) column (#26303)Philipp Schaffrath2017-03-173-7/+5
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fixed failing test which was ignoring a required (not null) column * restored test to original, catching DriverException which also catches ConstraintViolationException * catch ConstraintViolationException again * removed unnecessary field from this test * clobfield should be nullable * clobfield now is nullable * removed autoincrement since whenever this strategy is enabled, oracle would not throw constraint violation exceptions (needed for setValues), which mysql still does * this field does not auto increment anymore * mark integerfield as primary, since it is not getting marked as such through auto increment anymore, integerfield default always has been 0 instead of null Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Adjust tests to include base-uriLukas Reschke2017-03-162-2/+2
| | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Add base-uri to CSP policyLukas Reschke2017-03-164-110/+110
|/ | | | | | As per https://twitter.com/we1x/status/842032709543333890 a nice security hardening Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Fix unit tests of masterRoeland Jago Douma2017-03-161-0/+1
| | | | | | Follow up to #3802 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #3772 from nextcloud/favorite-searchMorris Jobke2017-03-131-6/+64
|\ | | | | Allow searching for favorites
| * Allow searching for favoritesRobin Appelman2017-03-081-6/+64
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #3787 from nextcloud/ocs-cookieLukas Reschke2017-03-101-0/+25
|\ \ | | | | | | dont require strict same site cookies for ocs requests
| * | add test for skipping cookie checks for ocsRobin Appelman2017-03-101-0/+25
| |/ | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Remove legacy class OC_Group and OC_UserMorris Jobke2017-03-091-208/+0
| | | | | | | | | | | | * basically a straight replacement of the wrapped code at the calling code parts Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #3611 from nextcloud/announce-trsuted-server-endpointsBjörn Schießle2017-03-091-2/+64
|\ \ | |/ |/| Announce trusted server endpoints
| * add and adjust unit testsBjoern Schiessle2017-03-091-2/+64
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | Merge pull request #3360 from nextcloud/dav-searchRobin Appelman2017-03-082-15/+263
|\ \ | |/ |/| Implement webdav SEARCH
| * add tests for filesearchbackendRobin Appelman2017-03-011-0/+3
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * add tests for searchQueryRobin Appelman2017-03-011-15/+59
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * Implement webdav SEARCHRobin Appelman2017-03-011-0/+173
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * add icewind/searchdavRobin Appelman2017-02-281-0/+28
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Make the test usefulJoas Schilling2017-03-031-0/+2
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Execute UpdateLanguageCode only onceMorris Jobke2017-03-021-1/+25
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Fix table name and add a test for more than 1 entriesJoas Schilling2017-03-021-20/+23
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Change language code for languages with only one translationMorris Jobke2017-03-011-0/+147
| | | | | | | | | | | | | | | | | | | | | | | | * then the language is not that specific and get also matched for fi * fallback from fi_FI to fi is supported - the other way around not * contains repair script * contains tests for repair script * fixes #869 Order results to make postgres happy Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | DefaultTokenProviderTest mocked/asserted the wrong methodChristoph Wurst2017-02-281-2/+2
|/ | | | | | | It's 'getRemember' instead of 'getRememberMe', hence some warnings were generated by phpunit. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #3489 from nextcloud/give-hint-about-opcacheMorris Jobke2017-02-241-1/+11
|\ | | | | Show info in admin settings about PHP opcache if disabled
| * Show info in admin settings about PHP opcache if disabledMorris Jobke2017-02-221-1/+11
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #3287 from nextcloud/readd_appstoreenabled_switchJoas Schilling2017-02-243-4/+176
|\ \ | | | | | | Add back appstoreenabled config switch
| * | Fix unit tests and improve appstore logicMorris Jobke2017-02-243-4/+176
| | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | Merge pull request #3605 from nextcloud/single-userJoas Schilling2017-02-243-144/+12
|\ \ \ | |/ / |/| | Clean up single user mode
| * | 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>