aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Files
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | test: Additional tests for issue #35776Dariusz Olszewski2024-03-041-0/+146
| |/ / | | | | | | | | | Signed-off-by: Dariusz Olszewski <starypatyk@users.noreply.github.com>
| * | fix: Enforce forbidden filename characters on backendFerdinand Thiessen2024-02-281-3/+48
| | | | | | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
| * | add some comments for the distributive operation and add another testRobin Appelman2024-02-161-0/+27
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | add extra flatten step to improve "or eq" -> "in" optimizationRobin Appelman2024-02-151-3/+3
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | add a search query step to split IN statements that are to large for ociRobin Appelman2024-02-151-0/+44
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | optimize query pattern used by storage filterRobin Appelman2024-02-155-0/+341
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | only get the path for the users cached mount info when we use itRobin Appelman2024-02-091-3/+5
| | | | | | | | | | | | | | | | | | most of the time we shouldn't need it so we can save joining on the filecache Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | make storage directory test be a bit less strict about mtimesRobin Appelman2024-02-071-2/+3
| | | | | | | | | | | | | | | | | | sometimes the clock ticks over during the test Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | refactor(objectstorage): cleanup typesThomas Citharel2024-02-021-2/+2
| | | | | | | | | | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
| * | add test for updating etag with unchanged mtime in child folderRobin Appelman2024-01-311-0/+25
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | add test for updating etag with unchanged mtimeRobin Appelman2024-01-311-0/+19
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | fix(tests): Add messages to assertions to explain what failedJoas Schilling2024-01-261-8/+8
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | chore(tests): Migrate object storage unit tests from drone to GitHub ActionsFerdinand Thiessen2024-01-261-0/+4
| | | | | | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
| * | fix(tests): Fix deprecation errors in S3 testsFerdinand Thiessen2024-01-261-1/+2
| | | | | | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
| * | chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-238-24/+24
| | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
| * | fix(ObjectStore): Make copying behavior consistent with local storageFerdinand Thiessen2023-11-171-0/+38
| | | | | | | | | | | | | | | | | | Drop file permissions on copy like we do on local storage. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
| * | optimize UserMountCache::registerStorageRobin Appelman2023-11-161-14/+18
| | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
| * | optimize isShared and isMountedRobin Appelman2023-11-081-4/+14
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | Merge pull request #40499 from nextcloud/known-mtime-wrapperRobin Appelman2023-09-211-0/+70
| |\ \ | | | | | | | | add wrapper for external storage to ensure we don't get an mtime that is lower than we know it is
| | * | apply known mtime wrapper for external storagesRobin Appelman2023-09-191-1/+0
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| | * | add wrapper to ensure we don't get an mtime that is lower than we know it isRobin Appelman2023-09-191-0/+71
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | test: add test for cache mount providerDaniel Kesselberg2023-09-201-0/+108
| |/ / | | | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
| * | fix: Pass parent to NonExistingFile instancesJulius Härtl2023-09-131-2/+1
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * | Merge pull request #39863 from nextcloud/sharing-mask-wrapperRobin Appelman2023-09-041-2/+3
| |\ \ | | | | | | | | move share permission logic to storage wrapper
| | * | cleanup di for share permissions wrapperRobin Appelman2023-08-161-2/+3
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | Merge pull request #39707 from ↵Simon L2023-09-041-0/+11
| |\ \ \ | | | | | | | | | | | | | | | nextcloud/bugfix/39706/local-ext-storage-unavailable-mode
| | * | | Allow ext storage Local to go unavailableVincent Petry2023-08-291-0/+11
| | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Whenever an external storage of type Local points at a non-existing directory, process this as a StorageNotAvailable instead of returning 404. This makes desktop clients ignore the folder instead of deleting it when it becomes unavailable. The code change was limited to external storages to avoid issues during setup and with the default home storage. Signed-off-by: Vincent Petry <pvince81@yahoo.fr>
| * | | Fix sharing creation insert and getJohn Molakvoæ (skjnldsv)2023-09-021-2/+0
| | | | | | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
| * | | update testsRobin Appelman2023-08-311-46/+10
| |/ / | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | only determine quota_include_external_storage once for quota wrapperRobin Appelman2023-08-181-1/+2
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | tests: Add test for CacheEntry gettersFerdinand Thiessen2023-08-161-0/+25
| | | | | | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
| * | Fix setting static property in tests on PHP 8.3Côme Chilliet2023-08-141-2/+2
| |/ | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * fix!: Remove symfony EventDispatcherInterface from UserJoas Schilling2023-07-275-11/+5
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * fix: Move Node HookConnecter events to IEventDispatcherJoas Schilling2023-07-271-12/+6
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Clean-up some remaining readdir calls with undesirable false evaluation ↵Josh Richards2023-06-243-4/+4
|/ | | | | | potential Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
* chore: ugly type jugglingArthur Schiwon2023-06-211-3/+5
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* repair -1 folder sizes for object store background scanRobin Appelman2023-05-101-16/+26
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge branch 'master' into enh/type-iconfig-getter-callsCôme Chilliet2023-04-204-125/+67
|\ | | | | Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
| * tests: Adapt node related unit tests mocks to required root viewJulius Härtl2023-04-174-126/+66
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * fix: Use proper path when creating node instancesJulius Härtl2023-04-171-0/+2
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Adapt tests to config value typingCôme Chilliet2023-04-052-4/+4
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Remove unused method getLocalFolderCôme Chilliet2023-04-031-1/+0
| | | | | | It’s not used and not in any OCP interface/class. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Tidy up typing in OC\Files\ViewCôme Chilliet2023-04-031-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* more filesystem setup performance instrumentationRobin Appelman2023-02-101-1/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #36566 from nextcloud/mount-find-by-numeric-idJulius Härtl2023-02-081-0/+3
|\
| * fix testsRobin Appelman2023-02-071-0/+3
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Fix filesize return type error in ViewTestCôme Chilliet2023-02-071-4/+16
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix hookconnector testsLouis Chemineau2023-01-261-1/+2
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* composer run cs:fixCôme Chilliet2023-01-2013-28/+15
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix gzip mimetype mappingCôme Chilliet2023-01-201-2/+2
| | | | | | PHP now detects it as application/gzip and not application/x-gzip anymore Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>