summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
|\ \
| * | ciRobin Appelman2021-10-151-0/+3
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #26725 from ↵John Molakvoæ2021-10-221-0/+1
|\ \ \ | | | | | | | | | | | | nextcloud/fix-federated-scope-not-shown-when-public-addressbook-upload-is-disabled
| * | | Add missing scope to testDaniel Calviño Sánchez2021-08-181-0/+1
| | | | | | | | | | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | | Merge pull request #26347 from J0WI/clean-path-regexJohn Molakvoæ2021-10-221-5/+22
|\ \ \ \
| * | | | Cleaner normalizePath regexJ0WI2021-03-271-5/+22
| | | | | | | | | | | | | | | | | | | | Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* | | | | Merge pull request #29344 from nextcloud/dependabot/composer/doctrine/dbal-3.1.3John Molakvoæ2021-10-221-7/+3
|\ \ \ \ \
| * | | | | Bump doctrine/dbal from 3.0.0 to 3.1.3Christoph Wurst2021-10-221-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | | | | Prevent duplicate auth token activity updatesChristoph Wurst2021-10-221-7/+6
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The auth token activity logic works as follows * Read auth token * Compare last activity time stamp to current time * Update auth token activity if it's older than x seconds This works fine in isolation but with concurrency that means that occasionally the same token is read simultaneously by two processes and both of these processes will trigger an update of the same row. Affectively the second update doesn't add much value. It might set the time stamp to the exact same time stamp or one a few seconds later. But the last activity is no precise science, we don't need this accuracy. This patch changes the UPDATE query to include the expected value in a comparison with the current data. This results in an affected row when the data in the DB still has an old time stamp, but won't affect a row if the time stamp is (nearly) up to date. This is a micro optimization and will possibly not show any significant performance improvement. Yet in setups with a DB cluster it means that the write node has to send fewer changes to the read nodes due to the lower number of actual changes. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | | | Merge pull request #29256 from ↵Julien Veyssier2021-10-212-41/+67
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | nextcloud/fix/noid/harmonize-appstoreenabled-check Fix appstoreenabled check
| * | | | | Fix unit testsJoas Schilling2021-10-212-41/+67
| | |_|/ / | |/| | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | | Change origin field to appIdJoas Schilling2021-10-201-3/+3
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | | Do not remove current user on findOneJohn Molakvoæ2021-10-201-14/+13
| | | | | | | | | | | | | | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* | | | | Add appName to contactsmenu action APIJohn Molakvoæ2021-10-201-0/+19
| | | | | | | | | | | | | | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* | | | | Profile backendChristopher Ng2021-10-194-16/+40
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* | | | | Add new account propertiesChristopher Ng2021-10-191-6/+192
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - New properties - Organisation - Role - Headline - Biography - Profile Enabled property - Fix errors with building default account properties - Fix L10N factory method `getLanguage` not public error - Update tests Signed-off-by: Christopher Ng <chrng8@gmail.com>
* | | | Merge pull request #27217 from ↵John Molakvoæ2021-10-151-0/+7
|\ \ \ \ | | | | | | | | | | | | | | | nextcloud/techdebt/noid/make-debugging-a-cron-job-easier
| * | | | Move queries to the joblistJoas Schilling2021-10-141-0/+7
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | | Merge pull request #29235 from nextcloud/feat/appstore/enterpriseJohn Molakvoæ2021-10-153-5/+11
|\ \ \ \ \
| * | | | | Send the subscription key to the appstore requestsJohn Molakvoæ2021-10-143-5/+11
| |/ / / / | | | | | | | | | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* | | | | Merge pull request #29231 from nextcloud/fix/calendar-providers-instancesChristoph Wurst2021-10-141-1/+13
|\ \ \ \ \ | | | | | | | | | | | | Build instances of the calendar providers before using them
| * | | | | Build instances of the calendar providers before using themChristoph Wurst2021-10-141-1/+13
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | What we get from the registration context are only the class names. We still have to load the classes before we can use them. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | | | Merge pull request #29157 from nextcloud/enh/opendocumentJulius Härtl2021-10-142-2/+21
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Fix integrity checker testsJulius Härtl2021-10-132-2/+21
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | | | Merge pull request #29135 from nextcloud/feat/appstore-filteringJoas Schilling2021-10-141-1/+78
|\ \ \ \ \ | | | | | | | | | | | | Allow to filter apps from the appstore
| * | | | | Allow to whitelist apps from the apsptoreJohn Molakvoæ2021-10-131-1/+78
| |/ / / / | | | | | | | | | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* | | | | Add Public Calendar ProviderAnna Larch2021-10-141-10/+19
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Anna Larch <anna@nextcloud.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | | | Merge pull request #29015 from ↵Christoph Wurst2021-10-131-123/+232
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | nextcloud/enhancement/l10n-factory-find-generic-language Add L10n factory method for generic language heuristics
| * | | | | Add L10n factory method for generic language heuristicsChristoph Wurst2021-10-131-123/+232
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The existing `findLanguage` method tries its best to find the best language for the current users. For some tasks we don't want this but rather determine the most generic language for *another* user, e.g. when the current user trigger an email notifiaction to someone else. In this case the current user's language is a bad guess in many multi-language environments. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | | | | Add integration tests for groupJoas Schilling2021-10-121-1/+6
|/ / / / / | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | | Merge pull request #28907 from nextcloud/bug/noid/close-stream-localDaniel2021-10-081-1/+2
|\ \ \ \ \ | |/ / / / |/| | | | explicitly close source stream on local / encryption storage
| * | | | explicitly close source stream on local storageDaniel Kesselberg2021-09-211-1/+2
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | | | | Merge pull request #29064 from ↵Louis2021-10-061-1/+7
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | nextcloud/feature/add_cache_to_local_integration_tests_container Add caching for local run of integration and acceptance tests
| * | | | | Add cache for local integration test containerLouis Chemineau2021-10-061-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | | | | | Fix app-files acceptance testsLouis Chemineau2021-10-061-2/+2
|/ / / / / | | | | | | | | | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | | | | Merge pull request #27733 from ↵Julius Härtl2021-10-054-119/+136
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | PhrozenByte/enhancement/noid/IURLGenerator-linkToDefaultPageUrl
| * | | | | Fix UrlGeneratorTestDaniel Rudolf2021-08-051-19/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And again... :unamused: Signed-off-by: Daniel Rudolf <github.com@daniel-rudolf.de>
| * | | | | Merge branch 'master' into enhancement/noid/IURLGenerator-linkToDefaultPageUrlDaniel Rudolf2021-08-0415-32/+169
| |\ \ \ \ \