Beispiel #1
0
 def test_basic(self):
     reactor_config = [
         {
             'salt/tagA': ['/srv/reactor/A.sls']
         },
         {
             'salt/tagB': ['/srv/reactor/B.sls']
         },
         {
             '*': ['/srv/reactor/all.sls']
         },
     ]
     wrap = reactor.ReactWrap(self.opts)
     with patch.object(reactor.ReactWrap, 'local',
                       MagicMock(side_effect=_args_sideffect)):
         ret = wrap.run({
             'fun': 'test.ping',
             'state': 'local',
             'order': 1,
             'name': 'foo_action',
             '__id__': 'foo_action'
         })
         raise Exception(ret)
Beispiel #2
0
 def setUpClass(cls):
     cls.wrap = reactor.ReactWrap(cls.get_temp_config('master'))