示例#1
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'")
示例#2
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'")
 def test_common_assertions(self):
     do_common_assertions(self.graph)
示例#4
0
 def test_common_assertions(self):
     do_common_assertions(self.graph)