Пример #1
0
 def setUp(self):
     self.graph = make_task_graph(
         version="42.0b2",
         next_version="42.0b3",
         appVersion="42.0",
         buildNumber=3,
         source_enabled=False,
         updates_enabled=True,
         bouncer_enabled=False,
         push_to_candidates_enabled=False,
         postrelease_version_bump_enabled=False,
         en_US_config={"platforms": {
             "macosx64": {"task_id": "xyz"},
             "win32": {"task_id": "xyy"}
         }},
         l10n_config={},
         partial_updates={
             "38.0": {
                 "buildNumber": 1,
             },
             "37.0": {
                 "buildNumber": 2,
             },
         },
         branch="mozilla-beta",
         repo_path="releases/mozilla-beta",
         product="firefox",
         revision="abcdef123456",
         balrog_api_root="https://fake.balrog/api",
         signing_class="release-signing",
         verifyConfigs={},
         release_channels=["beta"],
         signing_pvt_key=PVT_KEY_FILE,
     )
Пример #2
0
 def setUp(self):
     self.graph = make_task_graph(
         version="42.0b2",
         next_version="42.0b3",
         appVersion="42.0",
         buildNumber=3,
         branch="foo",
         revision="abcdef123456",
         updates_enabled=False,
         bouncer_enabled=False,
         source_enabled=False,
         push_to_candidates_enabled=False,
         postrelease_version_bump_enabled=False,
         en_US_config={
             "platforms": {
                 "linux": {
                     "task_id": "xyz"
                 },
                 "win32": {
                     "task_id": "xyy"
                 }
             }
         },
         l10n_config={},
         verifyConfigs={},
         signing_pvt_key=PVT_KEY_FILE,
     )
Пример #3
0
 def setUp(self):
     self.graph = make_task_graph(
         version="42.0b2",
         next_version="42.0b3",
         appVersion="42.0",
         buildNumber=3,
         source_enabled=False,
         en_US_config={
             "platforms": {
                 "macosx64": {},
                 "win32": {},
                 "win64": {},
                 "linux": {},
                 "linux64": {},
             }
         },
         l10n_config={},
         repo_path="releases/foo",
         revision="fedcba654321",
         branch="foo",
         updates_enabled=False,
         bouncer_enabled=False,
         push_to_candidates_enabled=False,
         postrelease_version_bump_enabled=False,
         product="firefox",
         signing_class="release-signing",
         release_channels=["beta", "release"],
         signing_pvt_key=PVT_KEY_FILE,
     )
Пример #4
0
 def setUp(self):
     self.graph = make_task_graph(
         version="42.0b2",
         next_version="42.0b3",
         appVersion="42.0",
         buildNumber=3,
         source_enabled=False,
         updates_enabled=True,
         bouncer_enabled=False,
         push_to_candidates_enabled=False,
         postrelease_version_bump_enabled=False,
         en_US_config={"platforms": {
             "win32": {
                 "task_id": "xyy"
             }
         }},
         l10n_config={
             "platforms": {
                 "win32": {
                     "en_us_binary_url":
                     "https://queue.taskcluster.net/something/firefox.exe",
                     "locales": ["de", "en-GB", "zh-TW"],
                     "chunks": 1,
                 },
                 "linux64": {
                     "en_us_binary_url":
                     "https://queue.taskcluster.net/something/firefox.tar.xz",
                     "locales": ["de", "en-GB", "zh-TW"],
                     "chunks": 1,
                 },
             },
             "changesets": {
                 "de": "default",
                 "en-GB": "default",
                 "zh-TW": "default",
             },
         },
         partial_updates={
             "38.0": {
                 "buildNumber": 1,
             },
             "37.0": {
                 "buildNumber": 2,
             },
         },
         balrog_api_root="https://fake.balrog/api",
         signing_class="release-signing",
         branch="mozilla-beta",
         product="firefox",
         repo_path="releases/mozilla-beta",
         revision="abcdef123456",
         release_channels=["beta"],
         signing_pvt_key=PVT_KEY_FILE,
     )
     self.task = get_task_by_name(
         self.graph, "release-mozilla-beta_firefox_win32_l10n_repack_1")
     self.payload = self.task["task"]["payload"]
     self.properties = self.payload["properties"]
