mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
Increase timeout on CLI call to allow the test to pass
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
43e17e62ac
commit
374cf24321
1 changed files with 16 additions and 1 deletions
|
@ -44,7 +44,22 @@ def test_salt_versions_report_minion(salt_cli, salt_minion):
|
|||
"""
|
||||
Test running test.versions_report on minion
|
||||
"""
|
||||
ret = salt_cli.run("test.versions_report", minion_tgt=salt_minion.id)
|
||||
# Make sure the minion is running
|
||||
assert salt_minion.is_running()
|
||||
# Make sure we can ping the minion ...
|
||||
ret = salt_cli.run(
|
||||
"--timeout=240", "test.ping", minion_tgt=salt_minion.id, _timeout=240
|
||||
)
|
||||
assert ret.returncode == 0
|
||||
assert ret.data is True
|
||||
ret = salt_cli.run(
|
||||
"--hard-crash",
|
||||
"--failhard",
|
||||
"--timeout=240",
|
||||
"test.versions_report",
|
||||
minion_tgt=salt_minion.id,
|
||||
_timeout=240,
|
||||
)
|
||||
ret.stdout.matcher.fnmatch_lines(["*Salt Version:*"])
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue