mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
15 lines
393 B
Python
15 lines
393 B
Python
import pytest
|
|
|
|
|
|
@pytest.mark.parametrize("output_fmt", ["yaml", "json"])
|
|
def test_salt_output(salt_cli, salt_minion, output_fmt):
|
|
"""
|
|
Test --output
|
|
"""
|
|
ret = salt_cli.run(
|
|
f"--output={output_fmt}", "test.fib", "7", minion_tgt=salt_minion.id
|
|
)
|
|
if output_fmt == "json":
|
|
assert 13 in ret.data
|
|
else:
|
|
ret.stdout.matcher.fnmatch_lines(["*- 13*"])
|