aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | chore: Migrate away from internal Job classesCôme Chilliet2024-02-085-99/+28
|/ / / / / | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | | 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>
* | | | | chore: Replace OC::$server->getL10N by OCP\Util::getL10N in lib and some appsCôme Chilliet2024-02-052-5/+5
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | | refactor(objectstorage): cleanup typesThomas Citharel2024-02-021-2/+2
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | | | | Merge pull request #43132 from nextcloud/enh/41755/update-appframework-apiMaxence Lange2024-02-011-0/+691
|\ \ \ \ \ | | | | | | | | | | | | sync with new OCP\IAppConfig
| * | | | | better testsMaxence Lange2024-02-011-129/+606
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
| * | | | | fix lintMaxence Lange2024-01-311-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
| * | | | | adding testMaxence Lange2024-01-311-0/+214
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* | | | | | Merge pull request #43203 from nextcloud/fix/cleanup-register-command-with-diJoas Schilling2024-02-012-17/+10
|\ \ \ \ \ \ | |/ / / / / |/| | | | | Use Dependency Injection in register_commands.php
| * | | | | fix: Make Repair object injectable and fix BackgroundRepair testCôme Chilliet2024-02-011-16/+9
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | | | chore: use DI for \OC\RepairCôme Chilliet2024-01-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | | | 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>
* | | | | test(php): Fix the unit testsBaptiste Fotia2024-01-311-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I added our context in the unit tests following the advice of Louis. Link : https://github.com/nextcloud/server/pull/43186#issuecomment-1916571027 Signed-off-by: Baptiste Fotia <fotia.baptiste@hotmail.com>
* | | | | feat(php,vue): Create a new parameterBaptiste Fotia2024-01-311-0/+5
|/ / / / | | | | | | | | | | | | Signed-off-by: Baptiste Fotia <fotia.baptiste@hotmail.com>
* | | | fix: Use DI for Setup class and move away from deprecated methodsCôme Chilliet2024-01-291-18/+14
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | test(unit): fix RequestTestArthur Schiwon2024-01-271-3/+4
| | | | | | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | | 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>
* | | | fix(tests): Make PostgreSQL unit tests less flacky by orderingJoas Schilling2024-01-251-1/+1
|/ / / | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | fix(session): Avoid two useless authtoken DB queries for every anonymous requestGit'Fellow2024-01-171-0/+50
| | | | | | | | | | | | | | | | | | Co-Authored-By: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Merge pull request #41755 from nextcloud/enh/noid/lazyconfigMaxence Lange2024-01-162-36/+34
|\ \ \ | | | | | | | | Lazy grouping within IAppConfig
| * | | lazy AppConfigMaxence Lange2024-01-152-36/+34
| | | | | | | | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* | | | fix(appstore): Only send subscription keys to valid appstoresJoas Schilling2024-01-151-2/+93
|/ / / | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | tests(DB): Add test for date time comparisons in query builderJulius Härtl2023-12-291-0/+86
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | AppAPI: allowed to bypass Two-FactorAlexander Piskun2023-12-281-4/+19
| | | | | | | | | | | | Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
* | | adjust redis compareSetTTL to use a lua scriptRobin Appelman2023-12-211-0/+21
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | restore shared lock ttl when releasingRobin Appelman2023-12-211-1/+3
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | feat(comments): Add a meta data column for commentsJoas Schilling2023-12-142-1/+13
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Merge pull request #41927 from nextcloud/perf/login-with-email-tokenJulius Härtl2023-12-051-1/+1
|\ \ \
| * | | perf: Use more performant way to obtain and check the email as a login name ↵Julius Härtl2023-11-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | with token login Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | | fix(security): Handle idn_to_utf8 returning falseJoas Schilling2023-12-042-3/+13
|/ / / | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | enh(userstatus): add OOO automation and remove calendar automationAnna Larch2023-11-281-29/+61
| | | | | | | | | | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* | | fix(API): Use a distinct exception so apps can react to it and customize the ↵Joas Schilling2023-11-281-1/+2
| | | | | | | | | | | | | | | | | | return Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Merge pull request #41578 from nextcloud/enh/noid/dispatcher-test-argument-rangeJoas Schilling2023-11-272-0/+68
|\ \ \ | | | | | | | | Enable AppFramework dispatcher to enforce integer ranges
| * | | enh(dispatcher): enforce psalm ranges in the http dispatcherArthur Schiwon2023-11-242-0/+68
| | | | | | | | | | | | | | | | | | | | | | | | - allows devs to provide int ranges for API arguments Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | | feat(dav): dispatch out-of-office started and ended eventsRichard Steinmetz2023-11-231-6/+12
|/ / / | | | | | | | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* | | chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-2339-146/+146
| | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* | | Merge pull request #41565 from nextcloud/fix/object-storage-inconsitent-behaviorFerdinand Thiessen2023-11-221-0/+38
|\ \ \ | | | | | | | | fix(ObjectStore): Make copying behavior consistent with local storage
| * | | 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>
* | | | fix: Fix linkToOCSRouteAbsolute() without index.php and subfolderJoas Schilling2023-11-201-7/+15
| | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | fix(CSP): Only add `strict-dynamic` when using noncesFerdinand Thiessen2023-11-173-61/+61
| | | | | | | | | | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | | | fix!(ContentSecurityPolicy): Make `strict-dynamic` enabled by default on ↵Ferdinand Thiessen2023-11-172-78/+75
| | | | | | | | | | | | | | | | | | | | | | | | `script-src-elem` Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | | | feat(ContentSecurityPolicy): Allow to set `strict-dynamic` on ↵Ferdinand Thiessen2023-11-172-0/+73
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | `script-src-elem` only This adds the possibility to set `strict-dynamic` on `script-src-elem` only while keep the default rules for `script-src`. The idea is to allow loading module js which imports other files and thus does not allow nonces on import but on the initial script tag. 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>
* | | Reverse X-Forwarded-For list to read the correct proxy remote addressJoas Schilling2023-11-161-6/+32
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | feat(dav): Enable OOO UI and expose enabled via OCPChristoph Wurst2023-11-151-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Makes the feature opt-out now that we have meaningful integrations based on OOO data. Allows instances still to turn the feature off. For apps like Mail that build on top of this feature we need to know if the instance has the feature turned on or off. This is exposed as OCP API, too. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | fix(AppManager): Ensure that app manager can handle empty app keys on the ↵Ferdinand Thiessen2023-11-141-2/+29
| | | | | | | | | | | | | | | | | | navigation entries Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | | fix: Allow to set custom app order on navigation entries added by closures ↵Ferdinand Thiessen2023-11-142-9/+4
|/ / | | | | | | | | | | to NavigationManager Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>