summaryrefslogtreecommitdiffstats
path: root/tests/lib
Commit message (Collapse)AuthorAgeFilesLines
* Make phpunit8 compatibleRoeland Jago Douma2019-11-27325-404/+404
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #18019 from nextcloud/enhancement/password-policy-eventsRoeland Jago Douma2019-11-272-38/+49
|\ | | | | Add typed events for password_policy
| * Add typed events for password_policyChristoph Wurst2019-11-272-38/+49
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #17834 from nextcloud/enh/noid/generic-event-replacement-tk2blizzz2019-11-272-4/+8
|\ \ | |/ |/| Public API's GenericEvent replacement (take 2)
| * Files first to use own GenericEventArthur Schiwon2019-11-262-4/+8
| | | | | | | | | | | | * those are added to 18 only anyway :) Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Merge pull request #17939 from nextcloud/fix/token-insert-conflict-handlingRoeland Jago Douma2019-11-261-10/+44
|\ \ | | | | | | Handle token insert conflicts
| * | Handle token insert conflictsChristoph Wurst2019-11-261-10/+44
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Env-based SAML uses the "Apache auth" mechanism to log users in. In this code path, we first delete all existin auth tokens from the database, before a new one is inserted. This is problematic for concurrent requests as they might reach the same code at the same time, hence both trying to insert a new row wit the same token (the session ID). This also bubbles up and disables user_saml. As the token might still be OK (both request will insert the same data), we can actually just check if the UIDs of the conflict row is the same as the one we want to insert right now. In that case let's just use the existing entry and carry on. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #17948 from nextcloud/enh/check-if-property-is-boolRoeland Jago Douma2019-11-261-8/+35
|\ \ | |/ |/| Make isXXX available for bool properties only
| * Make isXXX available for bool properties onlyDaniel Kesselberg2019-11-161-8/+35
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Merge pull request #17896 from nextcloud/fix/noid/consider-create-group-resultblizzz2019-11-251-0/+30
|\ \ | | | | | | take group creation result into consideration
| * | take group creation result into considerationArthur Schiwon2019-11-251-0/+30
| | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | Some php-cs fixesRoeland Jago Douma2019-11-22124-179/+153
|/ / | | | | | | | | | | | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Fix the tests after #18029Roeland Jago Douma2019-11-211-2/+1
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #18029 from nextcloud/feature/public-post-login-eventRoeland Jago Douma2019-11-211-2/+2
|\ \ | | | | | | Make the post login event public
| * | Make the post login event publicChristoph Wurst2019-11-201-2/+2
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Do not check for updates if we have no internetRoeland Jago Douma2019-11-201-24/+64
|/ / | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Do pagination on the dummy group backendRoeland Jago Douma2019-11-201-1/+2
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Use dummy backend in testRoeland Jago Douma2019-11-181-0/+1
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | fix folder deleteRobin Appelman2019-11-131-0/+2
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | dont create empty filecache extended rowsRobin Appelman2019-11-131-1/+8
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | expose filecache extension data in FileInfoRobin Appelman2019-11-131-213/+236
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | store filecache extension fieldsRobin Appelman2019-11-131-0/+61
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add unit tests for "getAllShares()"Daniel Calviño Sánchez2019-10-302-0/+216
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Extend data returned when searching remote sharesJohn Molakvoæ (skjnldsv)2019-10-291-5/+5
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Make renewSessionToken return the new tokenRoeland Jago Douma2019-10-091-10/+9
| | | | | | | Avoids directly getting the token again. We just inserted it so it and have all the info. So that query is just a waste. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* make TrustedDomainHelper case insensitiveJohannes Koenig2019-10-061-0/+5
| | | | Signed-off-by: Johannes Koenig <mail@jokoenig.de>
* Merge pull request #17001 from nextcloud/fix/noid/addressbookchanges-avatarblizzz2019-10-011-2/+1
|\ | | | | reduce adressbook change events and handling
| * adjust test expectationsArthur Schiwon2019-09-041-2/+1
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Move settings to an appChristoph Wurst2019-09-2812-771/+20
| | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* | Merge pull request #17264 from nextcloud/move-from-storage-wrappersRoeland Jago Douma2019-09-261-20/+97
|\ \ | | | | | | handle moveFromStorage within the same storage even when storage wrap…
| * | handle moveFromStorage within the same storage even when storage wrappers ↵Robin Appelman2019-09-251-20/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | are applied to the source storage the target storage doesn't need additional handling for wrappers as the wrappers implementation of moveFromStorage already deals with that Any storage based on local storage isn't affected by this as local storage already has it's own way of handling with this Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #17262 from nextcloud/objectstore-remove-cache-on-deleteRoeland Jago Douma2019-09-262-0/+79
|\ \ \ | | | | | | | | dont delete cache entries if deleting an object from object store failed
| * | | dont delete cache entries if deleting an object from object store failedRobin Appelman2019-09-252-0/+79
| |/ / | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Use the actual password to update the tokensRoeland Jago Douma2019-09-181-2/+2
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Fixed the SecurityTest errorGreta Doci2019-09-151-0/+7
| | | | | | | | | | | | | | | Signed-off-by: Greta Doci <gretadoci@gmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* | | Harden identifyproof openssl codeRoeland Jago Douma2019-09-141-7/+14
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Use Symfony's new contract Event class instead of the deprecated oneChristoph Wurst2019-09-121-8/+8
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Merge pull request #16682 from nextcloud/enh/12790/workflow-backendRoeland Jago Douma2019-09-111-23/+66
|\ \ \ | | | | | | | | workflow overhaul
| * | | adapt file hooks test to eventdispatcher utilizationArthur Schiwon2019-09-091-23/+66
| | | | | | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | | Split personal security settings in codeRoeland Jago Douma2019-09-102-72/+11
|/ / / | | | | | | | | | | | | | | | | | | | | | Instead of one big monolitic sections this is the first step in breaking down the settings. This should make is easiet to see what does what. As well as nicely splitting up the sections. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Merge pull request #16836 from nextcloud/fix/16724/smb-availabilityRoeland Jago Douma2019-09-091-41/+53
|\ \ \ | |/ / |/| | Fix SMB availability status + higher delay on auth issues
| * | adjust testsArthur Schiwon2019-08-261-41/+53
| | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | Merge pull request #17006 from nextcloud/querybuilder-max-minRoeland Jago Douma2019-09-071-0/+78
|\ \ \ | | | | | | | | add MAX and MIN to functionbuilder
| * | | add MAX and MIN to functionbuilderRobin Appelman2019-09-061-0/+78
| |/ / | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | / Log/FileTest does not require the DBRoeland Jago Douma2019-09-041-2/+0
| |/ |/| | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Add default timeout to expected request optionsDaniel Kesselberg2019-09-031-34/+19
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | SessionMiddleware: declare session propertyRoeland Jago Douma2019-08-281-12/+4
| | | | | | | | | | | | | | * Remove request since we don't useit * Update tests as well Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #16865 from nextcloud/bugfix/noid/5-min-cronRoeland Jago Douma2019-08-261-23/+2
|\ \ | | | | | | Cron should run every 5 mins
| * | Cleanup the Settings classJoas Schilling2019-08-261-23/+2
| |/ | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* / Fix report of phpstan in LimiterRoeland Jago Douma2019-08-191-8/+0
|/ | | | | | | | * unneeded arguments to constructor * added return types * let automatic DI do its work Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>