summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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-211-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>
* Log and continue when failing to update encryption keys during for ↵Julius Härtl2021-04-011-13/+17
| | | | | | individual files Signed-off-by: Julius Härtl <jus@bitgrid.net>
* 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>
* Merge pull request #26258 from nextcloud/backport/26198/stable20Roeland Jago Douma2021-03-301-108/+202
|\ | | | | [stable20] Handle limit offset and sorting in files search
| * handle ordering in folder searchRobin Appelman2021-03-241-20/+34
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * folder filtering in sqlRobin Appelman2021-03-241-1/+0
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * cleanup fileinfo creationRobin Appelman2021-03-241-60/+30
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * handle limit and offset in folder file searchRobin Appelman2021-03-241-41/+157
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * only require user to be set in a query that handles tagsRobin Appelman2021-03-241-16/+11
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #26275 from nextcloud/backport/26265/stable20Morris Jobke2021-03-247-8/+17
|\ \ | |/ |/| [stable20] Fix casing of core test folder, bring back missing tests
| * Revert "Fix core tests command for app enabling/disabling"Vincent Petry2021-03-242-17/+17
| | | | | | | | | | | | This reverts commit acfffcc6857145c98b152dada542ae8dca57947c. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
| * Revert autocomplete controller tests to match stable20Vincent Petry2021-03-241-8/+8
| | | | | | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
| * Revert controller tests to match stable21 APIVincent Petry2021-03-242-12/+12
| | | | | | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
| * Fix language codes test result orderVincent Petry2021-03-241-0/+1
| | | | | | | | | | | | Fixes issue with Oracle by enforcing the order of the results to check. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
| * Bring back forgotten testsVincent Petry2021-03-245-5/+5
| | | | | | | | | | | | | | | | Remove "ocs-provider" test folder reference as it doesn't exist any more. Added back "Test" test subdir and fixed the tests inside. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
| * Fix more controller tests in Core subdirVincent Petry2021-03-242-8/+10
| | | | | | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
| * Fix more tests in the Core subdirVincent Petry2021-03-243-13/+20
| | | | | | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
| * Fix core tests command for app enabling/disablingVincent Petry2021-03-242-17/+17
| | | | | | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
| * Fix casing of core test folderVincent Petry2021-03-241-2/+1
| | | | | | | | | | | | | | | | It seems Phpunit < 9 was case insensitive. Fixed the phpunit config to target the correct name for the "Core" test directory. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | Include additional scripts in Noto fontsDaniel Calviño Sánchez2021-03-221-0/+0
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Generated avatars as well as text file previews are rendered using the "core/fonts/NotoSans-Regular.ttf" font. The file was the standard hinted "NotoSans-Regular.ttf" file from https://www.google.com/get/noto/. However that file does not cover some non LGC (Latin, Greek, Cyrillic) scripts, like Arabic, Devanagari or Hebrew, to name a few. Markdown file previews also use "core/fonts/NotoSans-Bold.ttf", which is in the same situation as the regular one. Due to limitations in the TTF format it is not possible to provide a single file for each style that includes all Noto fonts. However, it is possible to add more scripts to the standard "NotoSans-Regular.ttf" and "NotoSans-Bold.ttf" files (although no CJK (Chinese, Japanese, Korean) glyph can be included due to the aforementioned limitations). This commit replaces the standard files with an extended version created using the Noto Tools. The build script (as well as a patch for the Noto Tools) is also included for reference and to be able to update the font files in the future if needed. Due to the additional scripts added the font files are now much larger, although this does not seem to increase the time spent rendering LGC scripts. Note that the file for the bold style still contains less scripts than the regular one, as not all scripts supported by Noto have a bold weight. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* expand 'path is already shared' error messageRobin Appelman2021-03-191-4/+13
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* 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 #26123 from nextcloud/backport/26004/stable20Roeland Jago Douma2021-03-181-19/+35
|\ | | | | [stable20] Allow overwriting isAuthenticated
| * Allow overwriting isAuthenticatedRoeland Jago Douma2021-03-151-19/+35
| | | | | | | | | | | | | | * Some implementations might check for different things * IT will not change how the current ones work Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #26091 from nextcloud/backport/25722/stable20Morris Jobke2021-03-171-0/+24
|\ \ | | | | | | [stable20] 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>
* Find directly the label instead of falling back to itDaniel Calviño Sánchez2021-03-081-8/+1
| | | | | | | | The input element is always hidden, so the check always ended falling back to the label. Moreover, the label is the element that the user interacts with, so it must be the one used. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Assert also element visibility instead of just finding itDaniel Calviño Sánchez2021-03-081-4/+12
| | | | | | | | Although if the element could not be found an exception would be thrown and the test aborted if an element is in the DOM but hidden it would be found and the test would pass. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add explicit locator for "Enable all" bundle buttonDaniel Calviño Sánchez2021-03-081-5/+7
| | | | | | | | | | | Instead of looking for the bundle button and then checking its value now the expected value is included in the locator and the button is checked similarly to other elements. No "Disable all" locator was added as it was not currently needed anywhere. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Find elements through the actor rather than the driverDaniel Calviño Sánchez2021-03-081-4/+30
| | | | | | | | | | "Actor::find" is a more robust way to look for elements, as it handles some exceptions that may be thrown. Therefore, even if the elements are not actually used and it is only checked whether they exist or not using the actor is the preferred way when possible (and it also makes it consistent with the rest of the acceptance tests). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add locator for apps listDaniel Calviño Sánchez2021-03-081-4/+16
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fix identationDaniel Calviño Sánchez2021-03-081-14/+14
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fix delete user acceptance testDaniel Calviño Sánchez2021-03-082-1/+2
| | | | | | | | | | | | | Adding some missing asserts showed that the "delete user" acceptance test was silently failing, as the deletion was not being confirmed in the dialog and thus the user was not being deleted. The dialog button contains a single quote ("user0's"), so the XPath expression had to be adjusted (it seems that it is not possible to escape a single quote in a string enclosed in single quotes in XPath 1.0). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Verify WaitFor::element... results with an assertionDaniel Calviño Sánchez2021-03-085-11/+74
| | | | | | | | WaitFor::element... calls only perform the waiting and return whether the condition succeeded or not, but that result needs to be explicitly checked to prevent further steps from being executed if the wait failed. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add missing waits when finding elements in the acceptance testsDaniel Calviño Sánchez2021-03-083-7/+7
| | | | | | | | As no timeout was specified the elements were tried to be found just once. This caused the steps to fail if the elements did not appear yet in the page when they were tried to be found. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Send emails on password reset to the displaynameJoas Schilling2021-02-181-3/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* compatibility to Nc 20Arthur 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-171-3/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* add repair job for unencoded calendarsArthur Schiwon2021-02-171-0/+197
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Fix CI branch for notifications appVincent Petry2021-02-051-1/+1
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix app fetcher php comparison to allow wider rangesChristoph Wurst2021-01-271-0/+8
| | | | | | | | | | | When app app specifies php 7.4 as upper limit we have to allow the installation on php>7.4.0. The previous version check didn't do that. This adjusts the regexes to discard any irrelevant suffix after the three version numbers so that we can use more fine granular checks than php's version_compare can do out of the box, like for php 7.4 we only compare the major and minor version numbers and ignore the patch level. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* 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>
* DB: warn on parameter number constraintsArthur Schiwon2021-01-141-6/+82
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>