mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Fix wheel integration test (#34040)
This commit is contained in:
parent
5fee15b485
commit
b3751f481f
@ -2,11 +2,14 @@
|
||||
'''
|
||||
Wheel system wrapper for connected minions
|
||||
'''
|
||||
|
||||
# Import Python libs
|
||||
from __future__ import absolute_import
|
||||
|
||||
# Import Salt libs
|
||||
from salt.utils.cache import CacheCli
|
||||
import salt.config
|
||||
import salt.utils.minion
|
||||
import salt.utils.minions
|
||||
|
||||
|
||||
def connected():
|
||||
@ -14,7 +17,6 @@ def connected():
|
||||
List all connected minions on a salt-master
|
||||
'''
|
||||
opts = salt.config.master_config(__opts__['conf_file'])
|
||||
minions = []
|
||||
|
||||
if opts.get('con_cache'):
|
||||
cache_cli = CacheCli(opts)
|
||||
|
@ -27,7 +27,8 @@ class SaltUtilModuleTest(integration.ModuleCase):
|
||||
Tests using the saltutil.wheel function when passing only a function.
|
||||
'''
|
||||
ret = self.run_function('saltutil.wheel', ['minions.connected'])
|
||||
self.assertEqual(ret, ['minion', 'sub_minion'])
|
||||
self.assertIn('minion', ret)
|
||||
self.assertIn('sub_minion', ret)
|
||||
|
||||
def test_wheel_with_arg(self):
|
||||
'''
|
||||
|
Loading…
Reference in New Issue
Block a user