Skip salt state file package test when state takes too long to apply

This commit is contained in:
MKLeb 2023-02-28 00:24:42 -05:00 committed by Pedro Algarvio
parent 69ed840702
commit c5a3c0c691

View file

@ -17,6 +17,8 @@ def test_salt_state_file(salt_cli, salt_minion):
ret = salt_cli.run("state.apply", "states", minion_tgt=salt_minion.id)
assert ret.data, ret
if ret.stdout and "Minion did not return" in ret.stdout:
pytest.skip("Skipping test, state took too long to apply")
sls_ret = ret.data[next(iter(ret.data))]
assert "changes" in sls_ret
assert "name" in sls_ret