Beispiel #1
0
 def setUp(self):
     with patch('salt.utils.schedule.clean_proc_dir', MagicMock(return_value=None)):
         functions = {'test.ping': test_ping,
                      'test.true': test_true,
                      'status.time': status_time,
                      'cmd.run': cmd_run}
         self.schedule = Schedule(copy.deepcopy(self.default_config),
                                  functions,
                                  returners={})
     self.addCleanup(delattr, self, 'schedule')
Beispiel #2
0
 def setUp(self):
     with patch('salt.utils.schedule.clean_proc_dir',
                MagicMock(return_value=None)):
         functions = {
             'test.ping': test_ping,
             'test.true': test_true,
             'status.time': status_time,
             'cmd.run': cmd_run
         }
         self.schedule = Schedule(copy.deepcopy(DEFAULT_CONFIG),
                                  functions,
                                  returners={})
Beispiel #3
0
 def setUp(self):
     with patch('salt.utils.schedule.clean_proc_dir',
                MagicMock(return_value=None)):
         self.schedule = Schedule(copy.deepcopy(DEFAULT_CONFIG), {},
                                  returners={})
Beispiel #4
0
 def setUp(self):
     with patch('salt.utils.schedule.clean_proc_dir',
                MagicMock(return_value=None)):
         self.schedule = Schedule({}, {}, returners={})
Beispiel #5
0
 def setUp(self):
     with patch('salt.utils.schedule.clean_proc_dir',
                MagicMock(return_value=None)):
         self.schedule = Schedule(copy.deepcopy(self.default_config), {},
                                  returners={})
     self.addCleanup(delattr, self, 'schedule')