from .. import mgr
from ..controllers.summary import Summary
from ..controllers.rbd_mirroring import RbdMirroringSummary
+from ..services import progress
mock_list_servers = [{
'(23d3751b897b31d2bda57aeaf01acb5ff3c4a9cd) ' \
'nautilus (dev)'
+ progress.get_progress_tasks = mock.MagicMock()
+ progress.get_progress_tasks.return_value = ([], [])
+
# pylint: disable=protected-access
RbdMirroringSummary._cp_config['tools.authenticate.on'] = False
Summary._cp_config['tools.authenticate.on'] = False
import time
+import mock
+
from . import ControllerTestCase
from ..controllers import Controller, RESTController, Task
from ..controllers.task import Task as TaskController
+from ..services import progress
from ..tools import NotificationQueue, TaskManager
@classmethod
def setup_server(cls):
# pylint: disable=protected-access
+ progress.get_progress_tasks = mock.MagicMock()
+ progress.get_progress_tasks.return_value = ([], [])
+
NotificationQueue.start_queue()
TaskManager.init()
TaskTest._cp_config['tools.authenticate.on'] = False