aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #27733 from ↵Julius Härtl2021-10-052-105/+111
|\ | | | | | | 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-0412-27/+158
| |\
| * | 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>
| * | Add IUrlGenerator::linkToDefaultPageUrl()Daniel Rudolf2021-06-302-30/+30
| | | | | | | | | | | | | | | | | | Replaces the deprecated \OC_Util::getDefaultPageUrl() and makes this API public. Signed-off-by: Daniel Rudolf <github.com@daniel-rudolf.de>
* | | 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>
* | | 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>
* | | Add email addresses to contacts menuDaniel Kesselberg2021-09-151-1/+3
| | | | | | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | | Merge pull request #28728 from nextcloud/add-database-backend-limiterLukas Reschke2021-09-132-36/+19
|\ \ \ | | | | | | | | Add database ratelimiting backend
| * | | Adjust testsLukas Reschke2021-09-062-16/+12
| | | | | | | | | | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
| * | | Adjust logic to store period instead of current timestampLukas Reschke2021-09-062-20/+7
| | | | | | | | | | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | | | use specific email getter where necessaryArthur Schiwon2021-09-091-1/+21
| | | | | | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | | enable the user to set a primary (notification) email address (backend)Arthur Schiwon2021-09-091-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - specific getters and setters on IUser and implementation - new notify_email field in provisioning API Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | | add a job to clean up expired verification tokensArthur Schiwon2021-09-091-2/+39
| | | | | | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | | implement verification for additional mailsArthur Schiwon2021-09-091-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - mails added by (sub)admins are automatically verified - provisioning_api controller as verification endpoint - IAccountProperty gets a locallyVerified property - IPropertyCollection gets a method to fetch an IAccountProperty by value - an remove equivalent was already present - AccountManager always initiates mail verification on update if necessary - add core success template for arbitrary title and message Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | | move verification token logic out of lost password controllerArthur Schiwon2021-09-091-0/+272
|/ / / | | | | | | | | | | | | | | | | | | - to make it reusable - needed for local email verification Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | Refactor writeObject to only use MultipartUpload when requiredBernd Rederlechner2021-08-202-0/+105
| | | | | | | | | | | | | | | | | | Signed-off-by: Bernd Rederlechner <Bernd.Rederlechner@t-systems.com> Co-authored-by: Julius Härtl <jus@bitgrid.net>
* | | Use IURLGenerator function to get value of `\OC::$WEBROOT` globalJonas Meurer2021-08-161-0/+6
| | | | | | | | | | | | Signed-off-by: Jonas Meurer <jonas@freesources.org>
* | | Merge pull request #28220 from ↵John Molakvoæ2021-08-091-68/+30
|\ \ \ | |_|/ |/| | | | | nextcloud/get-by-id-multiple-mounts-single-storage
| * | fix Folder->getById() when a single storage is mounted multiple timesRobin Appelman2021-07-281-68/+30
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | refs #21045 add app config to disable unlimited quota and to set max quotaJulien Veyssier2021-07-291-0/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | avoid unlimited quota as default_quota fallback value if unlimited quota is not allowed avoid getting/setting/displaying unlimited default quota if not allowed implement tests for unlimited quota restrictions Signed-off-by: Julien Veyssier <eneiluj@posteo.net> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
* | | Merge pull request #28175 from nextcloud/jail-search-rootJulius Härtl2021-07-291-0/+18
|\ \ \ | |/ / |/| |
| * | add test for searching within a "root jail"Robin Appelman2021-07-281-0/+18
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #28075 from nextcloud/enh/noid/admin_audit-report-full-pathJulius Härtl2021-07-261-0/+1
|\ \ \ | | | | | | | | Admin Audit - Sharing: createShare - report the full path
| * | | Admin Audit - Sharing: createShare - report the full pathszaimen2021-07-221-0/+1
| | | | | | | | | | | | | | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* | | | Let memory limit set in tests fit the used amountJulius Härtl2021-07-221-4/+3
|/ / / | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Allow to get a local cloud id without going through the contacts managerJulius Härtl2021-07-143-12/+31
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Add a unit test to check for casting a IQueryFunctionJoas Schilling2021-07-071-0/+34
|/ / | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #27198 from nextcloud/tests/run-s3-testsLukas Reschke2021-07-051-6/+1
|\ \ | | | | | | Run s3 tests again
| * | Run s3 tests againJulius Härtl2021-06-301-6/+1
| |/ | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* / Migrate HintException to OCPGary Kim2021-06-303-5/+5
|/ | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* adjust internal data handling logic to fix store and loadArthur Schiwon2021-06-301-146/+109
| | | | | | - format as stored previously in oc_accounts table is kept Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* adjust email verification checkerArthur Schiwon2021-06-301-4/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* adjust verification state updater methodArthur Schiwon2021-06-301-10/+5
| | | | | | - also fixes scope of internal methods Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* make AccountManager actually write multi value propertiesArthur Schiwon2021-06-301-163/+106
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* accounts event handler to use eventdispatcher, DI and Accounts APIArthur Schiwon2021-06-301-42/+42
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* prov api reports additional emails on getUserArthur Schiwon2021-06-301-0/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #27635 from nextcloud/fix/datetime-constantsPytal2021-06-231-5/+5
|\ | | | | Fix usage of DateTime constants
| * Move DateTime::RFC2822 to DateTimeInterface::2822Christoph Wurst2021-06-231-3/+3
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
| * Move DateTime::ATOM to DateTimeInterface::ATOMChristoph Wurst2021-06-231-2/+2
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #26346 from J0WI/clean-auth-regexblizzz2021-06-231-3/+7
|\ \ | |/ |/| Cleaner removePassword regex
| * Cleaner removePassword regexJ0WI2021-03-271-3/+7
| | | | | | | | Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* | Let apps toggle an unread counter on app iconsJulius Härtl2021-06-161-10/+20
| | | | | | | | | | Co-authored-by: Louis Chemineau <louis@chmn.me> Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | split of query building bits from searchhelperRobin Appelman2021-06-141-20/+9
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | update tests and fix some edge cases around new searchRobin Appelman2021-06-141-77/+69
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | rework search api to allow searching on multiple caches at onceRobin Appelman2021-06-142-3/+17
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>