def test__healthlogging(self, mock_genlog): """Test creation of healthcheck handler""" utils.health_logging() self.mock_logger.StreamHandler.assert_called_once_with( sys.stdout ) mock_genlog.assert_called_once_with( 'stdout', mock.ANY, mock.ANY, self.mock_logger.INFO )
import adaptationengine_framework.adaptationaction as adaptationaction import adaptationengine_framework.database as database import adaptationengine_framework.distributor as distributor import adaptationengine_framework.enactor as enactor import adaptationengine_framework.event as event import adaptationengine_framework.heatresourcehandler as heatresourcehandler import adaptationengine_framework.mqhandler as mqhandler import adaptationengine_framework.output as output import adaptationengine_framework.pluginmanager as pluginmanager import adaptationengine_framework.rest as rest import adaptationengine_framework.utils as utils LOGGER = utils.syslog_logging('adaptation-engine', logging.DEBUG) HEALTHLOGGER = utils.health_logging() class AdaptationEngine: """ Sit on a message queue waiting for events, pass those events to plugins, compile the results, and apply those results to Openstack """ def __init__(self): """ Create plugin and message queue managers """ _manager = multiprocessing.Manager() self._locked_stacks = _manager.list()