mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add test case for sls with only import
Tests https://github.com/saltstack/salt/issues/10852
This commit is contained in:
parent
714ef8ff27
commit
596843e8d6
3 changed files with 16 additions and 0 deletions
|
@ -0,0 +1,7 @@
|
|||
include:
|
||||
- requisites.fullsls_require_import2
|
||||
A:
|
||||
test.succeed_without_changes:
|
||||
- name: A
|
||||
- require:
|
||||
- sls: requisites.fullsls_require_import2
|
|
@ -0,0 +1,2 @@
|
|||
include:
|
||||
- requisites.fullsls_test
|
|
@ -692,6 +692,13 @@ class StateModuleTest(integration.ModuleCase,
|
|||
#ret = self.run_function('state.sls', mods='requisites.fullsls_prereq')
|
||||
#self.assertEqual(['sls command can only be used with require requisite'], ret)
|
||||
|
||||
def test_requisites_full_sls_import(self):
|
||||
'''
|
||||
Test full sls requisite with nothing but an import
|
||||
'''
|
||||
ret = self.run_function('state.sls', mods='requisites.fullsls_require_import')
|
||||
self.assertSaltTrueReturn(ret)
|
||||
|
||||
def test_requisites_prereq_simple_ordering_and_errors(self):
|
||||
'''
|
||||
Call sls file containing several prereq_in and prereq.
|
||||
|
|
Loading…
Add table
Reference in a new issue