mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
add integration test for salt.client.LocalClient.cmd_batch
This commit is contained in:
parent
ead47e4bba
commit
4f16840ef1
1 changed files with 23 additions and 0 deletions
|
@ -85,6 +85,29 @@ class StdTest(integration.ModuleCase):
|
|||
continue
|
||||
self.assertTrue(ret['minion'])
|
||||
|
||||
def test_batch(self):
|
||||
'''
|
||||
test cmd_batch
|
||||
'''
|
||||
cmd_batch = self.client.cmd_batch(
|
||||
'minion',
|
||||
'test.ping',
|
||||
)
|
||||
for ret in cmd_batch:
|
||||
self.assertTrue(ret['minion'])
|
||||
|
||||
def test_batch_raw(self):
|
||||
'''
|
||||
test cmd_batch with raw option
|
||||
'''
|
||||
cmd_batch = self.client.cmd_batch(
|
||||
'minion',
|
||||
'test.ping',
|
||||
raw=True,
|
||||
)
|
||||
for ret in cmd_batch:
|
||||
self.assertTrue(ret['data']['success'])
|
||||
|
||||
def test_full_returns(self):
|
||||
'''
|
||||
test cmd_iter
|
||||
|
|
Loading…
Add table
Reference in a new issue