"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/unit/test_minion.py" between
salt-3002.1.tar.gz and salt-3002.2.tar.gz

About: SaltStack is a systems management software for data center automation, cloud orchestration, server provisioning, configuration management and more. Community version.

test_minion.py  (salt-3002.1):test_minion.py  (salt-3002.2)
skipping to change at line 429 skipping to change at line 429
pass pass
# Make sure the scheduler is initialized but the beacons are not # Make sure the scheduler is initialized but the beacons are not
self.assertTrue("ping" in minion.periodic_callbacks) self.assertTrue("ping" in minion.periodic_callbacks)
finally: finally:
minion.destroy() minion.destroy()
@slowTest @slowTest
def test_when_passed_start_event_grains(self): def test_when_passed_start_event_grains(self):
mock_opts = self.get_config("minion", from_scratch=True) mock_opts = self.get_config("minion", from_scratch=True)
# provide mock opts an os grain since we'll look for it later.
mock_opts["grains"]["os"] = "linux"
mock_opts["start_event_grains"] = ["os"] mock_opts["start_event_grains"] = ["os"]
io_loop = salt.ext.tornado.ioloop.IOLoop() io_loop = salt.ext.tornado.ioloop.IOLoop()
io_loop.make_current() io_loop.make_current()
minion = salt.minion.Minion(mock_opts, io_loop=io_loop) minion = salt.minion.Minion(mock_opts, io_loop=io_loop)
try: try:
minion.tok = MagicMock() minion.tok = MagicMock()
minion._send_req_sync = MagicMock() minion._send_req_sync = MagicMock()
minion._fire_master( minion._fire_master(
"Minion has started", "minion_start", include_startup_grains=Tru e "Minion has started", "minion_start", include_startup_grains=Tru e
) )
 End of changes. 1 change blocks. 
0 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)