mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Check for errors before result loop
This commit is contained in:
parent
845853c1bd
commit
1ec162e946
2 changed files with 4 additions and 0 deletions
|
@ -22,5 +22,7 @@ def modules(loaders, _formula):
|
|||
@pytest.mark.destructive_test
|
||||
def test_sudoers_formula(modules):
|
||||
ret = modules.state.sls("sudoers")
|
||||
assert not ret.errors
|
||||
assert ret.failed is False
|
||||
for staterun in ret:
|
||||
assert staterun.result is True
|
||||
|
|
|
@ -22,5 +22,7 @@ def modules(loaders, _formula):
|
|||
@pytest.mark.destructive_test
|
||||
def test_vim_formula(modules):
|
||||
ret = modules.state.sls("vim")
|
||||
assert not ret.errors
|
||||
assert ret.failed is False
|
||||
for staterun in ret:
|
||||
assert staterun.result is True
|
||||
|
|
Loading…
Add table
Reference in a new issue