summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Check all remotes for local accessJoas Schilling2020-04-141-9/+122
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix jsunit testsDaniel Kesselberg2020-04-141-6/+0
| | | | | | JSUnit tests are failing for some reason. It seems to be related to a new karma-coverage version published a few hours ago. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Merge pull request #20426 from nextcloud/techdebt/psr2John Molakvoæ2020-04-1143-163/+163
|\ | | | | It is done
| * Add visibility to all constantsChristoph Wurst2020-04-107-22/+22
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
| * Add visibility to all methods and position of static keywordChristoph Wurst2020-04-1034-128/+128
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
| * Add visibility to all properties and move static keywordChristoph Wurst2020-04-105-13/+13
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #20419 from nextcloud/dependabot/npm_and_yarn/variousJohn Molakvoæ2020-04-111-4/+4
|\ \ | |/ |/| Bump p-limit from 2.2.2 to 2.3.0, @nextcloud/auth from 1.2.2 to 1.2.3, @babel/preset-env from 7.8.7 to 7.9.5, @nextcloud/event-bus from 1.1.3 to 1.1.4, @nextcloud/password-confirmation from 1.0.0 to 1.0.1, @nextcloud/l10n from 1.2.2 to 1.2.3, @nextcloud/initial-state from 1.1.1 to 1.1.2, core-js from 3.6.4 to 3.6.5 …
| * Bump acceptance testsJohn Molakvoæ (skjnldsv)2020-04-101-4/+4
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Merge pull request #20422 from ↵Christoph Wurst2020-04-10278-756/+442
|\ \ | | | | | | | | | | | | nextcloud/techdebt/format-control-structs-classes-methods Format control structures, classes, methods and function
| * | Format control structures, classes, methods and functionChristoph Wurst2020-04-10278-756/+442
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Merge pull request #19495 from nextcloud/preview-generate-batchRoeland Jago Douma2020-04-101-14/+23
|\ \ \ | |/ / |/| | optimize batch generation of previews
| * | fix preview generation testsRobin Appelman2020-04-101-14/+23
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Use elseif instead of else ifChristoph Wurst2020-04-1020-60/+60
| |/ |/| | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Remove space between switch case and colonChristoph Wurst2020-04-091-32/+32
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Remove trailing whitespaces from commentsChristoph Wurst2020-04-094-6/+6
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Remove trailing and in between spacesChristoph Wurst2020-04-0913-28/+28
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-0991-363/+359
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use a blank line after the opening tagChristoph Wurst2020-04-0942-12/+66
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-0983-68/+15
| | | | | | | | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Fix (array) indent style to always use one tabChristoph Wurst2020-04-0934-1832/+1832
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #16035 from nextcloud/share-search-hide-on-matchblizzz2020-04-091-62/+77
|\ \ | | | | | | dont show remote and email options if we have an exact match for local user email
| * | dont show remote and email options if we have an exact match for local user ↵Robin Appelman2020-04-081-62/+77
| |/ | | | | | | | | | | email Signed-off-by: Robin Appelman <robin@icewind.nl>
* / Fix multiline commentsChristoph Wurst2020-04-0819-246/+245
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* tests: fix failing header acceptance testAzul2020-04-071-1/+1
| | | | | | The username is listed in a div with class `fullname` now. Signed-off-by: Azul <azul@riseup.net>
* Move legacy classes from PSR0 to PSR4Christoph Wurst2020-04-071-2/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20033 from nextcloud/s3-seekable-streamRoeland Jago Douma2020-04-062-4/+20
|\ | | | | Enable fseek for files in S3 storage
| * add basic tests for s3 seeking and add some error handling if reopen return ↵Robin Appelman2020-04-012-4/+20
| | | | | | | | | | | | the wrong range Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #20139 from ↵Roeland Jago Douma2020-04-043-3/+58
|\ \ | | | | | | | | | | | | nextcloud/unify-default-value-for-restricting-user-enumeration-with-settings Unify default value for restricting user enumeration with settings
| * | Add acceptance test for restricting user enumeration to groupsDaniel Calviño Sánchez2020-03-242-0/+55
| | | | | | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * | Unify default value for restricting user enumeration with settingsDaniel Calviño Sánchez2020-03-241-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the value was never enabled or disabled, the settings show "Restrict username enumeration to groups" as disabled. However, in some components it was enabled by default, which caused an inconsistency in the behaviour with respect to the settings, for example in the contacts menu. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | fix testsRobin Appelman2020-04-011-6/+26
| |/ |/| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #19858 from nextcloud/feature/webauthnRoeland Jago Douma2020-03-311-1/+7
|\ \ | | | | | | Add WebAuthn support
| * | Start with webauthnRoeland Jago Douma2020-03-311-1/+7
| | | | | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* | | [POC] Event for failed login attemptsRoeland Jago Douma2020-03-311-1/+8
|/ / | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-2752-97/+0
|\ \ | | | | | | Remove unused imports
| * | Remove unused importsChristoph Wurst2020-03-2552-97/+0
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Use the short array syntax, everywhereChristoph Wurst2020-03-26117-2121/+2121
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Merge pull request #20172 from nextcloud/techdebt/phpunit-short-returnChristoph Wurst2020-03-26102-1393/+1393
|\ \ \ | | | | | | | | Use the shorter phpunit syntax for mocked return values
| * | | Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-25102-1393/+1393
| |/ / | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* / / Use lowercase true, false and null constantsChristoph Wurst2020-03-255-6/+6
|/ / | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #14722 from tacruc/GpgMailerHooksRoeland Jago Douma2020-03-252-14/+69
|\ \ | | | | | | Add Mailer events
| * | Added Hook before Message is sendArne Hamann2020-03-242-14/+69
| | | | | | | | | | | | Signed-off-by: Arne Hamann <kontakt+github@arne.email>
* | | Merge pull request #20127 from nextcloud/bugfix/noid/check-user-on-remote-wipeRoeland Jago Douma2020-03-241-13/+3
|\ \ \ | |/ / |/| | Check the user on remote wipe
| * | Check the user on remote wipeJoas Schilling2020-03-161-13/+3
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Remove admin_notifications since it is obsolete since Nextcloud 14Julius Härtl2020-03-241-1/+0
| |/ |/| | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #17684 from mlatief/support-no-proxyRoeland Jago Douma2020-03-221-11/+139
|\ \ | | | | | | Add support for GuzzleHTTP 'no' proxy
| * | Add support for GuzzleHTTP 'no' proxyMohammed Abdellatif2020-02-291-11/+139
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The custom config allows to setup a proxy URI that is passed to GuzzleHTTP client as request options. Guzzle has the option to receive an array of proxies for each URI scheme as well as 'no' key value pair to provide a list of host names that should not be proxied to. Guzzle would automatically populate these options with HTTPS_PROXY and NO_PROXY environment variables. However, when providing a 'proxy' request option, default values will be overriden and it is required to explicitly provide the 'no' value if needed. More info: http://docs.guzzlephp.org/en/stable/request-options.html#proxy This commit will add support for a new config 'proxyexclude', which takes a list of host names to be excluded. It will also provide 'proxy' request option as an array instead of a string to Guzzle, and populate 'http' and 'https' URI schemes with proxy URI, and 'no' with 'proxyexclude' list. Also, if no 'proxy' is configured, it will leave out 'proxy' request option, so it won't override Guzzle default values. Sample config file includes a hint on how to explicitly sync 'proxyexclude' with NO_PROXY, and a note about default values. Signed-off-by: Mohammed Abdellatif <m.latief@gmail.com>
* | | Add acceptance test for accepting an incoming shareDaniel Calviño Sánchez2020-03-202-0/+71
| | | | | | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | Fix timeout cappingDaniel Calviño Sánchez2020-03-201-1/+1
| | | | | | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | Revert (partially) "Accept incoming shares in acceptance tests"Daniel Calviño Sánchez2020-03-202-23/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit f402e234480cd9d18c6c90ef011968eb7abcd5dc. Since eb4c42d3d1fda02895d35a360bceb08379f328c2 now shares are accepted by default, so no notification is shown to accept them. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>