summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* fix(config): Make sure user keys are stringsChristoph Wurst2024-03-191-0/+25
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix: Fetch custom app store url without internet connectionJulius Härtl2024-03-042-3/+11
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #43789 from nextcloud/backport/39607/stable27John Molakvoæ2024-02-291-1/+1
|\
| * Add "-i" to MailTest's pipeFedericoHeichou2024-02-231-1/+1
| | | | | | | | | | | | Signed-off-by: FedericoHeichou <federicoheichou@gmail.com> [skip ci]
* | feat(share): save date and time for expirationBenjamin Gaussorgues2024-02-261-22/+76
|/ | | | | | | | Because of timezones, not saving time can lead to unexpected behaviour when sharing an item sooner than timezone offset Example: sharing a file before 9am when in UTC+9 Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@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(unit): fix RequestTestArthur Schiwon2024-01-291-3/+4
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* make OAuth2 authorization code expireJulien Veyssier2024-01-221-1/+6
| | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* 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>
* fix(appstore): Only send subscription keys to valid appstoresJoas Schilling2024-01-161-2/+93
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* perf: Use more performant way to obtain and check the email as a login name ↵Julius Härtl2024-01-091-1/+1
| | | | | | with token login Signed-off-by: Julius Härtl <jus@bitgrid.net>
* adjust redis compareSetTTL to use a lua scriptRobin Appelman2024-01-021-0/+21
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* restore shared lock ttl when releasingRobin Appelman2024-01-021-1/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* AppAPI: allowed to bypass Two-FactorAlexander Piskun2023-12-291-4/+19
| | | | | | | | Signed-off-by: Alexander Piskun <bigcat88@icloud.com> fix php-cs Signed-off-by: Andrey Borysenko <andrey18106x@gmail.com>
* fix(security): Handle idn_to_utf8 returning falseJoas Schilling2023-12-072-3/+13
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix: Fix linkToOCSRouteAbsolute() without index.php and subfolderJoas Schilling2023-11-201-7/+15
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* 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>
* Merge pull request #41363 from nextcloud/optmize-storage-wrappers-27Benjamin Gaussorgues2023-11-161-4/+14
|\ | | | | [27] optimize builtin storage wrappers
| * optimize isShared and isMountedRobin Appelman2023-11-091-4/+14
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | 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>
* apply known mtime wrapper for external storagesRobin Appelman2023-10-101-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-10-101-0/+71
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* only determine quota_include_external_storage once for quota wrapperRobin Appelman2023-09-072-11/+23
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* cleanup di for share permissions wrapperRobin Appelman2023-09-042-12/+28
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Improve sharing flowfenn-cs2023-08-314-1548/+0
| | | | | | | | | | | | | This commit introduces the following changes: - Does not create new share once user is selected for internal shares - Adds a `SharingDetails` view for share configurations - Adds a quick share select to enable fast changes in share permisions. Resolves: https://github.com/nextcloud/server/issues/26691 Signed-off-by: fenn-cs <fenn25.fn@gmail.com> Signed-off-by: Louis Chemineau <louis@chmn.me>
* feat: add switch to disable dns pinningDaniel Kesselberg2023-08-301-1/+52
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Fix tests, add test for the new featureCôme Chilliet2023-08-281-13/+77
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Make bypass function public APIJoas Schilling2023-08-232-5/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* feat: Expose if the own IP is allowed to bypass bruteforce protectionJoas Schilling2023-08-231-4/+11
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* feat(security): Add a bruteforce protection backend base on memcacheJoas Schilling2023-08-232-23/+164
| | | | | | Similar to the ratelimit backend Signed-off-by: Joas Schilling <coding@schilljs.com>
* tests: Add test for CacheEntry gettersFerdinand Thiessen2023-08-171-0/+25
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: Move broken filepicker selenium tests to cypressFerdinand Thiessen2023-08-102-37/+37
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Fix TextProcessing test for 32bitMarcel Klehr2023-08-091-1/+1
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix: missing argument for TextProcessing ManagerDaniel Kesselberg2023-08-091-0/+7
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Massive refactoring: Turn LanguageModel OCP API into TextProcessing APIMarcel Klehr2023-08-091-104/+99
| | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net> (cherry picked from commit ffe27ce14ca74b509c8721c9fba7c759498fa471)
* LLM OCP API: Change Tests to use EventDispatcher mockMarcel Klehr2023-08-091-41/+8
| | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net> (cherry picked from commit bf2dcd67f3cb83e3bebc472d65fac3bc8755e25d)
* LLM OCP API: s/getAvailableTasks/getAvailableTaskClasses/Marcel Klehr2023-08-091-6/+6
| | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net> (cherry picked from commit d56286b8acb319e05eaa8b8a920c76e76da336cf)
* Add test for task cleanupMarcel Klehr2023-08-091-0/+37
| | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net> (cherry picked from commit c568c4a4640e79134eaa59625a546915bb706f28)
* Fix testsMarcel Klehr2023-08-092-29/+99
| | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net> (cherry picked from commit 20cb9935ca80c32665b131315078661064037795)
* Add preliminary testsMarcel Klehr2023-08-091-0/+269
| | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net> (cherry picked from commit ebc76315441d75c3c7659c8a3fd0a285bdcd8cb2)
* feat(HTTPClient): Provide wrapped access to Guzzle's asyncRequest()Joas Schilling2023-08-072-3/+10
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* JobTest: Remove outdated testsMarcel Klehr2023-07-281-52/+0
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* cs:fixMarcel Klehr2023-07-281-1/+0
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* Add test for ParallelAwareJobMarcel Klehr2023-07-282-5/+89
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* Merge pull request #39522 from nextcloud/backport/39264/stable27Andy Scherzinger2023-07-271-7/+20
|\ | | | | [stable27] Add instance category while checking new updates
| * Add instance category while checking new updatesBenjamin Gaussorgues2023-07-211-7/+20
| | | | | | | | Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* | fix: Correctly add `module` content type to script tags when scripts with ↵Ferdinand Thiessen2023-07-231-0/+12
|/ | | | | | versions are used Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: also run phpunit on `apps/theming/css` modified filesJohn Molakvoæ2023-07-131-0/+2
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Merge pull request #38953 from nextcloud/backport/38917/stable27Arthur Schiwon2023-07-101-0/+9
|\ | | | | [stable27] fix(l10n): Fix plural issue with different locale and language