summaryrefslogtreecommitdiffstats
path: root/tests/lib/App
Commit message (Collapse)AuthorAgeFilesLines
* Add new bundleLukas Reschke2017-07-262-0/+46
| | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch> Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix tests of CodeChecker and MigrationServiceJoas Schilling2017-07-054-7/+14
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Version and dependency are now requiredJoas Schilling2017-05-221-4/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix testsLukas Reschke2017-05-201-4/+8
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Merge pull request #4825 from nextcloud/add-timeout-appstoreLukas Reschke2017-05-121-1/+5
|\ | | | | Add timeout for requests to appstore
| * Fix failed assertionsJoas Schilling2017-05-121-1/+5
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix unit testsJoas Schilling2017-05-123-2/+12
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Automatic injection into the FetchersJoas Schilling2017-05-103-3/+18
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix testRoeland Jago Douma2017-05-021-20/+10
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix and update testsRoeland Jago Douma2017-05-021-65/+116
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add SocialSharingBundleLukas Reschke2017-04-262-0/+42
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add spreed to Groupware bundleLukas Reschke2017-04-261-0/+1
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add tests for bundle codeLukas Reschke2017-04-265-0/+250
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* createMockJoas Schilling2017-03-201-24/+8
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix the testJoas Schilling2017-03-201-34/+46
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Don't use a generic exceptionJoas Schilling2017-03-201-3/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Improve the test caseMorris Jobke2017-03-201-4/+7
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* checking if app exists in the FileStream nownoveens2017-03-201-4/+18
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix unit tests and improve appstore logicMorris Jobke2017-02-243-4/+176
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add ETag validation to appstore requestsRoeland Jago Douma2017-01-052-5/+164
| | | | | | | | | | * If the ETag if present store it * If a stored ETag is present then pass it along (with the original response) to get * Add tests * Added files to classmap Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Clear appstore cache on version upgradeRoeland Jago Douma2016-12-153-7/+131
| | | | | | | | | * Add version to cached json * Compare version * Updated calls * Updated tests Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Use the mocked config versionJoas Schilling2016-12-141-5/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Exclude pre-release versions as per SemVerLukas Reschke2016-11-251-18/+38
| | | | | | | | As SemVer can be used apps could define a release like "10.0.0-alpha". This is something that we don't support at the moment in the server and we should filter all prereleases. Ref https://github.com/nextcloud/server/pull/2307#issuecomment-262911588 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Loop for newest version in appstore responseLukas Reschke2016-11-242-4/+1861
| | | | | | | | | | The current implementation when fetching apps from the appstore is to assume that the first element is the newest version, this is now always applicable and leads to the fact that for some apps (e.g. nextant) the newest version is not delivered. This can be easily tested by comparing the version of the downloaded Nextant version. This change will loop over all releases delivered by the appstore and chooses the newest compatible one. While not the cleanest solution, it does its job. Most of the code are actually unit tests. Whereas I have copied the whole original response from the appstore and also have performed the transformation. So that's why the diff looks so huge. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* push public user data to the lookup serverBjoern Schiessle2016-11-211-0/+4
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Expose getAppPath to public APIJulius Haertl2016-11-171-0/+10
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Endpoint is now 11.0.0Lukas Reschke2016-11-151-1/+1
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Adjust previous fallbacksLukas Reschke2016-11-151-2/+14
| | | | | | 11.0 is 11 and not 9.2 anymore Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add tests for installer methodLukas Reschke2016-10-311-0/+8
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add update supportLukas Reschke2016-10-311-14/+213
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Use substr and explode instead of a regexLukas Reschke2016-10-311-0/+7
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Use new appstore APILukas Reschke2016-10-315-0/+444
| | | | | | This change introduces the new appstore API in Nextcloud. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Merge pull request #1452 from nextcloud/appconfig-endpointJoas Schilling2016-10-251-1/+13
|\ | | | | Appconfig endpoint
| * Make AppConfig part of the public APIJoas Schilling2016-10-211-1/+13
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | App dependencies are now analysed on app enable as well - not only on app ↵Thomas Müller2016-10-241-26/+30
|/ | | | install.
* Ensure $commands being an array - fixes #26073Thomas Müller2016-10-201-0/+1
|
* use short array syntaxMorris Jobke2016-10-201-7/+7
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Cache AppInfo in Memory Cache if configuredLukas Reschke2016-10-071-11/+25
| | | | | | | | This saves around 20ms on a bare-bone instance, on bigger ones more (depending on the number of installed apps). See https://blackfire.io/profiles/compare/fc326ad3-100d-49b8-8ea9-8343240f53f3/graph Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Don't parse info.xml but reuse already cached app infos - fixes #25603 (#25968)Thomas Müller2016-10-072-17/+4
| | | | | | | | * Don't parse info.xml but reuse already cached app infos - fixes #25603 * Use === in InfoParser. Fixes test * InfoParser should not depend on UrlGenerator - fixes issue with session being closed too early
* increase core version number to trigger db ugprade and fix app manager testsChristoph Wurst2016-09-051-2/+14
|
* 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
| |
* | Add workflowengineMorris Jobke2016-07-261-2/+4
|/
* Cleanup ManagerTestRoeland Jago Douma2016-07-141-12/+32
| | | | | * Fix deprecated getMock call * No longer requires DB
* fix unit testsMorris Jobke2016-06-201-3/+3
|
* Move tests/ to PSR-4 (#24731)Joas Schilling2016-05-2010-0/+1242
* Move a-b to PSR-4 * Move c-d to PSR-4 * Move e+g to PSR-4 * Move h-l to PSR-4 * Move m-r to PSR-4 * Move s-u to PSR-4 * Move files/ to PSR-4 * Move remaining tests to PSR-4 * Remove Test\ from old autoloader