зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1482395: [mozrelease] Fix product details links for beta and deveditions; r=sfraser
Differential Revision: https://phabricator.services.mozilla.com/D13225 --HG-- rename : python/mozrelease/test/data/Firefox-62.0b11.update.json => python/mozrelease/test/data/Firefox-64.0b13.update.json extra : moz-landing-system : lando
This commit is contained in:
Родитель
bd8fb7d9cf
Коммит
4e1d0da45a
|
@ -1,7 +1,7 @@
|
|||
[
|
||||
{
|
||||
"fields": {
|
||||
"detailsURL": "https://www.mozilla.org/%LOCALE%/firefox/62.0b11/releasenotes/",
|
||||
"detailsURL": "https://www.mozilla.org/%LOCALE%/firefox/64.0/releasenotes/",
|
||||
"type": "minor"
|
||||
},
|
||||
"for": {}
|
|
@ -27,8 +27,8 @@ DATA_PATH = Path(__file__).parent.joinpath('data')
|
|||
({
|
||||
'release-type': 'beta',
|
||||
'product': 'firefox',
|
||||
'version': GeckoVersion.parse('62.0b11'),
|
||||
}, 'whatsnew-62.0.3.yml', 'Firefox-62.0b11.update.json'),
|
||||
'version': GeckoVersion.parse('64.0'),
|
||||
}, 'whatsnew-62.0.3.yml', 'Firefox-64.0b13.update.json'),
|
||||
])
|
||||
def test_update_properties(context, config_file, output_file):
|
||||
with DATA_PATH.joinpath(config_file).open('r', encoding='utf-8') as f:
|
||||
|
|
|
@ -29,12 +29,15 @@ def generate_update_line(config, jobs):
|
|||
with open(config_file, "rb") as f:
|
||||
update_config = yaml.safe_load(f)
|
||||
|
||||
product = job['shipping-product']
|
||||
if product == 'devedition':
|
||||
product = 'firefox'
|
||||
job['worker']['update-line'] = {}
|
||||
for blob_type, suffix in [('wnp', ''), ('no-wnp', '-No-WNP')]:
|
||||
context = {
|
||||
'release-type': config.params['release_type'],
|
||||
'product': job['shipping-product'],
|
||||
'version': GeckoVersion.parse(release_config['version']),
|
||||
'product': product,
|
||||
'version': GeckoVersion.parse(release_config['appVersion']),
|
||||
'blob-type': blob_type,
|
||||
}
|
||||
job['worker']['update-line'][suffix] = generate_update_properties(
|
||||
|
|
Загрузка…
Ссылка в новой задаче