mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Adapt remote execution error output tests
This commit is contained in:
parent
808699f343
commit
a52741723b
1 changed files with 2 additions and 3 deletions
|
@ -232,9 +232,8 @@ def test_retcode_exe_run_exception(salt_ssh_cli):
|
|||
"""
|
||||
ret = salt_ssh_cli.run("salttest.jinja_error")
|
||||
assert ret.returncode == EX_AGGREGATE
|
||||
assert isinstance(ret.data, dict)
|
||||
assert ret.data["stderr"].endswith("Exception: hehehe")
|
||||
assert ret.data["retcode"] == 1
|
||||
assert isinstance(ret.data, str)
|
||||
assert ret.data.endswith("Exception: hehehe")
|
||||
|
||||
|
||||
@pytest.mark.usefixtures("invalid_json_exe_mod")
|
||||
|
|
Loading…
Add table
Reference in a new issue