aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* fix appinfo parsing when a single localized option is providedRobin Appelman2018-04-173-0/+29
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Provide an option to disable HTML emailsMorris Jobke2018-04-162-1/+53
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* dont keep shared database locks when running cli scriptsRobin Appelman2018-04-113-3/+105
| | | | | | For cli scripts we don't have the assumption that the universe will be cleaned up soon Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #9024 from nextcloud/fix/app-fetcher-major-minor-versionsMorris Jobke2018-04-112-6/+103
|\ | | | | Fix version comparison with minor and patch level requirements
| * Fix version comparison with minor and patch level requirementsChristoph Wurst2018-04-112-6/+103
| | | | | | | | | | | | | | | | | | | | | | If an app requires a specific minor or path level server version, the version_compare prevented the installation as only the major version had been compared and that checks obviously returns `false`. Now the full version is used for comparison, making it possible to release apps for a specific minor or patch level version of Nextcloud. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #7800 from Abijeet/bug-7281Morris Jobke2018-04-111-1/+2
|\ \ | | | | | | Fixes the usability issues with the comment section delete and edit
| * | Fixing failing test cases due to change in functionality.Abijeet2018-03-271-1/+2
| | | | | | | | | | | | | | | | | | Also fixes scrutinizer warnings. Signed-off-by: Abijeet <abijeetpatro@gmail.com>
* | | Merge pull request #8946 from nextcloud/log-exceptions-as-nested-array-2Morris Jobke2018-04-111-5/+20
|\ \ \ | | | | | | | | Log exceptions as nested array instead of encoded json
| * | | Log exceptions as nested array instead of encoded jsonRobin Appelman2018-04-101-5/+20
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | Merge pull request #9074 from nextcloud/ARGON2IMorris Jobke2018-04-111-36/+86
|\ \ \ \ | |_|_|/ |/| | | Add ARGON2I support to the hasher
| * | | Add ARGON2I support to the hasherRoeland Jago Douma2018-04-041-36/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When on php7.2 we can use the new and improved ARGON2I hashing. This adds support for that to the hasher. When verifying an old hash we'll update rehash to move all hashes eventually to the new hash function. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | | Set the default log rotate size to 100 MBMorris Jobke2018-04-111-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | | Merge pull request #9127 from ↵Morris Jobke2018-04-095-17/+162
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | nextcloud/make-possible-to-run-acceptance-tests-on-apache Make possible to run acceptance tests on Apache
| * | | | Rename helper for PHP built-in web serverDaniel Calviño Sánchez2018-04-092-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For consistency with the helper for the Apache web server the helper for the PHP built-in web server was renamed too. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * | | | Add helper to run acceptance tests on an Apache serverDaniel Calviño Sánchez2018-04-091-0/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The default and only helper to run acceptance tests run them on the PHP built-in web server. This commit introduces a new helper that can be used to run them on an Apache web server instead. This helper is meant to be used by the acceptance tests of apps that require a multi-threaded web server to run (like Talk, due to its use of long polling). To use the helper it is only needed to set it in the Behat configuration for the acceptance tests of the app, as explained in the "NextcloudTestServerContext" documentation. It is assumed that the acceptance tests are run using the default setup, and therefore inside a Docker container based on the image for acceptance tests from Nextcloud. Due to that the helper is expected to have root permissions, and thus it starts and stops the Apache web server directly using "service start/stop apache2". In the same way it also restores the owner and group for "apps", "config" and "data" to "www-data", as it is the user that Apache sub-processes are run as. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * | | | Add support for setting the domain also when a specific helper is usedDaniel Calviño Sánchez2018-04-091-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before, the domain was automatically added assuming that the NextcloudTestServerContext had no parameters defined in the Behat configuration. However, in order to use a helper for Apache it would need to be specified in the configuration with something like: - NextcloudTestServerContext: nextcloudTestServerHelper: NextcloudTestServerLocalApacheHelper The substitution now works both when a helper is specified and when it is not; note, however, that providing custom parameters to the helper is not supported, although they are not needed anyway so it is not really a problem. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * | | | Install and configure Nextcloud server as www-dataDaniel Calviño Sánchez2018-04-091-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apache sub-processes are run as the www-data user, and they need to be able to write to the "apps", "config" and "data" directories, so they have to belong to that user, and therefore the Nextcloud server has to be installed and configured too as the www-data user. The PHP built-in web server will still be run as the root user, but in that case the owner of those directories makes no difference, so this is compatible with both cases. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * | | | Use Docker image for acceptance testsDaniel Calviño Sánchez2018-04-091-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Docker image for acceptance tests provides support for both the PHP built-in web server and the Apache web server; the acceptance tests for the server are run on the PHP built-in web server, but the acceptance tests for some apps will have to be run on the Apache web server (for example, Talk, as it uses long polling), so a Docker image to support both cases has to be used in "run.sh". ".drone.yml" was just updated for consistency, although it was not really needed. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | | | Merge pull request #9111 from nextcloud/use-proper-bool-user-disabled-stateMorris Jobke2018-04-091-1/+1
|\ \ \ \ \ | |/ / / / |/| | | | Return proper boolean and do not save enabled state in db
| * | | | Fixed testsJohn Molakvoæ (skjnldsv)2018-04-091-1/+1
| | | | | | | | | | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | | | | Merge pull request #9114 from ↵Morris Jobke2018-04-094-11/+57
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | | | | | | nextcloud/make-possible-to-provide-acceptance-tests-for-apps Make possible to provide acceptance tests for apps
| * | | | Make possible to set the acceptance tests directory to useDaniel Calviño Sánchez2018-04-062-7/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the acceptance tests were run they were always loaded from the "tests/acceptance" directory of the Nextcloud server. Now it is possible to set the directory used to look for the Behat configuration and the Nextcloud installation script, which makes possible to run acceptance tests for the apps too instead of only for the server (although if no directory is explicitly given the tests for the server are the ones run). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * | | | Add context classes to Composer autoloadDaniel Calviño Sánchez2018-04-062-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to autoload the server context classes the "bootstrap" directory was explicitly listed in Behat autoload configuration. This is fine in the configuration of acceptance tests for the server, but it would force the configuration of acceptance tests for the apps to explicitly include the path for the server context classes to be able to use them (for example, for the login step). Besides with its own configuration Behat also supports autoloading classes using Composer, so now context classes are autoloaded using Composer instead; thanks to this the server context classes are autoloaded also in the acceptance tests for apps without any explicit configuration in them. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * | | | Fix typoDaniel Calviño Sánchez2018-03-271-1/+1
| | |_|/ | |/| | | | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | | Fix testsRoeland Jago Douma2018-04-061-17/+5
| |/ / |/| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Merge pull request #9084 from nextcloud/public-page-template-extendMorris Jobke2018-04-061-2/+2
|\ \ \ | | | | | | | | Public page template enhancements
| * | | Fix files acceptance testJulius Härtl2018-04-051-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * | | Move styling and menu handling to publicpage.jsJulius Härtl2018-04-051-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | | Ping more privacy respecting organizationsRoeland Jago Douma2018-04-051-4/+8
|/ / / | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | / Fix testsRoeland Jago Douma2018-04-041-0/+4
| |/ |/| | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #9018 from nextcloud/fix-copy-encrypted-filesBjörn Schießle2018-04-031-1/+1
|\ \ | | | | | | reset encryptionVersion to '1' if a file was stream copied
| * | reset encryptionVersion to '1' if a file was stream copied, because this ↵Bjoern Schiessle2018-04-031-1/+1
| | | | | | | | | | | | | | | | | | means that we basically write the file from scratch Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | | Use app version to generate scss filenameJohn Molakvoæ (skjnldsv)2018-03-281-12/+23
| |/ |/| | | | | | | | | Fixed scsscacher tests Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Fix testRoeland Jago Douma2018-03-221-1/+1
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #8506 from nextcloud/use-appmanagerMorris Jobke2018-03-221-3/+3
|\ \ | | | | | | Use isInstalled of AppManger instead of reimplement it
| * | Use isInstalled of AppManger instead of reimplement itMorris Jobke2018-03-211-3/+3
| | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | Migrate tests for contacts manager to correct test classMorris Jobke2018-03-212-130/+32
| | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | Merge pull request #7904 from nextcloud/fix_7224Morris Jobke2018-03-212-12/+12
|\ \ \ | | | | | | | | Add Cache-control: immutable
| * | | Add Cache-control: immutableRoeland Jago Douma2018-03-192-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cache generated CSS forever! Also cache combined JS forever Fix tests Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | | Show EOL warning in the update sectionJoas Schilling2018-03-201-0/+4
|/ / / | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Remove \OCP\Files::tmpFolderRoeland Jago Douma2018-03-192-3/+3
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Remove \OCP\Files::tmpFileRoeland Jago Douma2018-03-193-3/+3
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Merge pull request #8255 from nextcloud/bugfix/noid/group-display-nameblizzz2018-03-153-57/+155
|\ \ \ | | | | | | | | Full implement group display names
| * | | Fixed caldav tests and metadata 2John Molakvoæ (skjnldsv)2018-03-081-3/+3
| | | | | | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
| * | | Fix Metadata testsJohn Molakvoæ (skjnldsv)2018-03-081-1/+8
| | | | | | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
| * | | Fixed Controller TestJohn Molakvoæ (skjnldsv)2018-03-082-53/+144
| | | | | | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | | | Remove deprecated OCP\ContactsMorris Jobke2018-03-142-18/+23
| |/ / |/| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | Remove deprecated HTTPHelperRoeland Jago Douma2018-03-133-206/+0
| | | | | | | | | | | | | | | | | | | | | | | | * Remove the HTTP Helper * Remove from Server Containter * Removed legacy share tests that use it Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Merge pull request #8788 from nextcloud/cleanup-oc_apiMorris Jobke2018-03-131-115/+0
|\ \ \ | | | | | | | | Remove unused methods and constants from legacy OC_API
| * | | Remove unused methods and constants from legacy OC_APIMorris Jobke2018-03-121-115/+0
| | | | | | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>