summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into implement_712Lukas Reschke2016-08-156-102/+163
|\
| * We have to mock the is_uploaded_file in the OC\Core\Controller namespaceRoeland Jago Douma2016-08-151-8/+10
| |
| * Fix mock call in AvatarControllerTestRoeland Jago Douma2016-08-151-12/+12
| |
| * Use generated URLLukas Reschke2016-08-151-1/+1
| |
| * Fix CheckSetupController testsLukas Reschke2016-08-151-60/+26
| |
| * Fix template testLukas Reschke2016-08-151-1/+1
| |
| * Fix tests for LoginControllerLukas Reschke2016-08-151-5/+4
| |
| * Add reference to current userLukas Reschke2016-08-151-0/+1
| |
| * Add new dependencyLukas Reschke2016-08-151-1/+7
| |
| * Don't use create mockLukas Reschke2016-08-151-14/+14
| | | | | | | | Not compatible with this PHPunit version
| * Use proper casingLukas Reschke2016-08-152-6/+4
| |
| * Use createMock instead of deprecated getMockLukas Reschke2016-08-111-12/+12
| |
| * Redirect users when already logged-in on login formLukas Reschke2016-08-111-0/+95
| |
* | Use MockBuilder instead of createMockLukas Reschke2016-08-159-33/+33
| | | | | | | | CI uses an older PHPUnit
* | Add unit testsLukas Reschke2016-08-1511-3/+1082
|/
* OCSController requires DataResponseRoeland Jago Douma2016-08-101-52/+5
| | | | | | The OCS Controller requires a DataResponse object to be returned. This means that all error handling will have to be done via exceptions thrown and handling in the middleware.
* Merge pull request #529 from nextcloud/vendor-maintenance-downgradeLukas Reschke2016-08-101-1/+12
|\ | | | | Allow downgrades of maintenance accross vendors
| * Allow downgrades of maintenance accross vendorsJoas Schilling2016-07-221-1/+12
| |
* | Merge pull request #691 from nextcloud/ocs_allow_all_old_routesLukas Reschke2016-08-091-7/+7
|\ \ | | | | | | Allow ocs/v2.php/cloud/... routes
| * | Allow ocs/v2.php/cloud/... routesRoeland Jago Douma2016-08-081-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | One of the possibilities of the old OCS API is that you can define the url yourself. This PR makes this possible again by adding an optional root elemenet to the route. Routes are thus: .../ocs/v2.php/<root>/<url> By default <root> = apps/<app> This will allow for example the provisioning API etc to be in ../ovs/v2/php/cloud/users
* | | Merge pull request #746 from nextcloud/jail-rootLukas Reschke2016-08-091-2/+11
|\ \ \ | | | | | | | | getJailedPath expects $path to have a trailing /
| * | | Adding test case for getPathById including a jailed cache where root is just ↵Thomas Müller2016-08-051-2/+11
| | | | | | | | | | | | | | | | empty
* | | | Hanlde Core and Settings app in AppFrameworkRoeland Jago Douma2016-08-081-0/+51
| |/ / |/| | | | | | | | | | | | | | 'core' and 'settings' are just apps but we treat them slightly different. Make sure that we construct the correct namespace so we can actually do automatic AppFramework stuff.
* | | Move Share backends to PSR-4 instead of using class path (#24941)Joas Schilling2016-08-051-2/+2
|/ /
* | Fix RepairUnmergedShares to not skip valid repair casesVincent Petry2016-08-031-2/+42
| | | | | | | | | | | | The repair step was a bit overeager to skip repairing so it missed the case where a group share exists without subshares but with an additional direct user share.
* | Add repair step for unmerged shares (WIP)Vincent Petry2016-08-031-0/+409
| |
* | We should properly check for 'true' instaed of the boolRoeland Jago Douma2016-08-011-1/+2
| |
* | Dark hackery to not always disable CSRF for OCS controllersRoeland Jago Douma2016-07-291-0/+55
| |
* | Merge pull request #556 from nextcloud/nextcloud-version-checkMorris Jobke2016-07-291-1/+3
|\ \ | | | | | | Allow apps to check for a given nextcloud version
| * | Translate the server version for nextcloudJoas Schilling2016-07-261-1/+3
| | |
* | | Support subdir in the OCS v2 endpointRoeland Jago Douma2016-07-271-0/+30
| | | | | | | | | | | | | | | | | | | | | We should check against the ending substring since people could run their nextcloud in a subfolder. * Added test
* | | fix enabled apps testsMorris Jobke2016-07-271-0/+5
| | |
* | | fix unit testsMorris Jobke2016-07-261-2/+2
| | |
* | | Add workflowengineMorris Jobke2016-07-261-2/+4
|/ /
* | Merge pull request #292 from nextcloud/recent-filesWilliam Bargent2016-07-251-4/+169
|\ \ | | | | | | Add "Recent" file listing
| * | use limit instead of since when listing recent filesRobin Appelman2016-07-221-7/+6
| | |
| * | fix testRobin Appelman2016-07-221-1/+4
| | |
| * | add recent files to node apiRobin Appelman2016-07-221-4/+167
| |/
* | Merge pull request #523 from Faldon/masterJoas Schilling2016-07-253-13/+13
|\ \ | | | | | | Renamed file logging
| * | Renamed test classes for file logging tests.Thomas Pulzer2016-07-222-3/+3
| | |
| * | Changed logtype to file instead of owncloud.Thomas Pulzer2016-07-223-10/+10
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | - Updated the config sample to point to log_type='file' - Renamed the Class for logfile logging to File in namespace 'OC\Log\'. Changed the occurrences of 'OC\Log\Owncloud' to 'OC\Log\File'. - Renamed the Class for log:file command to File in namespace 'OC\Core\Command\Log\File'. Changed registration of the command to use 'OC\Core\Command\Log\File'. - Changed default Syslog tag to Nextcloud - Retained backwards compatibility for configs with 'logtype' => 'owncloud' - Adjusted tests for the new file log. Closes #490.
* / Add testsRoeland Jago Douma2016-07-221-1/+35
|/
* Merge pull request #479 from nextcloud/add-bruteforce-throttlerLukas Reschke2016-07-215-25/+275
|\ | | | | Implement brute force protection
| * Mitigate race conditionLukas Reschke2016-07-202-9/+49
| |
| * Implement brute force protectionLukas Reschke2016-07-205-25/+235
| | | | | | | | | | | | | | | | | | Class Throttler implements the bruteforce protection for security actions in Nextcloud. It is working by logging invalid login attempts to the database and slowing down all login attempts from the same subnet. The max delay is 30 seconds and the starting delay are 200 milliseconds. (after the first failed login)
* | Merge pull request #476 from nextcloud/port-same-site-cookiesLukas Reschke2016-07-202-94/+431
|\ \ | | | | | | [master] Port Same-Site Cookies to master
| * | [master] Port Same-Site Cookies to masterLukas Reschke2016-07-202-94/+431
| |/ | | | | | | Fixes https://github.com/nextcloud/server/issues/50
* | Merge pull request #475 from nextcloud/ocs-middlewareRoeland Douma2016-07-201-0/+108
|\ \ | | | | | | Add OCS Middleware
| * | Add unit testsRoeland Jago Douma2016-07-201-0/+108
| |/
* | Merge pull request #471 from nextcloud/storage-fopenspecialcharsMorris Jobke2016-07-201-6/+20
|\ \ | |/ |/| Added storage tests for fopen with special chars