summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* | | Merge pull request #20049 from ↵Roeland Jago Douma2020-03-201-2/+2
|\ \ \ | | | | | | | | | | | | | | | | nextcloud/force-compatible-dependency-versions-in-acceptance-tests Force compatible dependency versions in acceptance tests
| * | | Force compatible dependency versions in acceptance testsDaniel Calviño Sánchez2020-03-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | behat/mink 1.8 and behat/mink-selenium2-driver 1.4 introduced behaviour changes that broke the acceptance tests. Until the tests are updated to work with the newer versions the last known versions are forced. Note that some acceptance tests still fail after enforcing the compatible versions, although that is caused by changes in the Nextcloud server itself. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | | Add tests for ContactsStore filteringJulius Härtl2020-03-201-4/+99
| | | | | | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | | Add tests for user group enumeration limitJulius Härtl2020-03-201-16/+128
|/ / / | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Fix recursive calls in logging via server methodsJoas Schilling2020-03-182-8/+9
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Move deprecated aliases over to new registrationRoeland Jago Douma2020-03-151-2/+3
| |/ |/| | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Add system config flag to manually set that a subscription is availableJulius Härtl2020-03-101-1/+17
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #19723 from nextcloud/bug/18603/avatar-responseRoeland Jago Douma2020-03-031-1/+5
|\ \ | | | | | | Always use status 200 for avatar response
| * | Always use status 200 for avatar responseDaniel Kesselberg2020-03-011-1/+5
| | | | | | | | | | | | | | | | | | As discussed in #18603 caching a 201 response is hard. It's now possible to distinguish between generated and uploaded avatars by reading the X-NC-IsCustomAvatar (0 = generated, 1 = uploaded) header. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | | Merge pull request #19742 from nextcloud/bug/19740/add-msg-for-exceptionblizzz2020-03-021-0/+17
|\ \ \ | |_|/ |/| | Add message for DoesNotExistException
| * | Add message for DoesNotExistExceptionDaniel Kesselberg2020-03-021-0/+17
| |/ | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* / better tests for SimpleFolderRobin Appelman2020-02-281-71/+48
|/ | | | | | test behavior, not implementation Signed-off-by: Robin Appelman <robin@icewind.nl>
* Strip of users home path from share api messageJoas Schilling2020-02-201-0/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* when we receive intentional empty whats new info, do not try to show itArthur Schiwon2020-02-131-0/+4
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* disable timeout on app install via cliArthur Schiwon2020-02-121-4/+8
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* [3rdparty] Bump guzzlehttp/guzzle from 6.3.3 to 6.5.2John Molakvoæ (skjnldsv)2020-02-112-26/+26
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Add Argon2id supportRoeland Jago Douma2020-02-071-18/+56
| | | | | | When available we should use argon2id for hashing. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #18926 from nextcloud/fix/18689/int-array-accessJoas Schilling2020-02-061-0/+62
|\ | | | | Array access on int will fail on php7.4
| * Add test to trigger "Trying to access array offset on value of type int"Daniel Kesselberg2020-01-231-0/+62
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Allow selecting the hashing algorithmRoeland Jago Douma2020-02-031-2/+63
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #19241 from nextcloud/bug/noid/job-catch-throwableRoeland Jago Douma2020-02-031-0/+21
|\ \ | | | | | | Make sure to catch php errors during job execution
| * | Make sure to catch php errors during job executionDaniel Kesselberg2020-01-311-0/+21
| | | | | | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | | Move Admin Settings also to info.xmlRoeland Jago Douma2020-01-311-13/+20
|/ / | | | | | | | | | | | | More cleanup of the Settings apps. Makes the manager cleaner and a proper manager. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Move personal settings to proper registrationRoeland Jago Douma2020-01-301-10/+15
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Move password settingsRoeland Jago Douma2020-01-301-3/+3
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #19176 from nextcloud/fix/contacts-menu-mailt-encodingRoeland Jago Douma2020-01-301-1/+1
|\ \ | | | | | | Do not encode contacts menu mailto links
| * | Do not encode contacts menu mailto linksChristoph Wurst2020-01-281-1/+1
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Move admin sections to settings appRoeland Jago Douma2020-01-281-86/+1
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Move the Personal sections to the settings appRoeland Jago Douma2020-01-281-28/+2
|/ / | | | | | | | | | | | | | | There is no need to have weird magic in the manager. This should be properly registered in the right way. The settings code is messy anyways. This is a start to make it a tad more clean. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Change avatar placeholder from single letter to 2 lettersSergey Shliakhov2020-01-271-13/+45
| | | | | | | | | | https://github.com/nextcloud/server/issues/18717 Signed-off-by: Sergey Shliakhov <husband.sergey@gmail.com>
* | add hub bundle for easy post-installationArthur Schiwon2020-01-261-1/+3
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #19035 from ↵Roeland Jago Douma2020-01-211-12/+12
|\ | | | | | | | | nextcloud/bugfix/noid/increase-timeout-for-downloads Adjust unit test for #19017
| * Adjust unit test for #19017Joas Schilling2020-01-211-12/+12
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Make getServerHost more robust to faulty user inputDaniel Kesselberg2020-01-161-0/+46
|/ | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* use `nodeExists` instead of catching exceptionsRobin Appelman2020-01-141-4/+8
| | | | | | makes the intent of the code more clear imo Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #18805 from nextcloud/bugfix/direct-edit-createRoeland Jago Douma2020-01-141-0/+15
|\ | | | | Check if file already exists during file creation
| * CHeck if file already exists during file creationJulius Härtl2020-01-131-0/+15
| | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>