add integration test for salt.client.LocalClient.cmd_batch

This commit is contained in:
Jean Praloran 2016-11-11 14:20:51 +13:00
parent ead47e4bba
commit 4f16840ef1

View file

@ -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