コード例 #1
0
 def test_process_deployment_groups(self):
     """Test the core processing loop of the drydock_nodes module"""
     dgm = DeploymentGroupManager(yaml.safe_load(tdgm.GROUPS_YAML),
                                  node_lookup)
     _process_deployment_groups(
         dgm, _gen_pe_func('all-success', stand_alone=True),
         _gen_pe_func('all-success', stand_alone=True))
     assert not dgm.critical_groups_failed()
     for group in dgm.group_list():
         assert dgm.evaluate_group_succ_criteria(group.name, Stage.DEPLOYED)
コード例 #2
0
 def test_process_deployment_groups_prep_fail(self):
     """Test the core processing loop of the drydock_nodes module"""
     dgm = DeploymentGroupManager(yaml.safe_load(tdgm.GROUPS_YAML),
                                  node_lookup)
     _process_deployment_groups(
         dgm, _gen_pe_func('all-fail', stand_alone=True),
         _gen_pe_func('all-success', stand_alone=True))
     assert dgm.critical_groups_failed()
     for group in dgm.group_list():
         assert group.stage == Stage.FAILED
     dgm.report_group_summary()
     dgm.report_node_summary()