aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* chore: Cleanup and prepare `\OC\Repair\RepairMimeTypes` tests for PHPUnit 10chore/prepare-oc_repair-unit10Ferdinand Thiessen2024-09-1912-223/+185
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-1952-213/+213
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor(Collaboration): Use non-deprecated methodsFerdinand Thiessen2024-09-191-6/+5
| | | | | | Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Merge pull request #48163 from nextcloud/feat/nfoJohn Molakvoæ2024-09-192-2/+3
|\ | | | | feat: add nfo file support
| * feat: add nfo file supportfeat/nfoJohn Molakvoæ (skjnldsv)2024-09-182-2/+3
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Merge pull request #48137 from nextcloud/enh/add-rich-object-formatterCôme Chilliet2024-09-183-17/+35
|\ \ | | | | | | feat: Add OCP interface to format richtext into string
| * | fix: Adapt notifications and activity tests to new DI dependencyenh/add-rich-object-formatterCôme Chilliet2024-09-173-17/+35
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | test: put parent items into cache in testsRobin Appelman2024-09-185-50/+83
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | test: fix incorrect ltrim usage in testRobin Appelman2024-09-181-2/+2
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | fix(settings): pronouns UsersControllerTestJohn Molakvoæ (skjnldsv)2024-09-181-0/+6
| |/ |/| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | fix(tests): Adapt tests to changes in RepairMimeTypesCôme Chilliet2024-09-171-3/+14
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | fix(tests): Fix most obvious errors in ObjectStore testsCôme Chilliet2024-09-173-56/+60
| | | | | | | | | | | | Some are still failing Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | fix(tests): Fix Folder testsCôme Chilliet2024-09-171-3/+22
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | fix(tests): Remove deprecated tests for ServerTestCôme Chilliet2024-09-171-113/+7
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Merge pull request #47986 from cfiehe/fix_move_on_same_bucketStephan Orbaugh2024-09-173-0/+178
|\ \ | | | | | | perf(ObjectStoreStorage): Improve (slow) move on same object bucket
| * | perf(ObjectStoreStorage): Improve (slow) move on same object bucketChristoph Fiehe2024-09-163-0/+178
| | | | | | | | | | | | | | | | | | | | | | | | | | | This commit fixes the issue #47856. When you upload a file into a group folder and when you use a single S3 bucket as primary storage, the final move operation hangs for a long time. In the background, Nextcloud initiates a copy-delete sequence from the bucket into the bucket, with causes a lot unnecessary overhead. Nextcloud thinks that the file must be imported to another storage and does not recognize that everything is done on the same object bucket. In that case, the import step can be completely skipped, which saves time, network bandwidth and reduces the load on the object storage. The behavior improves a lot with https://github.com/nextcloud/server/pull/46013. However, there are still some put messages that are being sent to the object storage when you use an object storage as primary storage and upload files into a group folder. Co-authored-by: Kate <26026535+provokateurin@users.noreply.github.com> Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de>
* | | Merge pull request #48129 from nextcloud/feat/zstJohn Molakvoæ2024-09-172-22/+23
|\ \ \ | |_|/ |/| |
| * | chore: update RepairMimeTypes migrationfeat/zstJohn Molakvoæ (skjnldsv)2024-09-172-22/+23
| | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | | fix(Storage): Document getOwner() can return falseprovokateurin2024-09-171-1/+1
| | | | | | | | | | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* | | Merge pull request #48009 from ↵Côme Chilliet2024-09-169-37/+39
|\ \ \ | | | | | | | | | | | | | | | | nextcloud/fix/remove-references-to-deprected-storage-interface fix: Remove OCP\Files\Storage interface deprecated since version 9
| * | | chore: Fix encryption test use statementCôme Chilliet2024-09-161-1/+2
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | fix: Fix other uses of removed Storage interfaceCôme Chilliet2024-09-162-2/+3
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | fix: Remove OCP\Files\Storage interface deprecated since version 9Côme Chilliet2024-09-167-34/+34
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | Merge pull request #46480 from nextcloud/fix/mailer-binaryfinder-fallbackRobin Appelman2024-09-161-1/+2
|\ \ \ \ | |/ / / |/| | | fix(Mailer): Fix sendmail binary fallback
| * | | fix(Mailer): Fix sendmail binary fallbackfix/mailer-binaryfinder-fallbackJosh2024-09-161-1/+2
| | |/ | |/| | | | | | | | | | | | | feat: add debug logging to sendmail binary finder Signed-off-by: Josh <josh.t.richards@gmail.com>
* | | Merge pull request #46140 from nextcloud/fix-nc-env-inclusionRobin Appelman2024-09-161-0/+7
|\ \ \ | | | | | | | | fix(config): Add missing handling for `envCache` in `getKeys()`
| * | | Merge branch 'master' into fix-nc-env-inclusionfix-nc-env-inclusionRobin Appelman2024-09-16459-8274/+10496
| |\| | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | fix(config): add envCache tests for getKeys()Josh Richards2024-07-081-0/+7
| | | | | | | | | | | | | | | | Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
* | | | feat: Make `CheckServerResponseTrait` public and provide as ↵feat/make-setup-check-trait-publicFerdinand Thiessen2024-09-162-0/+252
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | `OCP\SetupCheck\CheckServerResponseTrait` This trait is used by other apps for creating setup checks, so we should provide it instead apps using private API. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | | Merge pull request #47852 from nextcloud/sharding-code-fixesJohn Molakvoæ2024-09-161-2/+2
|\ \ \
| * | | fix: misc code fixes around db shardingsharding-code-fixesRobin Appelman2024-09-092-14/+14
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | Merge pull request #48008 from nextcloud/fix/entity/strict-typesKate2024-09-161-2/+7
|\ \ \ \
| * | | | fix(Entity): Fix magic setter call for custom strong typed settersfix/entity/strict-typesprovokateurin2024-09-151-2/+7
| | |_|/ | |/| | | | | | | | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* | | | Merge pull request #48049 from nextcloud/refactor/void-testsAnna2024-09-16418-3112/+3112
|\ \ \ \ | | | | | | | | | | refactor: Add void return type to PHPUnit test methods
| * | | | refactor: Add void return type to PHPUnit test methodsChristoph Wurst2024-09-15418-3112/+3112
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | | | Merge pull request #48046 from nextcloud/refactor/self-class-referenceAnna2024-09-151-2/+2
|\ \ \ \ \ | |/ / / / |/| | | | refactor: Replace __CLASS__ with ::class references
| * | | | refactor: Replace __CLASS__ with ::class referencesrefactor/self-class-referenceChristoph Wurst2024-09-151-2/+2
| |/ / / | | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* / / / feat(db): switch from settype to castsfeat/switch-from-settype-to-castsAnna Larch2024-09-153-6/+6
|/ / / | | | | | | | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* | | feat(PsrLoggerAdapter): Allow to use `Psr\Log\LogLevel` for `log` methodFerdinand Thiessen2024-09-141-0/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | There is the `Psr\Log\LogLevel` class defining loglevel constants, to be fully compatible we should at least support those logging levels. Moreover this is the last part that was still required from `ILogger` interface, as we did not have alternatives for the loglevel constants. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | | Merge pull request #47927 from nextcloud/fix/migrate-away-from-oc_appCôme Chilliet2024-09-136-14/+35
|\ \ \ | | | | | | | | Migrate away from OC_App to IAppManager
| * | | chore(tests): Fix Router test by mocking AppManager methods correctlyCôme Chilliet2024-09-131-1/+13
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | fix: Replace OC_App::getAllApps with a method in AppManagerCôme Chilliet2024-09-132-6/+2
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | chore: Migrate cleanAppId and getAppPath calls to IAppManager from OC_AppCôme Chilliet2024-09-133-7/+20
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | Merge pull request #47865 from ↵Côme Chilliet2024-09-131-6/+6
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | nextcloud/admin_audit/enh/move-to-event-listeners-v2 Move admin_audit to proper event listeners v2
| * | | | feat: Add mimetype into BeforePreviewFetchedEvent eventThomas Citharel2024-09-101-6/+6
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | | | | fix(config): Throw PreconditionException always when it didn't matchJoas Schilling2024-09-131-0/+36
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Previously even when the precondition did not match, the call "passed" when the after value was the expected one. This however can lead to race conditions, duplicate code excutions and other things. Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | Merge pull request #47685 from nextcloud/fix/move-apihelper-to-oc-namespaceCôme Chilliet2024-09-125-114/+93
|\ \ \ \ | | | | | | | | | | fix: Move OC_API into \OC\ApiHelper in standard namespace
| * | | | chore: Adapt tests to OC_API refactoringCôme Chilliet2024-09-095-114/+93
| | |/ / | |/| | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | fix: Add whiteboard to education and public sector bundleJulius Knorr2024-09-121-0/+1
| | | | | | | | | | | | | | | | Signed-off-by: Julius Knorr <jus@bitgrid.net>
* | | | fix(RichObjectStrings/Validator): Validate key value types of rich object ↵provokateurin2024-09-101-0/+23
| |/ / |/| | | | | | | | | | | | | | parameters Signed-off-by: provokateurin <kate@provokateurin.de>