Beispiel #1
0
 def setUp(self):
     self.conf = oslo_fixture.Config(cfg.CONF)
     self.conf.config(group="task_flow", engine='parallel')
     self.driver_mock = mock.MagicMock()
     self.persistence_mock = mock.MagicMock()
     self.jobboard_mock = mock.MagicMock()
     self.driver_mock.job_board.return_value = self.jobboard_mock
     self.driver_mock.persistence_driver.get_persistence.return_value = (
         self.persistence_mock)
     self.service_controller = base_taskflow.TaskFlowServiceController(
         self.driver_mock)
     super(TestTaskFlowServiceController, self).setUp()
Beispiel #2
0
 def services_controller(self):
     return base_taskflow.TaskFlowServiceController(self.jobboard_driver)