Exemplo n.º 1
0
 def test_pause_unit_helper(self):
     with patch.object(cinder_utils, '_pause_resume_helper') as prh:
         cinder_utils.pause_unit_helper('random-config')
         prh.assert_called_once_with(cinder_utils.pause_unit,
                                     'random-config')
     with patch.object(cinder_utils, '_pause_resume_helper') as prh:
         cinder_utils.resume_unit_helper('random-config')
         prh.assert_called_once_with(cinder_utils.resume_unit,
                                     'random-config')
Exemplo n.º 2
0
 def test_pause_unit_helper(self):
     with patch.object(cinder_utils, '_pause_resume_helper') as prh:
         cinder_utils.pause_unit_helper('random-config')
         prh.assert_called_once_with(cinder_utils.pause_unit,
                                     'random-config')
     with patch.object(cinder_utils, '_pause_resume_helper') as prh:
         cinder_utils.resume_unit_helper('random-config')
         prh.assert_called_once_with(cinder_utils.resume_unit,
                                     'random-config')
Exemplo n.º 3
0
def pause(args):
    """Pause the Ceilometer services.
    @raises Exception should the service fail to stop.
    """
    pause_unit_helper(register_configs())
Exemplo n.º 4
0
def pause(args):
    """Pause the Ceilometer services.
    @raises Exception should the service fail to stop.
    """
    pause_unit_helper(register_configs())