mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Also test exact expected state failure output
This commit is contained in:
parent
bade8e8206
commit
3c804657be
1 changed files with 5 additions and 0 deletions
|
@ -50,3 +50,8 @@ def state_tree_run_fail(base_env_state_tree_root_dir):
|
|||
def test_it(salt_ssh_cli, args):
|
||||
ret = salt_ssh_cli.run(*args)
|
||||
assert ret.returncode == EX_AGGREGATE
|
||||
assert isinstance(ret.data, dict)
|
||||
state = next(iter(ret.data))
|
||||
assert isinstance(ret.data[state], dict)
|
||||
assert "result" in ret.data[state]
|
||||
assert ret.data[state]["result"] is False
|
||||
|
|
Loading…
Add table
Reference in a new issue