def __init__(self, messaging): self._messaging = messaging self._strategy_context = default_context.DefaultStrategyContext() self._planner_manager = planner_manager.PlannerManager() self._planner = None
def test_load(self): cfg.CONF.set_override('planner', "weight", group='watcher_planner') manager = planner.PlannerManager() selected_planner = cfg.CONF.watcher_planner.planner self.assertIsInstance(manager.load(selected_planner), weight.WeightPlanner)
def test_load(self): cfg.CONF.set_override('planner', "default", group='watcher_planner') manager = planner.PlannerManager() self.assertIsInstance(manager.load(), default.DefaultPlanner)
def __init__(self, messaging): super(DefaultAuditHandler, self).__init__() self._messaging = messaging self._strategy_context = default_context.DefaultStrategyContext() self._planner_manager = planner_manager.PlannerManager() self._planner = None
def __init__(self): super(AuditHandler, self).__init__() self._strategy_context = default_context.DefaultStrategyContext() self._planner_manager = planner_manager.PlannerManager() self._planner = None self.applier_client = rpcapi.ApplierAPI()