mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Rearrangment of test parameters
This commit is contained in:
parent
7be41f56db
commit
4ee0f9410b
4 changed files with 11 additions and 7 deletions
|
@ -5,7 +5,7 @@ pytestmark = [
|
|||
]
|
||||
|
||||
|
||||
def test_salt_api(api_request, salt_master, install_salt):
|
||||
def test_salt_api(api_request, install_salt, salt_master):
|
||||
"""
|
||||
Test running a command against the salt api
|
||||
"""
|
||||
|
|
|
@ -9,8 +9,8 @@ pytestmark = [
|
|||
|
||||
@pytest.fixture
|
||||
def salt_systemd_setup(
|
||||
salt_call_cli,
|
||||
install_salt,
|
||||
salt_call_cli,
|
||||
):
|
||||
"""
|
||||
Fixture to set systemd for salt packages to enabled and active
|
||||
|
@ -31,7 +31,7 @@ def salt_systemd_setup(
|
|||
|
||||
|
||||
@pytest.mark.skip_if_binaries_missing("ufw")
|
||||
def test_salt_ufw(salt_systemd_setup, salt_call_cli, install_salt):
|
||||
def test_salt_ufw(salt_systemd_setup, install_salt, salt_call_cli):
|
||||
"""
|
||||
Test salt.ufw for Debian/Ubuntu salt-master
|
||||
"""
|
||||
|
|
|
@ -16,8 +16,8 @@ pytestmark = [
|
|||
|
||||
@pytest.fixture
|
||||
def salt_systemd_setup(
|
||||
salt_call_cli,
|
||||
install_salt,
|
||||
salt_call_cli,
|
||||
):
|
||||
"""
|
||||
Fixture to set systemd for salt packages to enabled and active
|
||||
|
@ -88,12 +88,16 @@ def pkg_paths_salt_user_exclusions():
|
|||
return paths
|
||||
|
||||
|
||||
def test_salt_user_master(salt_master, install_salt):
|
||||
def test_salt_user_master(install_salt, salt_master):
|
||||
"""
|
||||
Test the correct user is running the Salt Master
|
||||
"""
|
||||
for count in range(0, 30):
|
||||
if salt_master.is_running():
|
||||
print(
|
||||
f"DGM test_salt_user_master, salt_master is_running, count '{count}'",
|
||||
flush=True,
|
||||
)
|
||||
break
|
||||
else:
|
||||
time.sleep(2)
|
||||
|
@ -221,10 +225,10 @@ def test_pkg_paths(
|
|||
|
||||
@pytest.mark.skip_if_binaries_missing("logrotate")
|
||||
def test_paths_log_rotation(
|
||||
install_salt,
|
||||
salt_master,
|
||||
salt_minion,
|
||||
salt_call_cli,
|
||||
install_salt,
|
||||
pkg_tests_account,
|
||||
):
|
||||
"""
|
||||
|
|
|
@ -55,7 +55,7 @@ def test_salt_versions_report_master(install_salt):
|
|||
|
||||
|
||||
@pytest.mark.skip_on_windows
|
||||
def test_salt_versions_report_minion(salt_cli, salt_call_cli, salt_minion, salt_master):
|
||||
def test_salt_versions_report_minion(salt_cli, salt_call_cli, salt_master, salt_minion):
|
||||
"""
|
||||
Test running test.versions_report on minion
|
||||
"""
|
||||
|
|
Loading…
Add table
Reference in a new issue