summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Only generate previews in powers of 4 and set minRoeland Jago Douma2018-10-311-8/+14
| | | | | | | | | | | | | | | Before we'd round up all preview request to their nearest power of two. This resulted still in a lot of possible images. Generating a lot of server load and taking up a lot of space. This moves it to previews to be powers of 4: 64, 256, 1024 and 4096 Also the first two powers are always skipped (4, 16) as it doesn't make sense to generate previews for that. We cache preview pretty agressively and I feel this is a better tradeoff. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #12089 from Rayn0r/masterDennis19932018-10-311-6/+14
|\ | | | | added possibility to disable autocomplete in login form
| * adapted automated test for autocomplete changesRayn0r2018-10-301-6/+14
| | | | | | | | Signed-off-by: Rayn0r <Andre.Weidemann@web.de>
* | Move ExpiredTokenException to the correct namespaceRoeland Jago Douma2018-10-302-5/+2
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #11899 from nextcloud/enhancement/noid/sharing-consolidationRoeland Jago Douma2018-10-302-21/+145
|\ \ | | | | | | Sharing user consolidation
| * | Fix injection to get the user idJulius Härtl2018-10-301-1/+11
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * | Add uuid/name entry to Remote/MailPlugin testsJulius Härtl2018-10-302-20/+104
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * | Make enhancing entries with type property optionalJulius Härtl2018-10-301-6/+30
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * | Filter out local users from address book remote searchesJulius Härtl2018-10-301-1/+7
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Add acceptance tests for hiding download in link sharesDaniel Calviño Sánchez2018-10-303-0/+127
| | | | | | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | Merge pull request #12036 from olivermg/masterMorris Jobke2018-10-301-0/+115
|\ \ \ | |/ / |/| | Add capability of specifying "trusted_proxies" entries in CIDR notation (IPv4)
| * | Adding handling of CIDR notation to trusted_proxies for IPv4Oliver Wegner2018-10-301-0/+115
| | | | | | | | | | | | Signed-off-by: Oliver Wegner <void1976@gmail.com>
* | | Merge pull request #12052 from ↵Morris Jobke2018-10-291-24/+28
|\ \ \ | | | | | | | | | | | | | | | | nextcloud/bugfix/11594/fix-setup-check-trusted-proxies Fix setup check trusted proxies
| * | | Update logic for forwardedForHeadersWorkingDaniel Kesselberg2018-10-251-24/+28
| | |/ | |/| | | | | | | | | | | | | | | | | | | As discussed in https://github.com/nextcloud/server/issues/11594 when discovering if x-forwarded-for is working properly its not possible to use getRemoteAddr because the "client ip" is returned. For this check the ip of the last hop would be required. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | | Merge pull request #12019 from nextcloud/icons-svg-api-fixesJohn Molakvoæ2018-10-291-2/+2
|\ \ \ | | | | | | | | Move svg api endpoint
| * | | Fix testsJulius Härtl2018-10-291-2/+2
| | | | | | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | | Move acceptance tests that crash the PHP built-in server to ApacheDaniel Calviño Sánchez2018-10-293-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The PHP built-in server can crash when certain actions are performed in Nextcloud (but although the crash is triggered by Nextcloud it does not seem to be a Nextcloud bug), which can lead to failures in the acceptance tests that would have otherwise passed. A crash of the PHP built-in server during an acceptance test can be identified by the message "sh: 1: kill: No such process" in the acceptance tests output; as the PHP built-in server crashed its process does no longer exist when it is tried to be killed when the scenario ends. Although the crash has been observed in other tests too it is more prevalent in the tests for tags and the theming app. In order to reduce the false positives those tests are now run on Apache instead of on the PHP built-in sever. However, the rest of tests are still run on the PHP built-in server due to its lower resource consumption. In order to run a feature or just a scenario using Apache it has to be tagged with "@apache"; features or scenarios without that tag (the default) will run on the PHP built-in server instead. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | | Link the default Apache directory to the Nextcloud server in all runnersDaniel Calviño Sánchez2018-10-292-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to run the acceptance tests in Apache "/var/www/html" has to be linked to the root directory of the Nextcloud server. Before this was automatically done when launching the acceptance tests through "./run.sh", but an explicit command was needed when run in Drone. Now the linking was moved from "run.sh" to "run-local.sh", so it is automatically done when run through "./run.sh" and in Drone, including when running the tests for an app instead of for the server. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | | Extract acceptance tests for tags to their own feature fileDaniel Calviño Sánchez2018-10-292-88/+89
|/ / / | | | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* / / Move the browser window of an actor to the foreground when acting as himDaniel Calviño Sánchez2018-10-262-0/+17
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Each time a new actor appears in a scenario the browser window of the new actor is put in front of the browser windows of the previous actors. Before, when acting again as a previous actor his browser window stayed in the background; in most cases everything worked fine even if the window was in the background, but due to a bug in the Firefox driver of Selenium and/or maybe in Firefox itself when the window was in the background it was not possible to set the value of an input field that had a range selected. Now, when acting again as a previous actor his browser window is brought to the foreground. This prevents the bug from manifesting, but also reflects better how a user would interact with the browser in real life. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* / Keep list of icons in a separate file for use in the accessibility appJulius Härtl2018-10-252-8/+10
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* skip already decrypted files on decrypt all commandBjoern Schiessle2018-10-241-10/+31
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Merge pull request #11396 from nextcloud/wellknown-webfingerMorris Jobke2018-10-241-0/+1
|\ | | | | adding .well-known/webfinger
| * adding .well-known/webfingerMaxence Lange2018-10-101-0/+1
| | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* | Merge pull request #11847 from iPaat/Fix/DeleteCookiesThroughClearSiteDataMorris Jobke2018-10-231-2/+2
|\ \ | | | | | | Remove cookies from Clear-Site-Data Header
| * | Remove cookies from Clear-Site-Data HeaderPatrick Conrad2018-10-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In https://github.com/nextcloud/server/commit/2f87fb6b456fd109c90a5093c31b7a3f62a32040 this header was introduced. The referenced documentation says: > When delivered with a response from https://example.com/clear, the following header will cause cookies associated with the origin https://example.com to be cleared, as well as cookies on any origin in the same registered domain (e.g. https://www.example.com/ and https://more.subdomains.example.com/). This also applies if `https://nextcloud.example.com/` sends the `Clear-Site-Data: "cookies"` header. This is not the behavior we want at this point! So I removed the deletion of cookies from the header. This has no effect on the logout process as this header is supported only recently and the logout works in old browsers as well. Signed-off-by: Patrick Conrad <conrad@iza.org>
* | | Merge pull request #11914 from nextcloud/csp/report-uriMorris Jobke2018-10-231-0/+15
|\ \ \ | | | | | | | | Add report-uri to CSP
| * | | Add report-uri to CSPRoeland Jago Douma2018-10-211-0/+15
| | | | | | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | | Merge pull request #11967 from ↵Morris Jobke2018-10-232-0/+88
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | nextcloud/fix-opening-a-section-again-in-the-files-app Fix opening a section again in the Files app
| * | | | Add acceptance tests for opening a section in the Files appDaniel Calviño Sánchez2018-10-212-0/+88
| |/ / / | | | | | | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | | Merge pull request #11932 from nextcloud/font-nunitoMorris Jobke2018-10-231-3/+3
|\ \ \ \ | | | | | | | | | | Change typeface to Nunito
| * | | | fixup! Fix comment and cap-heightJohn Molakvoæ (skjnldsv)2018-10-231-1/+1
| | | | | | | | | | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
| * | | | Fix comment and cap-heightJohn Molakvoæ (skjnldsv)2018-10-231-1/+1
| | | | | | | | | | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
| * | | | Use correct typeface for avatar generatorJan-Christoph Borchardt2018-10-231-3/+3
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* | | | | Update polyserve requirementdependabot[bot]2018-10-221-1/+1
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | Updates the requirements on [polyserve](https://github.com/Polymer/tools) to permit the latest version. - [Release notes](https://github.com/Polymer/tools/releases) - [Commits](https://github.com/Polymer/tools/commits/polyserve@0.27.13) Signed-off-by: dependabot[bot] <support@dependabot.com>
* | | | Fix js unit testsRoeland Jago Douma2018-10-191-0/+1
|/ / / | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Merge pull request #11711 from nextcloud/feature/backgroundjobs_ocpChristoph Wurst2018-10-192-57/+108
|\ \ \ | | | | | | | | Add proper backgroundjobs to OCP
| * | | fixup! fixup! Add backgroundjobs to OCPRoeland Jago Douma2018-10-092-57/+108
| | | | | | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | | Do not try to contact lookup server without internet connection or URLArthur Schiwon2018-10-181-21/+78
| | | | | | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | | Merge pull request #11839 from nextcloud/csp/files_dropRoeland Jago Douma2018-10-161-1/+2
|\ \ \ \ | | | | | | | | | | Move files_drop to compiled handlebars
| * | | | fixup! Move files_drop to compiled handlebarsRoeland Jago Douma2018-10-161-1/+2
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | | | Merge pull request #11830 from ↵Morris Jobke2018-10-161-0/+33
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | nextcloud/bugfix/9326/make_sure_usermanager_getByEmail_only_returns_IUser filter null values for UserManager::getByEmail
| * | | | | filter null values for UserManager::getByEmailGeorg Ehrke2018-10-151-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* | | | | | Merge pull request #11358 from Zulan/fix-welcome-l10nMorris Jobke2018-10-161-16/+14
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | Fix welcome l10n
| * | | | | Get l10n within NewUserMailHelper to ensure it always uses the new user's ↵zulan2018-10-151-16/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | language. Some related tests had to be changed because they relied on internals, see also from the PHPUnit documentation: "Exercise caution when using [the at] matcher as it can lead to brittle tests which are too closely tied to specific implementation details." Signed-off-by: Zulan <git@zulan.net>
* | | | | | Use IAccountManager constantsJulius Härtl2018-10-153-68/+67
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | | | | Add tests for new account api classesJulius Härtl2018-10-153-0/+253
| |_|_|/ / |/| | | | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | | | Merge pull request #11714 from nextcloud/lookupserver-and-global-scaleBjörn Schießle2018-10-151-2/+272
|\ \ \ \ \ | | | | | | | | | | | | always query the lookup server in a global scale setup
| * | | | | add more testsBjoern Schiessle2018-10-121-0/+231
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
| * | | | | some small fixes and improvementsBjoern Schiessle2018-10-101-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>