aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Files
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Remove workarounds specific to 7.4Côme Chilliet2023-01-201-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Also update the unencrypted size of files when creating them with empty contentJulius Härtl2022-12-071-9/+11
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* test disabling write checkRobin Appelman2022-10-262-0/+13
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix testsJohn Molakvoæ2022-10-141-0/+19
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* add test for trying to fopen a file which no longer exists on diskRobin Appelman2022-09-291-0/+19
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix using FSEEK_END with SeekableHttpStream to get file sizeRobin Appelman2022-09-153-0/+33
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #33788 from nextcloud/improve-recentCarl Schwan2022-09-081-4/+4
|\ | | | | Improve getting recent files performance
| * Filter out old files when trying to get recent filesCarl Schwan2022-09-051-4/+4
| | | | | | | | | | | | | | Only do so when asking for less than 100 files and having an offset equal to 0. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Merge pull request #33600 from nextcloud/lazy-quotablizzz2022-09-071-84/+0
|\ \ | |/ |/| get quota for user only when needed
| * get quota for user only when neededRobin Appelman2022-09-011-84/+0
| | | | | | | | | | | | always apply the wrapper but have the wrapper get the quota lazily only when an operation where quota is applied is performed Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Only pass parent if paths matchJulius Härtl2022-08-241-3/+33
| | | | | | | | | | | | | | As the user folder might be initialized by the root from two levels down the hierarchy, passing this as a parent only works if the path matches Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Avoid extra query for the parent node if we can pass it alongJulius Härtl2022-08-241-2/+2
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #32943 from ↵Vincent Petry2022-08-171-1/+1
|\ | | | | | | | | nextcloud/unencrypted-size-revert-interface-changes Revert interface changes from "store unencrypted size in the unencrypted_size column"
| * store unencrypted size in the unencrypted_size columnRobin Appelman2022-08-162-4/+5
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * Revert "store unencrypted size in the unencrypted_size column"Robin Appelman2022-08-161-4/+3
| | | | | | | | | | | | This reverts commit 8238582e59b7b6ec03318bcf81bf47cce54af320. Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #33540 from nextcloud/mount-provider-migrationVincent Petry2022-08-171-0/+25
|\ \ | | | | | | fix updating cached mounts that didn't have their mount provider set previously
| * | add tests for cached mount provider migrationRobin Appelman2022-08-161-0/+25
| |/ | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* / cleanup scannertest a bitRobin Appelman2022-08-161-42/+36
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Move CappedMemoryCache to OCPCarl Schwan2022-07-143-3/+3
| | | | | | | | This is an helpful helper that should be used in more place than just server and this is already the case with groupfodlers, deck, user_oidc and more using it, so let's make it public Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Remove some more at matchers in tests/libCôme Chilliet2022-06-202-44/+31
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* store unencrypted size in the unencrypted_size columnRobin Appelman2022-06-021-3/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #26813 from nextcloud/feature/files-search-tagsSimon L2022-05-181-1/+1
|\ | | | | Files: Extend search to also cover tags
| * Files: Extend search to also cover tagsMarcel Klehr2022-05-171-1/+1
| | | | | | | | | | | | fixes #326 Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* | Add stricter psalm type for CappedMemoryCacheCarl Schwan2022-05-121-1/+2
|/ | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix testJoas Schilling2022-04-201-3/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* allow reusing known folder info when getting directory contentsRobin Appelman2022-04-061-0/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* dont needlessly resolve path when getting internalPath/storage from NodeRobin Appelman2022-04-043-48/+32
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix codestyleCôme Chilliet2022-03-241-1/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Migrate from ILogger to LoggerInterface where needed in the testsCôme Chilliet2022-03-2410-33/+34
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* type fixesRobin Appelman2022-03-041-4/+0
| | | | 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-0412-58/+106
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* move root mount setup to mountprovidersRobin Appelman2022-02-241-0/+141
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* store mountprovider for each mount in the mounts tableRobin Appelman2022-02-231-0/+4
| | | | | | this enabled more fine grained filesystem setup Signed-off-by: Robin Appelman <robin@icewind.nl>