summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Make phpunit8 compatibleRoeland Jago Douma2019-11-27386-466/+465
| | | | 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-22146-190/+174
|/ / | | | | | | | | | | | | | | | | | | | | * 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>
* | | Accept incoming shares in acceptance testsDaniel Calviño Sánchez2019-11-205-18/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Incoming shares are no longer automatically added to the file list of the sharee. Instead, the user now needs to explictly accept the share. Currently shares can be accepted only from the Notifications app, so it must be explicitly cloned before installing Nextcloud if it is not found in the "apps" directory. Note that the development branches are already built, so there is no need to explicitly build the app. With the new sharing behaviour the "share a skeleton file with another user before first login" scenario is no longer valid (as the user will need to log in to accept the share, so at that point the skeleton is already created), so it was removed. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | Rename "Notification" to "Toast"Daniel Calviño Sánchez2019-11-202-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | Since Nextcloud 17 the proper name for the old built-in notifications is "Toast". Moreover, this will reduce ambiguity when using the "notification" term to refer to elements in the Notifications app. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | 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>
* | Merge remote-tracking branch 'origin/master' into filecache-extensionRoeland Jago Douma2019-11-181-3/+12
|\ \
| * | Check getRedirectUri() for queriesRussellAult2019-11-131-3/+12
| |/ | | | | | | | | | | | | | | Resolves Issue #17885 Check getRedirectUri() for queries, and add a '&' instead of a '?' to $redirectUri if it already has them; otherwise, $redirectUri might end up with two '?'. Signed-off-by: RussellAult <russellault@users.noreply.github.com>
* | 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>
* Adjust acceptance tests to new OCA.SidebarJohn Molakvoæ (skjnldsv)2019-10-294-46/+53
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Extend data returned when searching remote sharesJohn Molakvoæ (skjnldsv)2019-10-291-5/+5
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Harden middleware checkRoeland Jago Douma2019-10-251-4/+85
| | | | | | | These annotations will allow for extra checks. And thus make it harder to break things. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Run acceptance tests on PHP 7.3Daniel Calviño Sánchez2019-10-221-1/+1
| | | | | | | | There is no difference (as far as I know) between running the acceptance tests on PHP 7.1 or on PHP 7.3; this is simply a preparatory step to be ready when PHP 7.1 support is dropped in Nextcloud server. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.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>
* Merge pull request #17431 from ↵Roeland Jago Douma2019-10-081-0/+5
|\ | | | | | | | | johkoenig/bugfix/17377/trusted_domain_helper_case_insensitive make TrustedDomainHelper case insensitive
| * make TrustedDomainHelper case insensitiveJohannes Koenig2019-10-061-0/+5
| | | | | | | | Signed-off-by: Johannes Koenig <mail@jokoenig.de>
* | Merge pull request #17411 from kinolaev/fix-oauth2-redirectRoeland Jago Douma2019-10-071-1/+2
|\ \ | |/ |/| Fix oauth client redirect
| * fix oauth client redirectSergej Nikolaev2019-10-041-1/+2
| | | | | | | | Signed-off-by: Sergej Nikolaev <kinolaev@gmail.com>
* | Fix master testing and update eslint-config (#17367)John Molakvoæ2019-10-042-3/+19
|\ \ | | | | | | Fix master testing and update eslint-config
| * | Fix tag acceptance tests after #16682John Molakvoæ (skjnldsv)2019-10-042-3/+19
| |/ | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* / Add Fatal logging optionTim Terhorst2019-10-021-0/+2
|/ | | | Signed-off-by: Tim Terhorst <mynamewastaken+gitlab@gmail.com>
* 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-2829-5528/+22
| | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* | Remove input id on login formJohn Molakvoæ (skjnldsv)2019-09-281-1/+1
| | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> 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>
* | | Fixed the testGreta Doci2019-09-151-0/+5
| | | | | | | | | | | | Signed-off-by: Greta Doci <gretadoci@gmail.com>