mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
improve salt-run salt.cmd test
This commit is contained in:
parent
c3c621aab0
commit
b3cbc5a408
1 changed files with 6 additions and 2 deletions
|
@ -21,10 +21,14 @@ class SaltRunnerTest(integration.ShellCase):
|
|||
'''
|
||||
def test_salt_cmd(self):
|
||||
'''
|
||||
salt.cmd
|
||||
test return values of salt.cmd
|
||||
'''
|
||||
ret = self.run_run_plus('salt.cmd', 'test.ping')
|
||||
self.assertTrue(ret.get('out')[0])
|
||||
out_ret = ret.get('out')[0]
|
||||
return_ret = ret.get('return')
|
||||
|
||||
self.assertEqual(out_ret, 'True')
|
||||
self.assertTrue(return_ret)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Add table
Reference in a new issue