mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Updated test comparison string
This commit is contained in:
parent
117a447f99
commit
2b5022d1a9
1 changed files with 5 additions and 3 deletions
|
@ -7,6 +7,8 @@ import pytest
|
|||
import salt.states.selinux as selinux
|
||||
from tests.support.mock import MagicMock, patch
|
||||
|
||||
pytestmark = [pytest.mark.skip_on_windows]
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def configure_loader_modules():
|
||||
|
@ -36,12 +38,12 @@ def test_mode():
|
|||
"selinux.setenforce": mock_pr,
|
||||
},
|
||||
):
|
||||
comt = "SELinux is already in Enforcing mode"
|
||||
comt = "SELinux is already in enforcing mode"
|
||||
ret = {"name": "enforcing", "comment": comt, "result": True, "changes": {}}
|
||||
assert selinux.mode("Enforcing") == ret
|
||||
|
||||
with patch.dict(selinux.__opts__, {"test": True}):
|
||||
comt = "SELinux mode is set to be changed to Permissive"
|
||||
comt = "SELinux mode is set to be changed to permissive"
|
||||
ret = {
|
||||
"name": "permissive",
|
||||
"comment": comt,
|
||||
|
@ -51,7 +53,7 @@ def test_mode():
|
|||
assert selinux.mode("Permissive") == ret
|
||||
|
||||
with patch.dict(selinux.__opts__, {"test": False}):
|
||||
comt = "SELinux has been set to Permissive mode"
|
||||
comt = "SELinux has been set to permissive mode"
|
||||
ret = {
|
||||
"name": "permissive",
|
||||
"comment": comt,
|
||||
|
|
Loading…
Add table
Reference in a new issue