summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #9632 from nextcloud/enhancement/stateful-2fa-providersMorris Jobke2018-06-257-172/+508
|\ | | | | Stateful 2fa providers
| * Make new classes strict and fix license headerChristoph Wurst2018-06-253-4/+22
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
| * Make 2FA providers statefulChristoph Wurst2018-06-207-172/+490
| | | | | | | | | | | | | | | | | | | | | | This adds persistence to the Nextcloud server 2FA logic so that the server knows which 2FA providers are enabled for a specific user at any time, even when the provider is not available. The `IStatefulProvider` interface was added as tagging interface for providers that are compatible with this new API. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #9526 from Blaok/files-scan-shallowRobin Appelman2018-06-251-0/+31
|\ \ | | | | | | allow shallow (non-recursive) scan when scanning file storage
| * | test: add unit test for files:scan --shallowBlaok2018-05-181-0/+31
| | | | | | | | | | | | Signed-off-by: Yuze Chi <i@blaok.me>
* | | Fix documentationDaniel Calviño Sánchez2018-06-221-2/+2
| | | | | | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | Set "wd_host" directly in "behat.yml" instead of through "BEHAT_PARAMS"Daniel Calviño Sánchez2018-06-222-29/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The "wd_host" parameter of Selenium2 sessions specify the URL used by the Selenium driver to connect with the Selenium server. Thus, when the Selenium server is at a different host or port than the default one (for example, when run on Drone) the "wd_host" parameter must be set for each of the Selenium2 sessions defined in "behat.yml". The "BEHAT_PARAMS" environment variable, which extends the "behat.yml" configuration file, was used for that. However, this required adding to the "BEHAT_PARAMS" in "run-local.sh" each new session added to "behat.yml", including those added in the acceptance tests of apps. To address that limitation, this commit introduces a simulated variable, "selenium.server"; just before the acceptance tests are run the "selenium.server" variable in the "wd_host" parameter is replaced in the "behat.yml" file used by the acceptance tests. Note that the file that is modified is the one inside the Docker container used to run the acceptance tests, so the original file is not touched. Note that a simulated variable is needed because Behat does not support overridding nor setting configuration parameters with environment variables. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | prefill userid for login after password resetRobin Appelman2018-06-211-1/+1
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #9518 from ↵Roeland Jago Douma2018-06-214-2/+550
|\ \ \ | | | | | | | | | | | | | | | | nextcloud/feature/5986/public_share_controller_middleware Public share middleware & controller
| * | | Fix acceptance testRoeland Jago Douma2018-06-201-2/+2
| | | | | | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * | | Fix direct access to authen pageRoeland Jago Douma2018-06-201-0/+2
| | | | | | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * | | Add AuthPublicShareControllerTestRoeland Jago Douma2018-06-201-0/+157
| | | | | | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * | | Add PublicShareControllerTestsRoeland Jago Douma2018-06-201-0/+102
| | | | | | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * | | Add PublicShareMiddlewareTestRoeland Jago Douma2018-06-201-0/+287
| | |/ | |/| | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Adjust theming acceptance tests to new header colour transitionDaniel Calviño Sánchez2018-06-202-10/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before, the acceptance tests checked the header colour just once, as the header colour was immediately changed once the new theming colour was saved. This is no longer the case, as currently a transition is used to change between the original colour and the new one, so now the acceptance tests check repeteadly for the expected header colour until it matches or the timeout expires. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | Fixed tests and improved app-navigation-captionJohn Molakvoæ (skjnldsv)2018-06-201-1/+1
| | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | | Merge pull request #9900 from nextcloud/feature/noid/wait-for-cron-to-finishMorris Jobke2018-06-201-1/+8
|\ \ \ | |/ / |/| | Wait for cron to finish before running upgrade command
| * | Wait for cron to finish before running upgrade commandMorris Jobke2018-06-191-1/+8
| | | | | | | | | | | | | | | | | | * fixes #9562 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | Fix testsMorris Jobke2018-06-191-3/+7
| | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | Merge pull request #9881 from nextcloud/user-db-backend-querybuilderMorris Jobke2018-06-191-0/+10
|\ \ \ | | | | | | | | use query builder in all places in the db user backend
| * | | Add count to function builderRobin Appelman2018-06-141-0/+10
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | Use constant for token versionRoeland Jago Douma2018-06-183-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | And don't set the version in the constructor. That would possible cause to many updates. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | | Add more testsRoeland Jago Douma2018-06-184-31/+492
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add a lot of tests * Fixes related to those tests * Fix tests Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | | SetPassword on PublicKeyTokensRoeland Jago Douma2018-06-182-12/+19
| | | | | | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | | Just pass uid to the Token stuffRoeland Jago Douma2018-06-182-34/+6
| | | | | | | | | | | | | | | | | | | | | | | | We don't have user objects in the code everywhere Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | | Add first testsRoeland Jago Douma2018-06-183-0/+775
| |/ / |/| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Tests fixJohn Molakvoæ (skjnldsv)2018-06-151-5/+5
| | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | | Merge pull request #9197 from nextcloud/fix-avatar-centerMorris Jobke2018-06-151-0/+36
|\ \ \ | | | | | | | | Fix avatar generator centering
| * | | Removed old route, fix tests and fix var typeJohn Molakvoæ (skjnldsv)2018-06-131-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
| * | | Avatar imagick bumpJohn Molakvoæ (skjnldsv)2018-06-132-49/+11
| | | | | | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
| * | | Added new testsJohn Molakvoæ (skjnldsv)2018-06-131-0/+36
| | | | | | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
| * | | Controller tests fixesJohn Molakvoæ (skjnldsv)2018-06-131-10/+48
| |/ / | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | | Fix HTTP client given options being overriden by default optionsDaniel Calviño Sánchez2018-06-141-0/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | According to the array_merge documentation, "If the input arrays have the same string keys, then the later value for that key will overwrite the previous one." Thus, the default options must be the first parameter passed to array_merge. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | Merge all setup checks into one controllerMorris Jobke2018-06-131-11/+74
|/ / | | | | | | | | | | * renamed hasMissingIndexes to missingIndexes Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge tips & tricks section into setup checksMorris Jobke2018-06-134-99/+14
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Fixed testsJohn Molakvoæ (skjnldsv)2018-06-121-2/+2
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Merge pull request #9810 from nextcloud/tests/9769/apps-management-acceptanceJohn Molakvoæ2018-06-115-1/+340
|\ \ | | | | | | Acceptance tests for apps management and minor fixes
| * | Properly check for the sidebarJulius Härtl2018-06-092-3/+26
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * | Add basic acceptance tests for apps managementJulius Härtl2018-06-095-1/+317
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Add another testMario Danic2018-06-081-1/+3
| | | | | | | | | | | | Signed-off-by: Mario Danic <mario@lovelyhq.com>
* | | Add a new regex testMario Danic2018-06-081-1/+3
|/ / | | | | | | Signed-off-by: Mario Danic <mario@lovelyhq.com>
* | Allow 0 quota by provisioning apiJohn Molakvoæ (skjnldsv)2018-06-071-1/+10
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Merge pull request #9565 from nextcloud/feature/noid/app-settingsMorris Jobke2018-06-061-35/+28
|\ \ | | | | | | Migrate apps management to Vue.js
| * | Fix AppSettingsControllerTestJulius Härtl2018-06-061-4/+8
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * | Cleanup controller codeJulius Härtl2018-06-061-35/+24
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Add a hint that some indexes are not added yetMorris Jobke2018-06-061-3/+14
|/ / | | | | | | | | | | | | | | | | * gives the admin a chance to discover the missing indexes and improve the performance of the instance without digging through the manual * nicely integrated in the setup checks where this kind of hints belong to * also adds an option to integrate this from an app based on events * fix style of setting warnings Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #9483 from nextcloud/azure-blobMorris Jobke2018-06-042-0/+50
|\ \ | | | | | | add azure object storage backend
| * | add azure unit tests with azuriteRobin Appelman2018-06-042-0/+50
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Move caching logic to responseRoeland Jago Douma2018-06-041-2/+12
|/ / | | | | | | | | | | | | | | | | | | This avoids having to do it at all the places we want cached responses. We can't inject the ITimeFactor without breaking public API. However we can perfectly overwrite the service (resulting in the same testable effect). Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Make sure the file is readable before attempting to create a previewRoeland Jago Douma2018-05-301-0/+20
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>