def test_encryption(self): self.task_schema = Schema({ 'task': { 'payload': { 'encryptedEnv': All(Length(2), [Match(r'^wcB')]) # Must have 2 elements, starting with wcB } } }, required=True, extra=True) test_kwargs = create_firefox_test_args({ 'updates_enabled': True, 'repo_path': 'foo/bar', 'branch': 'mozilla-beta', 'signing_class': 'dep-signing', 'release_channels': ['beta'], 'final_verify_channels': ['beta'], 'signing_pvt_key': PVT_KEY_FILE, 'accepted_mar_channel_id': 'firefox-mozilla-beta', 'signing_cert': 'dep', 'moz_disable_mar_cert_verification': True, 'en_US_config': { "platforms": { "macosx64": {"unsigned_task_id": "xyz", "signed_task_id": "xyz"}, "win32": {"unsigned_task_id": "xyz", "signed_task_id": "xyz"}, } }, }) graph = make_task_graph(**test_kwargs) 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)) verify(balrog, self.task_schema)
def test_common_assertions(self): do_common_assertions(self.graph)