mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add non recurse test
This commit is contained in:
parent
f176e86aec
commit
b13f723ed6
1 changed files with 7 additions and 0 deletions
|
@ -35,6 +35,13 @@ class StateModuleTest(integration.ModuleCase):
|
|||
err = self.run_function('state.sls', mods='recurse_fail')
|
||||
self.assertIn('recursive', err[0])
|
||||
|
||||
def test_no_recurse(self):
|
||||
'''
|
||||
state.show_sls used to catch a recursive ref
|
||||
'''
|
||||
sls = self.run_function('state.show_sls', mods='recurse_ok')
|
||||
self.assertIn('snmpd', sls)
|
||||
|
||||
if __name__ == "__main__":
|
||||
loader = TestLoader()
|
||||
tests = loader.loadTestsFromTestCase(StateModuleTest)
|
||||
|
|
Loading…
Add table
Reference in a new issue