summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests/External
Commit message (Collapse)AuthorAgeFilesLines
* test: put parent items into cache in testsRobin Appelman2024-09-191-0/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* chore: Add SPDX headerAndy Scherzinger2024-06-063-71/+9
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* add more checks to ensure mounts aren't emptyRobin Appelman2023-09-121-3/+10
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* repair -1 folder sizes for object store background scanRobin Appelman2023-05-101-2/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* adjusts tests for CloudIdManagerRobin Appelman2022-08-312-5/+17
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Revert "Revert "Remove inefficient fed share scanner""Carl Schwan2022-08-031-12/+0
| | | | | | This reverts commit 6667007bf235b90a7dd105c881cf5802b2a3f83e. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Revert "Remove inefficient fed share scanner"Carl Schwan2022-06-101-0/+12
| | | | | | This reverts commit ce319143142e2ee998ef4794b04ad684c4ffa911. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Remove at() matcher in files_sharing testsCôme Chilliet2022-05-241-8/+14
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* simplify setup of circular SetupManager<->ManagerRobin Appelman2022-03-041-6/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* move logic to decide what to setup to setupmanagerRobin Appelman2022-03-041-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* adjust tests to new fs setupRobin Appelman2022-03-041-7/+15
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Remove inefficient fed share scannerVincent Petry2022-01-101-12/+0
| | | | | | | | | | Remove scanAll which relies on the "shareinfo" endpoint that returns the full cache tree. The latter can become big for big shares and result in timeouts. Furthermode, the full tree would be retrieved again for each and every detected change which can become expensive quickly. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* update testsRobin Appelman2021-10-191-1/+10
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix remote share deletion when deleting userVincent Petry2021-07-271-28/+147
| | | | | | | When deleting a user, we should only delete the direct remote user shares or the remote group based subshares. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Replace ILogger with LoggerInterface in remote share managerVincent Petry2021-07-271-3/+3
| | | | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com> Co-authored-by: Carl Schwan <carl@carlschwan.eu>
* Fix remote group share decline+accept code pathVincent Petry2021-07-271-0/+36
| | | | | | | | When declining a remote group share through the dialog that appears when notifications are off, the mount point is now correctly saved when re-accepting. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix external share manager with multiple user groupsVincent Petry2021-07-271-2/+10
| | | | | | Use query builder with proper matching for finding the group names. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix remote group share API interactionsVincent Petry2021-07-271-3/+163
| | | | | | | | | | Accepting and declining can now be done repeatedly on both the parent group share and sub-share with the same effects. Added unit tests to cover these cases, and also when the same operation is repeated. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Add logging to external shares managerVincent Petry2021-07-271-0/+2
| | | | | | | Instead of just returning false, also log the exception to make debugging database issues easier. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix received federated group sharesVincent Petry2021-07-271-83/+143
| | | | | | | | | | | | Fix pending shares endpoint to consider user-specific sub-entries for group shares whenever a share was accepted or declined. Added unit test for adding remote group shares. Fixed "removeUserShares" to not send a remote request as we never send remote requests for group shares. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Allow to get a local cloud id without going through the contacts managerJulius Härtl2021-07-142-2/+5
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-043-3/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-162-1/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix variable name for testDaniel Kesselberg2020-12-101-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Adjust defaultJulius Härtl2020-12-081-2/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* set the display name of federated sharees from addressbookArthur Schiwon2020-11-242-2/+22
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-122-8/+8
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Move federated_share_added into a typed eventMorris Jobke2020-07-231-1/+6
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update share type constant usageJoas Schilling2020-06-241-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-102-2/+0
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-6/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-251-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-053-3/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix more testsRoeland Jago Douma2019-11-271-6/+28
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-273-4/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some php-cs fixesRoeland Jago Douma2019-11-221-0/+1
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* fix unit testsBjoern Schiessle2018-07-111-0/+3
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* update unit testsBjoern Schiessle2018-07-111-0/+13
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* fix external manager testsBjoern Schiessle2018-07-021-10/+29
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Fix risky tests without assertionsJoas Schilling2018-01-251-3/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headersMorris Jobke2017-11-061-1/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocksMorris Jobke2017-10-241-2/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* 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>
* Add a single public api for resolving a cloud id to a user and remote and backRobin Appelman2017-02-082-3/+9
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* more robust test setupRobin Appelman2016-10-121-3/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>