summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #31748 from nextcloud/backport/31592/stable23blizzz2022-04-141-0/+2
|\ | | | | [stable23] Add direct arg to login flow
| * Add direct arg to login flowVincent Petry2022-04-141-0/+2
| | | | | | | | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com> Co-Authored-by: Carl Schwan <carl@carlschwan.eu>
* | Merge pull request #31678 from nextcloud/backport/31658/stable23Joas Schilling2022-04-143-73/+89
|\ \ | | | | | | [stable23] Limit the length of app password names
| * | Fix unit testsJoas Schilling2022-03-232-73/+58
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | Limit the length of app password namesJoas Schilling2022-03-231-0/+31
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Merge pull request #31453 from nextcloud/s3-primary-ci-23blizzz2022-04-141-0/+12
|\ \ \ | | | | | | | | [stable23] Run tests with primary object storage in CI + large upload fixes
| * | | skip localstorage dependend user test when not using local user storageRobin Appelman2022-03-101-0/+12
| |/ / | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | / confirm user is internal to globalscaleMaxence Lange2022-04-121-0/+12
| |/ |/| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* | Add profile default setting for adminChristopher Ng2022-03-251-0/+6
| | | | | | | | | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com> (cherry picked from commit 108abd77ed0ee29bca4019f6a212ba1b2bdad5e7) Signed-off-by: Christopher Ng <chrng8@gmail.com>
* | Add global profile toggle configChristopher Ng2022-03-251-5/+5
|/ | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com> (cherry picked from commit 1fc0b4320c8921ad59bf4d41a88bf9936e1f653d)
* Merge pull request #31098 from nextcloud/backport/30942/stable23Vincent Petry2022-03-011-13/+9
|\ | | | | [stable23] only setup part of the filesystem for appdata requests
| * fix fs cache test user setupRobin Appelman2022-02-161-13/+9
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Allow apps to specify if their background job can be delayedJoas Schilling2022-02-221-1/+2
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #30949 from ↵Vincent Petry2022-02-162-2/+10
|\ | | | | | | | | nextcloud/bugfix/noid/allow-to-disable-v1-authtokens [stable23] Allow to disable AuthToken v1
| * Fix unit testsJoas Schilling2022-01-312-2/+10
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #30814 from nextcloud/backport/30508/stable23John Molakvoæ2022-01-2718-126/+119
|\ \
| * | Fix psalm not runningCarl Schwan2022-01-2718-126/+119
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The issue was that we were using psalm/phar instead of vimeo/psalm. This caused issue with the custom psalm plugin in buildd/psalm. This is using the opportunity to also update the psalm version from 3.8 to 3.17 and the php-cs-fixer too. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | | Fix tests with email templatesCarl Schwan2022-01-202-4/+4
|/ / | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Merge pull request #30659 from nextcloud/backport/29622/stable23Julius Härtl2022-01-142-17/+41
|\ \
| * | Implement multibucket shift for ObjectStoreJohn Molakvoæ2022-01-142-17/+41
| | | | | | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* | | Fix idn emails not working in sharesCarl Schwan2022-01-131-8/+50
|/ / | | | | | | | | | | | | | | And add check before sending email that email address is valid Fix #30595 Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Merge pull request #30611 from nextcloud/backport/30588/stable23Joas Schilling2022-01-121-1/+1
|\ \ | | | | | | [stable23] Fix undefined/unset scope in account properties
| * | Fix testJoas Schilling2022-01-111-1/+1
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Prevent loading images that would require too much memory.Joachim Bauch2022-01-112-0/+17
|/ / | | | | | | | | | | | | | | | | | | | | | | | | For most image formats, the header specifies the width/height. PHP allocates an image object from that size, even if the actual image data is much smaller. This image object size is not limited by the limit configured in PHP. The memory limit can be configured through "config.php" setting "preview_max_memory" and defaults to 128 MBytes which should be enough for most images without filling up all memory. Signed-off-by: Joachim Bauch <bauch@struktur.de>
* | Fix email verificationChristopher Ng2022-01-071-0/+39
| | | | | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* | fix testsRobin Appelman2021-12-021-20/+0
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | add method to shorten a string to given byte size to UtilsArthur Schiwon2021-11-261-0/+7
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Improve normalizer detecting IPv4 inside of IPv6Vincent Petry2021-11-231-1/+9
| | | | | | | The subnet for an IPv4 address inside of IPv6 is now returned in its IPv4 form. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix getting subnet of ipv4 mapped ipv6 addressesVincent Petry2021-11-231-0/+4
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Normalize directory entries in Encoding wrapperVincent Petry2021-11-191-1/+43
| | | | | | | | | | | | Directory entry file names are now normalized in getMetaData(), getDirectoryContents() and opendir(). This makes the scanner work properly as it assumes pre-normalized names. In case the names were not normalized, the scanner will now skip the entries and display a warning when applicable. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* OC_Util: Add fallbacks to check if current locale is UTF8Naoto Kobayashi2021-11-161-2/+4
| | | | | | | | | Using escapeshellcmd to get current locale causes error if the function is disabled. Add fallbacks to prevent the error. Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
* Add check whether escapeshellcmd behaves the same as basenameNaoto Kobayashi2021-11-161-0/+2
| | | | Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
* Fix missing setlocale with php 8Naoto Kobayashi2021-11-161-0/+8
| | | | | | | | | When php version = 8, basename('§') does not bug even if LC_ALL is non-UTF-8 locale. This cause OC_Util::isSetLocaleWorking() to skip setlocale("C.UTF-8"). Fix it by using escapeshellcmd instead of basename. Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
* Fix branch selection in stable23Joas Schilling2021-11-151-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix unit testsJoas Schilling2021-11-121-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add unit test for share enumeration methodJoas Schilling2021-11-091-1/+79
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Move common logic to share managerJoas Schilling2021-11-091-10/+25
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #29524 from nextcloud/bugfix/noid/fix-phpunit-warningsChristoph Wurst2021-11-021-0/+1
|\ | | | | Fix missing import of ILogger
| * Fix missing import of ILoggerJoas Schilling2021-11-021-0/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Enable Avatar tests as well for PHP>=8Côme Chilliet2021-10-281-20/+0
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Revert "Do not run image tests on php8"Côme Chilliet2021-10-281-68/+0
|/ | | | | | This reverts commit d690f909284ae4bb4dee7d00318104ee76720bfa. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Add an OCP for trusted domain helperJoas Schilling2021-10-281-10/+23
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #27440 from nextcloud/is-file-handleJohn Molakvoæ2021-10-231-2/+2
|\
| * Update Testsacsfer2021-10-221-1/+1
| |
| * Tests updateacsfer2021-08-151-1/+1
| |
* | Merge pull request #29363 from nextcloud/fair-use-pushJohn Molakvoæ2021-10-233-16/+111
|\ \
| * | add check isFairUseOfFreePushService on loginVitor Mattos2021-10-231-7/+25
| | | | | | | | | | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
| * | Fair use of push notificationsJoas Schilling2021-10-232-9/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | We want to keep offering our push notification service for free, but large users overload our infrastructure. For this reason we have to rate-limit the use of push notifications. If you need this feature, consider setting up your own push server or using Nextcloud Enterprise. Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | fix populating account array with missing default valuesArthur Schiwon2021-10-221-9/+7
|/ / | | | | | | | | | | | | | | - both $userData and $defaultUserData have numeric indices - each element contains at least the name and other fields - appending the missing data array is sufficient Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Merge pull request #29220 from nextcloud/s3-external-listJohn Molakvoæ2021-10-221-0/+3
|\ \