summaryrefslogtreecommitdiffstats
path: root/tests/lib/App/AppStore/Fetcher/FetcherBase.php
Commit message (Collapse)AuthorAgeFilesLines
* fix: Fetch custom app store url without internet connectionJulius Härtl2024-03-041-3/+6
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Adapt tests to config value typingCôme Chilliet2023-04-051-66/+34
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Remove at matcher uses in tests/libCôme Chilliet2022-06-161-107/+96
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix unit testsJoas Schilling2021-10-211-27/+41
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Send the subscription key to the appstore requestsJohn Molakvoæ2021-10-141-0/+4
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Fix unit testsJoas Schilling2021-04-271-3/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Only retry fetching app store data once every 5 minutes in case it failsJulius Härtl2020-10-161-75/+36
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-121-6/+6
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Increase timeout of the appstore requestsJoas Schilling2020-06-121-3/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Revert "Compress the appstore requests by default"Morris Jobke2020-05-201-42/+5
| | | | | | This reverts commit 6ffde128ad17a1ebe38f8d18b21a37d01b47c46b. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Compress the appstore requests by defaultMorris Jobke2020-05-201-5/+42
| | | | | | In test it reduced the transfered data from 5 MB to 2 MB. This should reduce the load on the appstore significantly. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Cache appstore requests for 60 instead of 5 minutesMorris Jobke2020-05-201-7/+7
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use elseif instead of else ifChristoph Wurst2020-04-101-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Restore old behavior allowing to set custom appstoreGeorg Ehrke2019-12-221-0/+15
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Mode to modern phpunitRoeland Jago Douma2019-11-271-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-271-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix testsRoeland Jago Douma2018-05-141-1/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix testsRoeland Jago Douma2017-11-171-3/+23
| | | | 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-121-0/+4
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Automatic injection into the FetchersJoas Schilling2017-05-101-0/+8
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* 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-241-2/+127
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add ETag validation to appstore requestsRoeland Jago Douma2017-01-051-5/+160
| | | | | | | | | | * 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-151-6/+128
| | | | | | | | | * Add version to cached json * Compare version * Updated calls * Updated tests Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Loop for newest version in appstore responseLukas Reschke2016-11-241-1/+0
| | | | | | | | | | 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>
* Use new appstore APILukas Reschke2016-10-311-0/+246
This change introduces the new appstore API in Nextcloud. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>