summaryrefslogtreecommitdiffstats
path: root/tests/lib
Commit message (Collapse)AuthorAgeFilesLines
* Escape filename in Content-DispositionLukas Reschke2021-06-021-11/+25
| | | | | | We should escape all occurences of ' and \ in here. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Merge pull request #26792 from nextcloud/user-delete-cleanup-filesJohn Molakvoæ2021-06-021-0/+3
|\ | | | | better cleanup of user files on user deletion
| * better cleanup of user files on user deletionRobin Appelman2021-04-271-0/+3
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Make dav respect disallowing sharing with groupsThomas Citharel2021-05-261-45/+60
| | | | | | | | | | | | Closes #25390 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | do not use private AccountManager in UsersControllerArthur Schiwon2021-05-253-18/+40
| | | | | | | | | | | | | | | | - extends IAccountProperty for verificationData getters and setters - implementation thereof ^ - and of course adaption of UsersController Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Merge pull request #26727 from nextcloud/group-exclude-link-shareMorris Jobke2021-05-212-59/+23
|\ \ | | | | | | Add option to exclude groups from creating link shares
| * | load share settings from the share manager in more placesRobin Appelman2021-05-122-59/+23
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | l10n: Fix testValdnet2021-05-201-23/+23
| | |
* | | Merge pull request #26322 from nextcloud/recent-searchJulius Härtl2021-05-181-0/+13
|\ \ \ | | | | | | | | Use file search for recent files and optimize getting share types
| * | | adjust testsRobin Appelman2021-04-211-0/+13
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | Merge pull request #26626 from J0WI/strict-securityRoeland Jago Douma2021-05-1822-0/+64
|\ \ \ \ | | | | | | | | | | Make Security module strict
| * | | | Make Security module strictJ0WI2021-04-1922-0/+64
| | | | | | | | | | | | | | | | | | | | Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* | | | | Merge pull request #26679 from ↵blizzz2021-05-131-50/+49
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | | | | | | nextcloud/bugfix/noid/fix-unauthorized-ocs-status-in-provisioning Fix unauthorized OCS status in provisioning
| * | | | Fix unauthorized OCS status in provisioningJoas Schilling2021-05-121-50/+49
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | | allow to set valid scopes only in AccountPropertyArthur Schiwon2021-05-122-7/+25
|/ / / / | | | | | | | | | | | | | | | | | | | | the auto-fallback to v2-local is removed as well to react on wrong input Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | | Merge pull request #26591 from nextcloud/techdebt/noid/less-iloggerChristoph Wurst2021-04-2718-77/+81
|\ \ \ \ | | | | | | | | | | Less ILogger
| * | | | Fix unit testsJoas Schilling2021-04-2718-77/+81
| | |_|/ | |/| | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | Merge pull request #26718 from nextcloud/bugfix/noid/fix-ratelimit-templateJoas Schilling2021-04-271-11/+9
|\ \ \ \ | | | | | | | | | | Fix ratelimit template
| * | | | Fix ratelimit templateJoas Schilling2021-04-271-11/+9
| |/ / / | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | Merge pull request #26572 from ↵Joas Schilling2021-04-271-4/+5
|\ \ \ \ | |/ / / |/| | | | | | | | | | | nextcloud/bugfix/noid/throw-401-when-authentication-is-provided-and-invalid Throw "401 Unauthenticated" when authentication is provided but invalid
| * | | Fix Authentication testJoas Schilling2021-04-221-4/+5
| | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | Merge pull request #26259 from ↵Joas Schilling2021-04-261-0/+26
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | nextcloud/feature/noid/validate-website-to-be-valid Validate the website field input to be a valid URL
| * | | | Validate the website field input to be a valid URLJoas Schilling2021-04-221-0/+26
| |/ / / | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | Merge pull request #26375 from ↵Morris Jobke2021-04-222-1/+26
|\ \ \ \ | |/ / / |/| | | | | | | | | | | nextcloud/techdebt/noid/symfony-component-translation-pluralization-rules-is-deprecated "Symfony\Component\Translation\PluralizationRules" is deprecated
| * | | Fix test by defining pluralsJoas Schilling2021-04-201-1/+5
| | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | | Correctly replace all PHP placeholders with the parametersJoas Schilling2021-04-201-0/+21
| | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | set mimetype for objects uploaded to object storagesRobin Appelman2021-04-213-4/+4
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | Update CredentialsManagerTest.phpJoas Schilling2021-04-211-3/+0
| |_|/ |/| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Merge pull request #26654 from ↵Morris Jobke2021-04-201-18/+11
|\ \ \ | | | | | | | | | | | | | | | | nextcloud/bugfix/noid/fix-security-credentials-manager-test Fix security credentials manager test
| * | | Fix security credentials manager testJoas Schilling2021-04-201-18/+11
| |/ / | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Move 2FA registration to IBootstrapRoeland Jago Douma2021-04-201-1/+38
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Fix support testsJoas Schilling2021-04-201-2/+5
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2) Test\Support\Subscription\RegistryTest::testDelegateIsHardUserLimitReachedWithoutSupportAppAndUserCount with data set #0 (35, 15, 2, false) Cannot stub or mock class or interface "Test\Support\Subscription\UserInterface" which does not exist 3) Test\Support\Subscription\RegistryTest::testDelegateIsHardUserLimitReachedWithoutSupportAppAndUserCount with data set #1 (35, 45, 15, false) Cannot stub or mock class or interface "Test\Support\Subscription\UserInterface" which does not exist 4) Test\Support\Subscription\RegistryTest::testDelegateIsHardUserLimitReachedWithoutSupportAppAndUserCount with data set #2 (35, 45, 5, true) Cannot stub or mock class or interface "Test\Support\Subscription\UserInterface" which does not exist 5) Test\Support\Subscription\RegistryTest::testDelegateIsHardUserLimitReachedWithoutSupportAppAndUserCount with data set #3 (35, 45, 55, false) Cannot stub or mock class or interface "Test\Support\Subscription\UserInterface" which does not exist Had to use the Database user backend, as using multiple interfaces is deprecated: https://github.com/sebastianbergmann/phpunit/issues/3955 > This functionality should be deprecated as "having to use it" is almost always a symptom of bad design. > More importantly, though, the support for the creation of test doubles that implement multiple interfaces > resulted in code that is hard to maintain. Signed-off-by: Joas Schilling <coding@schilljs.com>
* | save a whitespace todayblizzz2021-04-201-1/+1
| | | | | | | | | | Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | ignore mail shares of related remote share resultsArthur Schiwon2021-04-201-22/+75
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #26555 from nextcloud/techdebt/noid/run-migrator-tests-on-OCIJoas Schilling2021-04-191-3/+49
|\ | | | | Run migrator tests on OCI
| * Integer 0 is not stored as Null and therefor worksJoas Schilling2021-04-161-1/+3
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Test that oracle throws on EmptyValues in a NotNull columnsJoas Schilling2021-04-161-14/+28
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Run migrator tests on OCIJoas Schilling2021-04-161-3/+33
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Allow registering NotifierServices trough IBootstrapRoeland Jago Douma2021-04-161-1/+29
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix unit testRoeland Jago Douma2021-04-1614-19/+18
| | | | | | | | | * Fix namespace * Fix test Was broken after https://github.com/nextcloud/server/pull/26529 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Separate settings for remote share expirationVincent Petry2021-04-151-70/+207
| | | | | | | Added separate settings for default and enforced expiration date for remote shares. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Merge pull request #26266 from nextcloud/future-proof-networkingRoeland Jago Douma2021-04-124-42/+328
|\ | | | | Improve networking checks
| * Adjust testLukas Reschke2021-04-061-7/+14
| | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
| * Improve networking checksLukas Reschke2021-04-064-42/+321
| | | | | | | | | | | | Whilst we currently state that SSRF is generally outside of our threat model, this is something where we should invest to improve this. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Increase subnet matcherLukas Reschke2021-04-071-2/+10
| | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Merge pull request #24966 from nextcloud/jknockaert-patch-1Lukas Reschke2021-04-061-4/+14
|\ \ | |/ |/| avoid fread on directories and unencrypted files
| * Update EncryptionTest.phpJasper Knockaert2021-01-051-3/+3
| |
| * 2nd attempt to fix testsJasper Knockaert2021-01-051-7/+11
| |
| * attemtp to fix testJasper Knockaert2021-01-051-1/+7
| |
* | Merge pull request #24055 from ↵Morris Jobke2021-04-011-20/+61
|\ \ | | | | | | | | | | | | nextcloud/bugfix/noid/enfore-no-notnull-for-boolean-to-store-false Enforce no notnull for boolean to store false