Commit 4bf04142 authored by Justin Wood's avatar Justin Wood Committed by Emily Kager
Browse files

Bug 1638073 - Update conftest for 'tps' to use current (firefoxci) api urls

parent 751ec6d9
......@@ -45,11 +45,11 @@ def tps_addon(pytestconfig, tmpdir_factory):
path = pytestconfig.getoption('tps')
if path is not None:
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'
task_id = requests.get(task_url).json().get('taskId')
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)
scraper = DirectScraper(addon_url, destination=cache_dir)
return scraper.download()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment