summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
| * | 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
| |\ \ \ \ \
| * | | | | | Fix UrlGeneratorTestDaniel Rudolf2021-08-041-28/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Again... :unamused: Signed-off-by: Daniel Rudolf <github.com@daniel-rudolf.de>
| * | | | | | Fix UrlGeneratorTest::testGetDefaultPageUrlWithDefaultApps()Daniel Rudolf2021-07-011-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Daniel Rudolf <github.com@daniel-rudolf.de>
| * | | | | | Move UtilTest::testDefaultApps() to UrlGeneratorTestDaniel Rudolf2021-07-012-62/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Daniel Rudolf <github.com@daniel-rudolf.de>
| * | | | | | Fix UtilTest::testDefaultApps()Daniel Rudolf2021-07-011-16/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Oh wow... This definitly was no best practice... :unamused: Signed-off-by: Daniel Rudolf <github.com@daniel-rudolf.de>
| * | | | | | Deprecate RedirectToDefaultAppResponseDaniel Rudolf2021-07-012-9/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Daniel Rudolf <github.com@daniel-rudolf.de>
| * | | | | | Remove unused importsDaniel Rudolf2021-06-301-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Daniel Rudolf <github.com@daniel-rudolf.de>
| * | | | | | Add IUrlGenerator::linkToDefaultPageUrl()Daniel Rudolf2021-06-304-40/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replaces the deprecated \OC_Util::getDefaultPageUrl() and makes this API public. Signed-off-by: Daniel Rudolf <github.com@daniel-rudolf.de>
* | | | | | | Make AppsEnableTest and AppsDisableTest independet of the app version numberDaniel Kesselberg2021-10-012-22/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | | | | | | Merge pull request #28189 from nextcloud/work/carl/admin-delegationCarl Schwan2021-09-292-10/+33
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Implement Admin Delegation
| * | | | | | | Add admin privilege delegation for admin settingsCarl Schwan2021-09-292-10/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes it possible for selected groups to access some settings pages. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | | | | | | | Fix unit testsJoas Schilling2021-09-292-16/+16
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | | | | Remove tests that just prove mocked calls and don't actually validate ↵Julius Härtl2021-09-272-82/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | anything useful Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | | | | | Run oci tests against phpunit9/php8Julius Härtl2021-09-271-0/+1
| |_|/ / / / |/| | | | | | | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>