summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 429 template is NC20+ and fix getDelay for CLIJoas Schilling2021-04-291-2/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix Nextcloud19 compatibilityJoas Schilling2021-04-281-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix ratelimit templateJoas Schilling2021-04-271-11/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix empty password check for mail sharesVincent Petry2021-04-201-2/+2
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Increase subnet matcherLukas Reschke2021-04-121-2/+10
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Merge pull request #26264 from nextcloud/unified-search-node-19Morris Jobke2021-04-011-108/+202
|\ | | | | [stable19] Handle limit offset and sorting in files search
| * handle ordering in folder searchRobin Appelman2021-03-231-20/+34
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * folder filtering in sqlRobin Appelman2021-03-231-1/+0
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * cleanup fileinfo creationRobin Appelman2021-03-231-60/+30
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * handle limit and offset in folder file searchRobin Appelman2021-03-231-41/+157
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * only require user to be set in a query that handles tagsRobin Appelman2021-03-231-16/+11
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | gracefully handle deleteFromSelf when share is already goneArthur Schiwon2021-03-301-3/+0
|/ | | | | | - handling race conditions Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update user share must use correct expiration validationVincent Petry2021-03-191-40/+40
| | | | | | | | | | | Updating a user or group share now uses the correct method for the validation of the expiration date. Instead of using the one from links it uses the one for internal shares. To avoid future confusion, the method "validateExpirationDate" has been renamed to "validateExpirationDateLink". Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Merge pull request #26092 from nextcloud/backport/25722/stable19Morris Jobke2021-03-171-0/+24
|\ | | | | [stable19] apply object store copy optimization when 'cross storage' copy is wit…
| * apply object store copy optimization when 'cross storage' copy is within the ↵Robin Appelman2021-03-121-0/+24
| | | | | | | | | | | | same object store Signed-off-by: Robin Appelman <robin@icewind.nl>
* | adjust testsRobin Appelman2021-03-161-3/+16
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix search in nested jailsRobin Appelman2021-03-161-0/+18
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix cachjail searching for rootRobin Appelman2021-03-161-2/+17
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | do cachejail search filtering in sqlRobin Appelman2021-03-161-0/+37
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Send emails on password reset to the displaynameJoas Schilling2021-02-181-3/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #25449 from nextcloud/backport/25393/stable19Roeland Jago Douma2021-02-171-0/+196
|\ | | | | [stable19] add repair job for unencoded group share uris
| * adjust applicable versionArthur Schiwon2021-02-171-1/+1
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * compatibility to Nc 19Arthur Schiwon2021-02-171-2/+2
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * add missing changes from backport sourceArthur Schiwon2021-02-171-1/+1
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * test: adjust expectationArthur Schiwon2021-02-021-3/+2
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * add repair job for unencoded calendarsArthur Schiwon2021-02-021-0/+197
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Keep direct login active when redirectingJulius Härtl2021-02-091-0/+2
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #25121 from nextcloud/backport/25036/stable19blizzz2021-01-281-6/+82
|\ | | | | [stable19] respect DB restrictions on number of arguments in statements and queries
| * DB: warn on parameter number constraintsArthur Schiwon2021-01-151-6/+82
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Add "composer.lock" for acceptance tests to gitDaniel Calviño Sánchez2021-01-182-3/+2774
|/ | | | | | | | | | As "composer.lock" was not versioned the dependencies had to be resolved everytime that the acceptance tests run, which took some precious time. Besides that the dependency versions were also tightened for better control. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Merge pull request #24593 from nextcloud/backport/23912/stable19Morris Jobke2021-01-073-0/+24
|\ | | | | [stable19] use in objectstore copy
| * use in objectstore copyRobin Appelman2020-12-073-0/+24
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Show unique displayname context in the sharing inputJulius Härtl2021-01-052-23/+23
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix vsprint parameterRoeland Jago Douma2020-12-031-1/+1
| | | | | | | %2\$; is not valid. On php7 this is just ignored but on php8 it gives an error. %2\$s; works. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* set the display name of federated sharees from addressbookArthur Schiwon2020-11-253-9/+58
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Add unit tests for "validateExpirationDateInternal"Daniel Calviño Sánchez2020-11-161-0/+284
| | | | | | | They were copied and adjusted as needed from the tests for "validateExpirationDate". Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add explicit time to test date for clarityDaniel Calviño Sánchez2020-11-161-3/+5
| | | | | | | This shows in a clearer way that the expected expiration date is the original one, but without time. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add unit test for expiration date with date and with defaultDaniel Calviño Sánchez2020-11-161-0/+28
| | | | | | | This adds back what was being actually tested in the unit test fixed in the previous commit. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fix unit test for expiration date without date but with defaultDaniel Calviño Sánchez2020-11-161-7/+5
| | | | | | | | | The expiration date was explicitly given, so it was not testing what it should. Moreover, "link_defaultExpDays" needs to be mapped when testing the default value (even if it will just fallback to the value of "shareapi_expire_after_n_days"). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fix unit test method nameDaniel Calviño Sánchez2020-11-161-1/+1
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fix unit test for verifying enforced valid expiration date.Daniel Calviño Sánchez2020-11-161-0/+1
| | | | | | | The enforced expiration date was not actually enabled, as for that "shareapi_default_expire_date" needs to be explicitly set to "yes". Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fix unit test for verifying enforced expire date too far in the futureDaniel Calviño Sánchez2020-11-161-8/+5
| | | | | | | | | | | | The test should fail if no exception was thrown, and no exception was thrown due to a missing configuration parameter. However, the use of "addToAssertionCount(1)" made the test pass even if no exception was thrown and, therefore, to silently fail. Now the missing configuration parameter was added and the test will fail if the expected exception is not thrown. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add unit tests to enforce a relaxed default share expiration dateDaniel Calviño Sánchez2020-11-161-0/+21
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Remove wrong and misleading commentDaniel Calviño Sánchez2020-11-161-2/+0
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Remove extra spacesDaniel Calviño Sánchez2020-11-161-10/+6
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fix typo in variable nameDaniel Calviño Sánchez2020-11-161-129/+129
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fix typos in method namesDaniel Calviño Sánchez2020-11-161-9/+9
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Apply code style fixesMorris Jobke2020-11-112-1170/+1169
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add acceptance tests for reshares by link when resharing is disabledDaniel Calviño Sánchez2020-11-112-0/+110
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add acceptance tests for reshares when resharing is disabledDaniel Calviño Sánchez2020-11-113-0/+192
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>