Пример #5
0
 def test_encryption(self):
     graph = make_task_graph(
         version="42.0b2",
         next_version="42.0b3",
         appVersion="42.0",
         buildNumber=3,
         source_enabled=False,
         updates_enabled=True,
         bouncer_enabled=False,
         push_to_candidates_enabled=False,
         postrelease_version_bump_enabled=False,
         en_US_config={
             "platforms": {
                 "macosx64": {
                     "task_id": "xyz"
                 },
                 "win32": {
                     "task_id": "xyy"
                 }
             }
         },
         l10n_config={},
         partial_updates={
             "38.0": {
                 "buildNumber": 1,
             },
             "37.0": {
                 "buildNumber": 2,
             },
         },
         branch="mozilla-beta",
         product="firefox",
         revision="abcdef123456",
         balrog_api_root="https://fake.balrog/api",
         signing_class="dep-signing",
         release_channels=["beta"],
         signing_pvt_key=PVT_KEY_FILE,
         repo_path="foo/bar",
     )
     do_common_assertions(graph)
     for p in ("win32", "macosx64"):
         for v in ("38.0build1", "37.0build2"):
             balrog = get_task_by_name(
                 graph, "{}_en-US_{}_funsize_balrog_task".format(p, v))
             self.assertEqual(
                 len(balrog["task"]["payload"]["encryptedEnv"]), 2)
             self.assertTrue(
                 balrog["task"]["payload"]["encryptedEnv"][0].startswith(
                     "wcB"),
                 "Encrypted string should always start with 'wcB'")
Пример #6
0
 def setUp(self):
     self.graph = make_task_graph(
         version="42.0b2",
         next_version="42.0b3",
         appVersion="42.0",
         buildNumber=3,
         source_enabled=False,
         en_US_config={
             "platforms": {
                 "macosx64": {},
                 "win32": {},
                 "win64": {},
                 "linux": {},
                 "linux64": {},
             }
         },
         l10n_config={},
         repo_path="releases/foo",
         product="firefox",
         revision="fedcba654321",
         partial_updates={
             "38.0": {
                 "buildNumber": 1,
             },
             "37.0": {
                 "buildNumber": 2,
             },
         },
         branch="foo",
         updates_enabled=False,
         bouncer_enabled=True,
         push_to_candidates_enabled=False,
         postrelease_version_bump_enabled=True,
         signing_class="release-signing",
         release_channels=["foo"],
         signing_pvt_key=PVT_KEY_FILE,
     )
     self.task = get_task_by_name(
         self.graph, "release-foo-firefox_version_bump")
     self.human_task = get_task_by_name(
         self.graph, "release-foo-firefox_version_bump_human_decision")
     self.payload = self.task["task"]["payload"]
 def setUp(self):
     self.graph = make_task_graph(
         version="42.0b2",
         next_version="42.0b3",
         appVersion="42.0",
         buildNumber=3,
         source_enabled=False,
         updates_enabled=False,
         bouncer_enabled=False,
         push_to_candidates_enabled=True,
         postrelease_version_bump_enabled=False,
         en_US_config=self.en_US_config,
         l10n_config={},
         partial_updates={
             "38.0": {
                 "buildNumber": 1,
             },
             "37.0": {
                 "buildNumber": 2,
             },
         },
         branch="mozilla-beta",
         repo_path="releases/mozilla-beta",
         product="firefox",
         revision="abcdef123456",
         balrog_api_root="https://fake.balrog/api",
         signing_class="release-signing",
         verifyConfigs={},
         signing_pvt_key=PVT_KEY_FILE,
     )
     self.tasks = {
         'win32': get_task_by_name(
             self.graph, "release-{}_{}_{}_complete_en-US_beetmover_candidates".format(
                 "mozilla-beta", "firefox", 'win32'
             )
         ),
         'macosx64': get_task_by_name(
             self.graph, "release-{}_{}_{}_complete_en-US_beetmover_candidates".format(
                 "mozilla-beta", "firefox", 'macosx64'
             )
         ),
     }
Пример #8
0
 def setUp(self):
     self.graph = make_task_graph(
         product="firefox",
         version="42.0b2",
         next_version="42.0b3",
         appVersion="42.0",
         buildNumber=3,
         source_enabled=True,
         en_US_config={
             "platforms": {
                 "linux": {
                     "task_id": "xyz"
                 },
                 "win32": {
                     "task_id": "xyy"
                 }
             }
         },
         l10n_config={},
         repo_path="releases/foo",
         revision="fedcba654321",
         branch="foo",
         updates_enabled=False,
         bouncer_enabled=False,
         push_to_candidates_enabled=False,
         postrelease_version_bump_enabled=False,
         signing_class="release-signing",
         verifyConfigs={},
         signing_pvt_key=PVT_KEY_FILE,
     )
     self.task_def = get_task_by_name(self.graph, "foo_source")
     self.task = self.task_def["task"]
     self.payload = self.task["payload"]
     self.signing_task_def = get_task_by_name(self.graph,
                                              "foo_source_signing")
     self.signing_task = self.signing_task_def["task"]