mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-09 19:10:42 +00:00
Bug 1638073 - Update conftest for 'tps' to use current (firefoxci) api urls
This commit is contained in:
parent
751ec6d9eb
commit
4bf04142ba
@ -45,11 +45,11 @@ def tps_addon(pytestconfig, tmpdir_factory):
|
|||||||
path = pytestconfig.getoption('tps')
|
path = pytestconfig.getoption('tps')
|
||||||
if path is not None:
|
if path is not None:
|
||||||
return path
|
return path
|
||||||
task_url = 'https://index.taskcluster.net/v1/task/' \
|
task_url = 'https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/' \
|
||||||
'gecko.v2.mozilla-central.latest.firefox.addons.tps'
|
'gecko.v2.mozilla-central.latest.firefox.addons.tps'
|
||||||
task_id = requests.get(task_url).json().get('taskId')
|
task_id = requests.get(task_url).json().get('taskId')
|
||||||
cache_dir = str(pytestconfig.cache.makedir('tps-{}'.format(task_id)))
|
cache_dir = str(pytestconfig.cache.makedir('tps-{}'.format(task_id)))
|
||||||
addon_url = 'https://queue.taskcluster.net/v1/task/' \
|
addon_url = 'https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/' \
|
||||||
'{}/artifacts/public/tps.xpi'.format(task_id)
|
'{}/artifacts/public/tps.xpi'.format(task_id)
|
||||||
scraper = DirectScraper(addon_url, destination=cache_dir)
|
scraper = DirectScraper(addon_url, destination=cache_dir)
|
||||||
return scraper.download()
|
return scraper.download()
|
||||||
|
Loading…
Reference in New Issue
Block a user