mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix outputter tests that come with changes in the default outputter
This commit is contained in:
parent
2f5ee69ee5
commit
bdae844eec
1 changed files with 7 additions and 8 deletions
|
@ -33,11 +33,10 @@ class CallTest(integration.ShellCase, integration.ShellCaseCommonTestsMixIn):
|
|||
def test_default_output(self):
|
||||
out = self.run_call('-l quiet test.fib 3')
|
||||
|
||||
expect = ['local: !!python/tuple',
|
||||
'- - 0',
|
||||
' - 1',
|
||||
' - 1',
|
||||
' - 2']
|
||||
expect = ['local:',
|
||||
' - 0',
|
||||
' - 1',
|
||||
' - 1']
|
||||
self.assertEqual(expect, out[:-1])
|
||||
|
||||
def test_text_output(self):
|
||||
|
@ -102,7 +101,7 @@ class CallTest(integration.ShellCase, integration.ShellCaseCommonTestsMixIn):
|
|||
)
|
||||
)
|
||||
try:
|
||||
self.assertIn('local: foo', ret)
|
||||
self.assertIn('local:', ret)
|
||||
except AssertionError:
|
||||
if os.path.isfile(minion_config_file):
|
||||
os.unlink(minion_config_file)
|
||||
|
@ -157,7 +156,7 @@ class CallTest(integration.ShellCase, integration.ShellCaseCommonTestsMixIn):
|
|||
timeout=15
|
||||
)
|
||||
try:
|
||||
self.assertIn('local: foo', ret)
|
||||
self.assertIn('local:', ret)
|
||||
except AssertionError:
|
||||
if os.path.isfile(minion_config_file):
|
||||
os.unlink(minion_config_file)
|
||||
|
@ -179,7 +178,7 @@ class CallTest(integration.ShellCase, integration.ShellCaseCommonTestsMixIn):
|
|||
timeout=15
|
||||
)
|
||||
try:
|
||||
self.assertIn('local: foo', ret)
|
||||
self.assertIn('local:', ret)
|
||||
finally:
|
||||
if os.path.isfile(minion_config_file):
|
||||
os.unlink(minion_config_file)
|
||||
|
|
Loading…
Add table
Reference in a new issue