Skip to content

Commit 624ed41

Browse files
techhats0undt3ch
authored andcommitted
Mark tests as destructive
1 parent ae80dcd commit 624ed41

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

tests/pytests/functional/formulas/test_docker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ def modules(loaders, _formula):
1515
return loaders.modules
1616

1717

18+
@pytest.mark.destructive_test
1819
def test_docker_formula(modules):
19-
ret = modules.state.sls("docker", test=True)
20+
ret = modules.state.sls("docker")
2021
for staterun in ret:
2122
assert not staterun.result.failed

tests/pytests/functional/formulas/test_nginx.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ def modules(loaders, _formula):
1515
return loaders.modules
1616

1717

18+
@pytest.mark.destructive_test
1819
def test_formula(modules):
19-
ret = modules.state.sls("nginx", test=True)
20+
ret = modules.state.sls("nginx")
2021
for staterun in ret:
2122
assert staterun.result is True

tests/pytests/functional/formulas/test_salt.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@ def modules(loaders, _formula):
1616
return loaders.modules
1717

1818

19+
@pytest.mark.destructive_test
1920
def test_salt_formula(modules):
2021
# Master Formula
21-
ret = modules.state.sls("salt.master", test=True)
22+
ret = modules.state.sls("salt.master")
2223
for staterun in ret:
2324
assert not staterun.result.failed
2425

2526
# Minion Formula
26-
ret = modules.state.sls("salt.minion", test=True)
27+
ret = modules.state.sls("salt.minion")
2728
for staterun in ret:
2829
assert not staterun.result.failed

tests/pytests/functional/formulas/test_users.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@ def modules(loaders, _formula):
1616
return loaders.modules
1717

1818

19+
@pytest.mark.destructive_test
1920
def test_users_formula(modules):
2021
# sudo
21-
ret = modules.state.sls("users.sudo", test=True)
22+
ret = modules.state.sls("users.sudo")
2223
for staterun in ret:
2324
assert not staterun.result.failed
2425

2526
# bashrc
26-
ret = modules.state.sls("users.bashrc", test=True)
27+
ret = modules.state.sls("users.bashrc")
2728
for staterun in ret:
2829
assert not staterun.result.failed

0 commit comments

Comments
 (0)