mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix misc tests
This commit is contained in:
parent
b1ca45dcee
commit
c855770bbd
3 changed files with 5 additions and 3 deletions
|
@ -66,6 +66,8 @@ from collections import MutableMapping
|
|||
import salt.ext.six as six
|
||||
try:
|
||||
import zmq
|
||||
import zmq.eventloop.ioloop
|
||||
import zmq.eventloop.zmqstream
|
||||
except ImportError:
|
||||
# Local mode does not need zmq
|
||||
pass
|
||||
|
|
|
@ -92,7 +92,7 @@ class MasterACLTestCase(integration.ModuleCase):
|
|||
}
|
||||
}
|
||||
|
||||
self.clear = salt.master.ClearFuncs(opts, MagicMock(), MagicMock(), MagicMock())
|
||||
self.clear = salt.master.ClearFuncs(opts, MagicMock())
|
||||
|
||||
self.valid_clear_load = {'tgt_type': 'glob',
|
||||
'jid': '',
|
||||
|
|
|
@ -14,6 +14,7 @@ from salttesting.mock import NO_MOCK, NO_MOCK_REASON, patch
|
|||
|
||||
# Import salt libs
|
||||
from salt import minion
|
||||
from salt.utils import event
|
||||
from salt.exceptions import SaltSystemExit
|
||||
import salt.syspaths
|
||||
|
||||
|
@ -44,9 +45,8 @@ class MinionTestCase(TestCase):
|
|||
'extension_modules': ''
|
||||
}
|
||||
with patch.dict(__opts__, opts):
|
||||
testminion = minion.MinionBase(__opts__)
|
||||
try:
|
||||
testminion._prepare_minion_event_system()
|
||||
event_publisher = event.AsyncEventPublisher(__opts__, lambda x: True)
|
||||
result = True
|
||||
except SaltSystemExit:
|
||||
result = False
|
||||
|
|
Loading…
Add table
Reference in a new issue