summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix testsRoeland Jago Douma2017-09-251-1/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix commentMorris Jobke2017-09-211-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update to new test caseRoeland Jago Douma2017-08-161-7/+17
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Cleanup unused methodsMorris Jobke2017-08-152-3/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #6123 from nextcloud/cleanup-shareItemMorris Jobke2017-08-154-8/+8
|\ | | | | Cleanup usage of shareItem in internal code base
| * Cleanup usage of shareItem in internal code baseMorris Jobke2017-08-154-8/+8
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Use proper methods for registerBackendMorris Jobke2017-08-151-1/+1
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Cleanup unused methodsMorris Jobke2017-08-151-63/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add unit testsRoeland Jago Douma2017-08-102-0/+414
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix files_sharing CacheTestsRoeland Jago Douma2017-08-091-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some app fixes of phpstorm inspectionsRoeland Jago Douma2017-07-249-21/+17
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* update sharing test to new master key defaultBjoern Schiessle2017-07-061-0/+2
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Improve wording of various error messagesJan-Christoph Borchardt2017-06-211-1/+1
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* Add unit testJoas Schilling2017-06-141-0/+15
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Move the file sharing app to migrationJoas Schilling2017-05-122-188/+124
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix share indicator handlingVincent Petry2017-04-261-0/+78
| | | | | Properly update the fileInfoModel with the updated share types, which also updates the file list row indicator properly
* Merge pull request #4406 from nextcloud/fix-unit-test-problemsRoeland Jago Douma2017-04-211-3/+4
|\ | | | | Fix unit test problems
| * Don't use deprecated getMock() anymoreJoas Schilling2017-04-201-3/+4
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #4412 from individual-it/masterMorris Jobke2017-04-201-1/+0
|\ \ | |/ |/| deleted forgotten code in test
| * deleted forgotten code in testArtur Neumann2017-04-201-1/+0
| | | | | | | | how embarrassing, left code from before I've done the loop around the test Signed-off-by: Artur Neumann <info@individual-it.net>
* | Merge pull request #4212 from individual-it/masterJoas Schilling2017-04-201-0/+99
|\| | | | | validate file name before uploading in upload only folder
| * remove accidently left over *f*itArtur Neumann2017-04-181-1/+1
| | | | | | Signed-off-by: Artur Neumann <info@individual-it.net>
| * JS tests for upload only functionArtur Neumann2017-04-181-0/+99
| | | | | | Signed-off-by: Artur Neumann <info@individual-it.net>
* | Adjust existing bruteforce protection codeLukas Reschke2017-04-141-0/+1
| | | | | | | | | | | | | | - Moves code to annotation - Adds the `throttle()` call on the responses on existing annotations Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Merge pull request #4337 from nextcloud/fix-adblock-share-iconMorris Jobke2017-04-132-22/+22
|\ \ | | | | | | Fix AdBlock blocking share icon, ref #866
| * | Fix AdBlock blocking share icon, ref #866Jan-Christoph Borchardt2017-04-122-22/+22
| | | | | | | | | | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* | | Merge pull request #3614 from nextcloud/discover-federatedsharing-endpointsBjörn Schießle2017-04-121-9/+6
|\ \ \ | |/ / |/| | Discover federatedsharing endpoints
| * | Do proper DIRoeland Jago Douma2017-04-111-1/+1
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * | remove discovery manager in favour of the OCSDiscoveryServiceBjoern Schiessle2017-04-111-9/+6
| | | | | | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | | [files_sharing] Remove unneeded update stepsMorris Jobke2017-04-121-252/+0
| | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | share api expanded by tags (#26583)Michael Jobst2017-04-111-15/+45
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * share api expanded by tags * Modified files_sharing JS Unit tests * modified tests. renamed request parameter. refactoring * Update Share20OCS.php Added missing function description * Update Helper.php Added missing function description * Update Helper.php implicit boolean conversion to !empty() * Update Share20OCSTest.php Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #4256 from nextcloud/themingLukas Reschke2017-04-111-1/+1
|\ \ | | | | | | Move OC_Defaults to OCP\Defaults
| * | Move OC_Defaults to OCP\DefaultsMorris Jobke2017-04-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* | | move capabilities to share by mail appBjoern Schiessle2017-04-101-3/+1
|/ / | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | update unit testsBjoern Schiessle2017-04-072-32/+2
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | update capabilitiesBjoern Schiessle2017-04-071-4/+7
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | add new password column to the share table in order to set passwords for ↵Bjoern Schiessle2017-04-031-10/+70
|/ | | | | | share by mails Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Merge pull request #4004 from nextcloud/backport-27172Roeland Jago Douma2017-03-281-0/+27
|\ | | | | Remove SharedCache::getNumericStorageId to let CacheWrapper do it
| * fix shared storage numeric idRobin Appelman2017-03-271-0/+3
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * Remove SharedCache::getNumericStorageId to let CacheWrapper do itVincent Petry2017-03-231-0/+24
| | | | | | | | | | | | The CacheWrapper will properly forward the call to the wrapped cache. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #3953 from nextcloud/downstream-27027Morris Jobke2017-03-231-0/+38
|\ \ | |/ |/| Ignore NoUserException for shares from ghosts
| * set cache to failedcache when shared storage init failsRobin Appelman2017-03-231-2/+2
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * Ignore NoUserException for shares from ghostsVincent Petry2017-03-201-0/+38
| | | | | | | | | | | | Add unit tests for FailedStorage init from SharedStorage Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #3955 from nextcloud/downstream-27113Roeland Jago Douma2017-03-211-1/+2
|\ \ | | | | | | Can we get some faster phpunit execution?
| * | [CI] Can we get some faster phpunit execution? (#27113)Thomas Müller2017-03-201-1/+2
| |/ | | | | | | | | | | | | | | * Don't backup globals and static attributes * Unset global variable to remove impact on followup tests Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #3884 from nextcloud/downstream-26956Joas Schilling2017-03-202-2/+27
|\ \ | | | | | | Skip null groups in group manager
| * | Skip null groups in group manager (#26871) (#26956)Vincent Petry2017-03-172-2/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* | | Fix public link download buttonVincent Petry2017-03-201-0/+4
| |/ |/| | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | shares-circlesMaxence Lange2017-03-173-7/+41
| | | | | | Signed-off-by: Maxence Lange <maxence@nextcloud.com>
* | Add CleanupRemoteStorages commandJörn Friedrich Dreyer2017-03-171-0/+193
|/ | | | | | | | | | | | | | | | | | | | cleanup files, address review Fix CleanupRemoteStoragesTest tests Fix test expectation. Added files count to check filecache deletion. Sort by numeric id for deterministic test results Removed precise order test and added storage check Remove inaccurate removal message check which has a different order on Oracle. Added more checks to confirm that existing storages still exist. Signed-off-by: Morris Jobke <hey@morrisjobke.de>