summaryrefslogtreecommitdiffstats
path: root/tests/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #38143 from nextcloud/fix/generated-avatars-cacheSimon L2023-05-161-1/+1
|\ | | | | Fix generated avatars cache
| * Clear generated avatar cachesjld31032023-05-151-1/+1
| | | | | | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* | fix(middleware): Also abort the request when reaching max delay in ↵Joas Schilling2023-05-151-7/+7
|/ | | | | | afterController Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(JSResourceLocator): Handle missing translations silentlyFerdinand Thiessen2023-05-111-0/+22
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Merge pull request #37691 from nextcloud/object-store-background-scanJohn Molakvoæ2023-05-111-16/+26
|\
| * repair -1 folder sizes for object store background scanRobin Appelman2023-05-101-16/+26
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #37838 from nextcloud/event-logger-httpRobin Appelman2023-05-091-1/+11
|\ \ | |/ |/| log performance events for http requests
| * log performance events for http requestsRobin Appelman2023-04-281-1/+11
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix(dav): Abort requests with 429 instead of waitingJoas Schilling2023-05-031-5/+5
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #38024 from nextcloud/fix/fix-32bits-ciArthur Schiwon2023-05-031-6/+3
|\ \ | | | | | | Fix 32bits ci
| * | Put back file cleanups, and remove dead code in ↵Côme Chilliet2023-05-021-3/+2
| | | | | | | | | | | | | | | | | | tests/lib/Template/JSResourceLocatorTest.php Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | Remove the array_pop failing tests on 32bit CICôme Chilliet2023-05-021-3/+1
| |/ | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Merge pull request #33106 from nextcloud/feature/update-expire-dateArthur Schiwon2023-05-031-2/+28
|\ \ | | | | | | Update expire_date column of table comments
| * | Cover expire_date with unit testsVitor Mattos2023-04-261-2/+28
| |/ | | | | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
* | Fix tests, and fix Group::searchUsers to avoid duplicatesCôme Chilliet2023-05-022-6/+10
| | | | | | | | | | | | | | | | Also went back to searchUsers indexing the array by uid as it was the previous behavior and the IGroup phpdoc does not say anything about the keys. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Clear up return typesCôme Chilliet2023-04-272-3/+3
| | | | | | | | | | | | usersInGroup index by int for BC, searchInGroup index by uid (string). Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Optimize retrieving display name when searching for users in a groupCarl Schwan2023-04-273-63/+62
|/ | | | | | | | | This is recurrent scenario that we are searching for users and then for each users we fetch the displayName. This is inefficient, so instead try to do one query to fetch everything (e.g. Database backend) or use the already existing DisplayNameCache helper. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Merge pull request #37905 from ↵Joas Schilling2023-04-258-250/+801
|\ | | | | | | | | nextcloud/techdebt/noid/add-attributes-for-remaining-security-annotations feat(security): Add PHP \Attribute for remaining security annotations
| * feat(security): Add PHP \Attribute for remaining security annotationsJoas Schilling2023-04-258-250/+801
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #37835 from nextcloud/feat/background-allow-parallel-runsCôme Chilliet2023-04-254-9/+101
|\ \ | |/ |/| feat(BackgroundJobs): Allow preventing parallel runs for a job class
| * JobListTest: Fix JobList constructor callMarcel Klehr2023-04-241-1/+3
| | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
| * Update tests/lib/BackgroundJob/DummyJobList.phpMarcel Klehr2023-04-241-2/+2
| | | | | | | | Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Marcel Klehr <mklehr@gmx.net>
| * Run cs:FixMarcel Klehr2023-04-231-4/+4
| | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
| * Fix BackgroundJob testsMarcel Klehr2023-04-232-11/+20
| | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
| * JobListTest: clearJobsList before testHasReservedJobsMarcel Klehr2023-04-231-0/+1
| | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
| * fix(tests): Remove duplicated methodMarcel Klehr2023-04-231-21/+0
| | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
| * test(BackgroundJobs): Add tests for allowParallelRuns and hasReservedJobsMarcel Klehr2023-04-234-4/+105
| | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* | feat(ratelimit): Add Attributes support to rate limit middlewareJoas Schilling2023-04-241-103/+170
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge branch 'master' into enh/type-iconfig-getter-callsCôme Chilliet2023-04-208-151/+92
|\ | | | | Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
| * feat(app-framework): Add native argument types for middlewareChristoph Wurst2023-04-181-8/+8
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
| * Merge pull request #36617 from nextcloud/update/psr-containerSimon L2023-04-181-0/+4
| |\ | | | | | | chore: Update PSR container to 2.0.2
| | * fix: Adjust console formatter code to match with Symfony type hintsFerdinand Thiessen2023-04-171-0/+4
| | | | | | | | | | | | | | | | | | | | | Symfony has added type hints on the `OutputFormatterInterface`, so we must adjust our type hints to match with Symfony. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
| * | 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 test to new workflowGlandos2023-04-171-12/+7
| |/ | | | | | | | | | | | | getDirectoryListing should return all files getFile is not called anymore Signed-off-by: Glandos <bugs-github@antipoul.fr>
| * Add type hints for mappersjld31032023-04-071-6/+6
| | | | | | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* | Adapt tests to config value typingCôme Chilliet2023-04-0535-302/+330
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #36836 from nextcloud/fix/view-type-cleanupCôme Chilliet2023-04-051-2/+1
|\ | | | | Tidy up typing in OC\Files\View
| * 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>
* | Fix types for reading and writing config valuesjld31032023-04-052-14/+14
| | | | | | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* | fix(initial-state): Log an error when initial-state can not be JSON encodedJoas Schilling2023-04-041-5/+26
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #37146 from nextcloud/artonge/feat/migrate_metadata_to_valueLouis2023-04-041-8/+8
|\ \ | | | | | | Migrate metadata JSON column to new value TEXT column
| * | Migrate metadata as JSON to value as STRINGLouis Chemineau2023-04-031-8/+8
| | | | | | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | | Merge pull request #37542 from ↵Joas Schilling2023-04-031-0/+9
|\ \ \ | | | | | | | | | | | | | | | | nextcloud/bugfix/noid/allow-to-opt-out-of-ratelimit-for-testing feat(security): Allow to opt-out of ratelimit protection, e.g. for te…
| * | | feat(security): Allow to opt-out of ratelimit protection, e.g. for testing on CIJoas Schilling2023-04-031-0/+9
| | |/ | |/| | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* / | fix DBAL exception handling in setValuesArthur Schiwon2023-03-311-2/+21
|/ / | | | | | | | | | | | | | | | | This seems to be a left over after abstracting DBAL. Nowadays, IQueryBuilder::executeStatement() only throws a \OCP\DB\Exception, where previously original DBAL exceptions where thrown. These are now wrapped, the orignal classes are now mapped to a reason. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Add label for logo linkChristopher Ng2023-03-292-70/+53
| | | | | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* | Merge pull request #36057 from nextcloud/feat/esm-js-scriptsJulius Härtl2023-03-222-12/+93
|\ \
| * | feat(OC/Template): Add `type="module"` for ES6 scriptsFerdinand Thiessen2023-02-221-0/+29
| | | | | | | | | | | | Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>