mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add integration test for 42116
This commit is contained in:
parent
c312e10cf9
commit
d15f7ded82
2 changed files with 17 additions and 0 deletions
|
@ -0,0 +1,2 @@
|
|||
ping -c 2 {{ pillar['myhost'] }}:
|
||||
cmd.run
|
|
@ -426,6 +426,21 @@ class CallTest(ShellCase, testprogram.TestProgramCase, ShellCaseCommonTestsMixin
|
|||
# Restore umask
|
||||
os.umask(current_umask)
|
||||
|
||||
@skipIf(sys.platform.startswith('win'), 'This test does not apply on Win')
|
||||
def test_42116_cli_pillar_override(self):
|
||||
ret = self.run_call(
|
||||
'state.apply issue-42116-cli-pillar-override '
|
||||
'pillar=\'{"myhost": "localhost"}\''
|
||||
)
|
||||
for line in ret:
|
||||
line = line.lstrip()
|
||||
if line == 'Comment: Command "ping -c 2 localhost" run':
|
||||
# Successful test
|
||||
break
|
||||
else:
|
||||
log.debug('salt-call output:\n\n%s', '\n'.join(ret))
|
||||
self.fail('CLI pillar override not found in pillar data')
|
||||
|
||||
def tearDown(self):
|
||||
'''
|
||||
Teardown method to remove installed packages
|
||||
|
|
Loading…
Add table
Reference in a new issue