mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge branch 'retcode_failure_test' of https://github.com/cro/salt into cro-retcode_failure_test
This commit is contained in:
commit
906719d691
4
tests/integration/files/file/base/saltcalllocal.sls
Normal file
4
tests/integration/files/file/base/saltcalllocal.sls
Normal file
@ -0,0 +1,4 @@
|
||||
regular-module:
|
||||
module.run:
|
||||
- name: test.echo
|
||||
- text: hello
|
@ -48,6 +48,14 @@ class CallTest(integration.ShellCase, integration.ShellCaseCommonTestsMixIn):
|
||||
|
||||
self.assertEqual(''.join(expect), ''.join(out).rsplit(",", 1)[0])
|
||||
|
||||
def test_local_sls_call(self):
|
||||
fileroot = os.path.join(integration.FILES,'file','base')
|
||||
out = self.run_call('--file-root {0} --local state.sls saltcalllocal'.format(fileroot))
|
||||
self.assertIn('Name: test.echo', ''.join(out))
|
||||
self.assertIn('Result: True', ''.join(out))
|
||||
self.assertIn('hello', ''.join(out))
|
||||
self.assertIn('Succeeded: 1', ''.join(out))
|
||||
|
||||
@skipIf(sys.platform.startswith('win'), 'This test does not apply on Win')
|
||||
def test_user_delete_kw_output(self):
|
||||
ret = self.run_call('-l quiet -d user.delete')
|
||||
|
Loading…
Reference in New Issue
Block a user