Ejemplo n.º 1
0
 def test_pause_unit_helper(self):
     with patch.object(utils, '_pause_resume_helper') as prh:
         utils.pause_unit_helper('random-config')
         prh.assert_called_once_with(utils.pause_unit, 'random-config')
     with patch.object(utils, '_pause_resume_helper') as prh:
         utils.resume_unit_helper('random-config')
         prh.assert_called_once_with(utils.resume_unit, 'random-config')
Ejemplo n.º 2
0
 def test_pause_unit_helper(self):
     with patch.object(utils, '_pause_resume_helper') as prh:
         utils.pause_unit_helper('random-config')
         prh.assert_called_once_with(utils.pause_unit, 'random-config')
     with patch.object(utils, '_pause_resume_helper') as prh:
         utils.resume_unit_helper('random-config')
         prh.assert_called_once_with(utils.resume_unit, 'random-config')
Ejemplo n.º 3
0
def resume(args):
    """Resume all the Glance services.

    @raises Exception if any services fail to start
    """
    resume_unit_helper(register_configs())
Ejemplo n.º 4
0
def resume(args):
    """Resume all the Glance services.

    @raises Exception if any services fail to start
    """
    resume_unit_helper(register_configs())