summaryrefslogtreecommitdiffstats
path: root/apps/files_external/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add missing event dispatcher in test constructorVincent Petry2022-03-241-1/+1
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* force full setup after external storage config changeRobin Appelman2022-03-243-3/+11
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add all storage config rows in one go on loadRobin Appelman2022-03-171-5/+5
| | | | | | this prevents repeated reflows Signed-off-by: Robin Appelman <robin@icewind.nl>
* 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-2/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* adjust tests to new fs setupRobin Appelman2022-03-041-1/+10
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add test for samba kerberos sso in ciRobin Appelman2022-01-201-0/+33
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Replace license information to SPDX expressionLouis Chemineau2022-01-113-3/+3
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Add option to disallow creation of local storagesVincent Petry2021-12-153-3/+66
| | | | | | | Introduce a new config option to prevent web UI admins to create or edit external storages of type "local". Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* ciRobin Appelman2021-10-152-0/+49
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fixup tests for ftp limitationsRobin Appelman2021-10-071-0/+44
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* teardownRobin Appelman2021-10-071-0/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add new ftp backendRobin Appelman2021-10-071-37/+2
| | | | | | this uses the raw `ftp_` functions instead of the stream wrapper Signed-off-by: Robin Appelman <robin@icewind.nl>
* run ftp external storage tests against multiple ftp serversRobin Appelman2021-10-071-1/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Revert OC.linkToOCS() calls back to old behaviourJoas Schilling2021-08-311-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Bump @nextcloud/router from 1.2.0 to 2.0.0dependabot[bot]2021-07-231-2/+1
| | | | | | | | | | Bumps [@nextcloud/router](https://github.com/nextcloud/nextcloud-router) from 1.2.0 to 2.0.0. - [Release notes](https://github.com/nextcloud/nextcloud-router/releases) - [Changelog](https://github.com/nextcloud/nextcloud-router/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/nextcloud-router/compare/v1.2.0...v2.0.0) Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
* remove depricated methods from MountConfigRobin Appelman2021-06-161-6/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0434-41/+6
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Rename External storages to External storageszaimen2021-05-202-4/+4
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* better cleanup of filecache when deleting an external storageRobin Appelman2021-05-193-10/+36
| | | | | | this way it can delete the cache entries even with per-user credentials Signed-off-by: Robin Appelman <robin@icewind.nl>
* Bump js licensesJohn Molakvoæ (skjnldsv)2021-03-313-26/+63
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Lint fixJohn Molakvoæ (skjnldsv)2021-03-171-49/+49
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* adjust testsRobin Appelman2021-01-083-4/+24
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Expose session based authentication through mount point typeJulius Härtl2020-12-211-1/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-1617-19/+17
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Bump jquery from 2.2.4 to 3.1.0Christoph Wurst2020-11-131-35/+37
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Don't leave cursors open when tests failJoas Schilling2020-11-091-1/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-054-54/+54
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-249-0/+9
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-1210-36/+35
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Move OC_Mount_Config to proper classname and remove OC::$CLASSPATH usage in ↵Morris Jobke2020-07-105-49/+49
| | | | | | files_external Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headers for 19Christoph Wurst2020-04-296-1/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all constantsChristoph Wurst2020-04-101-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-103-6/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-1019-27/+6
| | | | | | | | | | | | | | | 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>
* Remove trailing and in between spacesChristoph Wurst2020-04-095-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-093-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-091-1/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-093-11/+11
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* allow setting tooltips for external storage config optionsRobin Appelman2020-04-031-4/+8
| | | | | | allows explaining non-obvious config options a bit more Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-3115-0/+16
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-271-1/+0
|\ | | | | Remove unused imports
| * Remove unused importsChristoph Wurst2020-03-251-1/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the short array syntax, everywhereChristoph Wurst2020-03-267-76/+76
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-2511-53/+53
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #19932 from nextcloud/remove-placeholder-checkRoeland Jago Douma2020-03-171-49/+0
|\ | | | | remove the requirement that everything that looks like a placeholder …
| * remove the requirement that everything that looks like a placeholder is ↵Robin Appelman2020-03-131-49/+0
| | | | | | | | | | | | | | | | substituted While maybe not common, `$` is a valid option in config fields Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix external storage controller testsRobin Appelman2020-03-131-0/+4
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update license headersChristoph Wurst2019-12-0536-37/+57
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix external storagestestsRoeland Jago Douma2019-11-272-12/+18
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>