Esempio n. 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')
Esempio n. 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={})
Esempio n. 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={})
Esempio n. 4
0
 def setUp(self):
     with patch('salt.utils.schedule.clean_proc_dir',
                MagicMock(return_value=None)):
         self.schedule = Schedule({}, {}, returners={})
Esempio n. 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')