summaryrefslogtreecommitdiffstats
path: root/tests/lib/App/AppStore/Fetcher
Commit message (Collapse)AuthorAgeFilesLines
* AppFetcher: Distinguish between fileName and endpointNameGeorg Ehrke2020-01-121-1305/+1387
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Restore old behavior allowing to set custom appstoreGeorg Ehrke2019-12-222-1/+18
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Mode to modern phpunitRoeland Jago Douma2019-11-273-3/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-273-3/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* allow enforcing apps to ignore the max versionRoeland Jago Douma2019-03-201-10/+6
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix testsRoeland Jago Douma2018-05-142-2/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix version comparison with minor and patch level requirementsChristoph Wurst2018-04-111-6/+12
| | | | | | | | | | | If an app requires a specific minor or path level server version, the version_compare prevented the installation as only the major version had been compared and that checks obviously returns `false`. Now the full version is used for comparison, making it possible to release apps for a specific minor or patch level version of Nextcloud. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix testsRoeland Jago Douma2017-11-173-9/+67
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* 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>
* 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>
* Endpoint is now 11.0.0Lukas Reschke2016-11-151-1/+1
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Use new appstore APILukas Reschke2016-10-313-0/+323
This change introduces the new appstore API in Nextcloud. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>