Bug 960571: Switch downloads from http://ftp.mozilla.org to https://ftp-ssl.mozilla.org r=aki
--- a/mozharness/mozilla/testing/testbase.py
+++ b/mozharness/mozilla/testing/testbase.py
@@ -261,16 +261,27 @@ 2. running via buildbot and running the
write_to_file=True)
self.run_command(['unzip', '-q', source], cwd=self.symbols_path,
halt_on_failure=True)
def download_and_extract(self, target_unzip_dirs=None):
"""
download and extract test zip / download installer
"""
+ # Swap plain http for https when we're downloading from ftp
+ # See bug 957502 and friends
+ from_ = "http://ftp.mozilla.org"
+ to_ = "https://ftp-ssl.mozilla.org"
+ for attr in 'test_url', 'symbols_url', 'installer_url':
+ url = getattr(self, attr)
+ if url and url.startswith(from_):
+ new_url = url.replace(from_, to_)
+ self.info("Replacing url %s -> %s" % (url, new_url))
+ setattr(self, attr, new_url)
+
if self.test_url:
self._download_test_zip()
self._extract_test_zip(target_unzip_dirs=target_unzip_dirs)
self._read_tree_config()
self._download_installer()
if self.config.get('download_symbols'):
self._download_and_extract_symbols()