aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Theming: theme flow redirection pageJulius Härtl2017-11-081-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Improve mimetype detection for object storagesMorris Jobke2017-11-061-0/+2
| | | | | | Object storage instances always fall back to the content based mimetype detection, because the file name for object storage was always random due to the fact that it was temporarily storage in a generated temp file. This patch adds a check before that to make sure to use the original file name for this purpose and also remove possible other extensions like the versioning or part file extension. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Provide tests for future timestamp formattingMorris Jobke2017-10-231-0/+9
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* fix urlBjoern Schiessle2017-10-171-2/+2
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Merge pull request #6737 from nextcloud/aws-sdk-12Robin Appelman2017-10-091-4/+17
|\ | | | | [12] Update aws sdk + s3 improvements
| * Add tests for multipart uploadRobin Appelman2017-10-091-4/+17
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | dont run invalid path repair step when upgrading from 11.0.5.2 and laterRobin Appelman2017-10-031-0/+30
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add filter for `shareapi_allow_share_dialog_user_enumeration`Lukas Reschke2017-09-181-32/+125
| | | | | | | | This adjusts the contacts menu to also support searching by email address which is relevant in scenarios where no UID is known such as LDAP, etc. Furthermore, if `shareapi_allow_share_dialog_user_enumeration` is disabled only results are shown that match the full user ID or email address. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add testsTobia De Koninck2017-09-181-0/+129
| | | | Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
* Fix testsTobia De Koninck2017-09-181-1/+19
| | | | Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
* Fix AppPassword 2FA authRoeland Jago Douma2017-09-121-1/+16
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Use the language of the recipient for the share notificationJoas Schilling2017-09-111-0/+11
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #6386 from nextcloud/12-6247Morris Jobke2017-09-071-0/+12
|\ | | | | [stable12] Fix undefined index oauthState
| * Fix testsMorris Jobke2017-09-061-0/+12
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #6319 from nextcloud/improve_2fa-12Roeland Jago Douma2017-09-061-17/+193
|\ \ | |/ |/| [stable12] Improve 2FA
| * Fix login with basic authRoeland Jago Douma2017-09-061-1/+5
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * Improve 2FARoeland Jago Douma2017-08-311-17/+189
| | | | | | | | | | | | | | | | * Store the auth state in the session so we don't have to query it every time. * Added some tests Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Fix testsMorris Jobke2017-09-052-2/+6
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Fix unit testsJoas Schilling2017-09-051-1/+1
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* add prefix to user and system keys to avoid name collisionsBjoern Schiessle2017-08-301-5/+5
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* extend the identity proof manager to allow system wide key pairsBjoern Schiessle2017-08-301-11/+62
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Inject \OCP\IURLGenerator to make tests workLukas Reschke2017-08-301-1/+11
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Properly allow \OCP\Authentication\IApacheBackend to specify logout URLLukas Reschke2017-08-302-5/+5
| | | | | | | | | | | | | | | | | | | | Any `\OCP\Authentication\IApacheBackend` previously had to implement `getLogoutAttribute` which returns a string. This string is directly injected into the logout `<a>` tag, so returning something like `href="foo"` would result in `<a href="foo">`. This is rather error prone and also in Nextcloud 12 broken as the logout entry has been moved with 054e161eb5f4a5c5c13ee322ae8e93ce66f01b13 inside the navigation manager where one cannot simply inject attributes. Thus this feature is broken in Nextcloud 12 which effectively leads to the bug described at nextcloud/user_saml#112, people cannot logout anymore when using SAML using SLO. Basically in case of SAML you have a SLO url which redirects you to the IdP and properly logs you out there as well. Instead of monkey patching the Navigation manager I decided to instead change `\OCP\Authentication\IApacheBackend` to use `\OCP\Authentication\IApacheBackend::getLogoutUrl` instead where it can return a string with the appropriate logout URL. Since this functionality is only prominently used in the SAML plugin. Any custom app would need a small change but I'm not aware of any and there's simply no way to fix this properly otherwise. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Enable object storage tests againMorris Jobke2017-08-171-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add acceptance tests for setting the color in the Theming appDaniel Calviño Sánchez2017-08-103-0/+178
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add getter for the timeout multiplierDaniel Calviño Sánchez2017-08-101-0/+9
| | | | | | | | | In some cases the acceptance tests have to explicitly wait for something to happen without using the "find" method from the actor; in those cases the timeout multiplier needs to be taken into account too, so the test cases must be able to retrieve it from the actor. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Merge pull request #5946 from nextcloud/12-5897Morris Jobke2017-08-081-7/+40
|\ | | | | [stable12] Send an email once a file/folder is shared with a user
| * Send an email once a file/folder is shared with a userMorris Jobke2017-08-011-7/+40
| | | | | | | | | | | | | | * only if user has set an email address * only for user shares (no group shares for now) Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Fix last failures with oracleJoas Schilling2017-08-032-3/+8
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix querybuilder and functionbuilder testsJoas Schilling2017-08-032-25/+33
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Can not insert auto increment on oracleJoas Schilling2017-08-032-43/+48
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix missing escape on column and table nameJoas Schilling2017-08-031-1/+1
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add new bundleLukas Reschke2017-07-262-0/+46
| | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch> Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unneeded stylesMorris Jobke2017-07-244-5/+5
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Adjust to height=120Lukas Reschke2017-07-244-5/+5
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* add tests for renaming paths with multibyte utf8 charactersRobin Appelman2017-07-221-36/+38
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #5786 from nextcloud/path-repair-steps-storage-12Morris Jobke2017-07-211-0/+34
|\ | | | | [12] Also repair storage id's when repairing invalid entries
| * Also repair storage id's when repairing invalid entriesRobin Appelman2017-07-191-0/+34
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Add option to acceptance test runner to set the Selenium serverDaniel Calviño Sánchez2017-07-201-1/+40
| | | | | | | | | | | | | | | | By default "127.0.0.1:4444" is used, so nothing needs to be set when the acceptance tests and the Selenium server share the same network (like when called by "run.sh"). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Add option to acceptance test runner to set the Nextcloud server domainDaniel Calviño Sánchez2017-07-202-1/+45
| | | | | | | | | | | | | | | | | | | | | | | | By default "127.0.0.1" is used, so nothing needs to be set when the Selenium server and the Nextcloud test server share the same network (like when called by "run.sh"). Besides passing the domain to the acceptance tests the Nextcloud test server configuration must be modified to see the given domain as a trusted domain; otherwise the access would be forbidden. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Make possible to configure the domain for the Nextcloud test serverDaniel Calviño Sánchez2017-07-201-6/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | The NextcloudTestServerLocalHelper started the PHP built-in web server for the Nextcloud test server at 127.0.0.1; as the Selenium server has to access the Nextcloud test server they were forced to share the same network. Now, the domain at which the PHP built-in web server is started can be specified when the NextcloudTestServerLocalHelper is created, which removes the need of sharing the same network, as the Selenium server now can access the Nextcloud test server at an arbitrary domain. However, by default "127.0.0.1" is still used if no domain is given. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Fix emitting of legacy hook post_unsharePauli Järvinen2017-07-191-1/+1
|/ | | | | | - When a file was unshared, the legacy hook pre_unshare fired twice and the hook post_unshare did not fire at all. This was obviously a copy-paste error. Signed-off-by: Pauli Järvinen <pauli.jarvinen@gmail.com>
* Fix droneMorris Jobke2017-07-142-7/+7
| | | | | | | | | Fix service container host name check current folder fix redis for integration test Fix more hostnames Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #5710 from nextcloud/nested-permissions-mask-12Morris Jobke2017-07-131-0/+15
|\ | | | | [12] Fix scan permissions with nested permissions masks
| * Fix scan permissions with nested permissions masksRobin Appelman2017-07-131-0/+15
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #5655 from nextcloud/moveFromCache-from-shared-12Morris Jobke2017-07-132-0/+205
|\ \ | | | | | | [12] fix moving folders out of a cache jail
| * | chunk getting invalid paths and reuse queriesRobin Appelman2017-07-131-0/+38
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | adjust to moved repair stepRobin Appelman2017-07-131-2/+8
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | Add repair step for invalid pathsRobin Appelman2017-07-131-0/+111
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | fix moving folders out of a cache jailRobin Appelman2017-07-131-0/+50
| |/ | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>