mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
added the new getconfig function to the test
This commit is contained in:
parent
a6a24e1a1b
commit
8d8ba9c7d2
1 changed files with 1 additions and 0 deletions
|
@ -47,6 +47,7 @@ class SelinuxTestCase(TestCase):
|
|||
mock_pr = MagicMock(side_effect=['Permissive', 'Enforcing'])
|
||||
with patch.dict(selinux.__salt__,
|
||||
{'selinux.getenforce': mock_en,
|
||||
'selinux.getconfig': mock_en,
|
||||
'selinux.setenforce': mock_pr}):
|
||||
comt = ('SELinux is already in Enforcing mode')
|
||||
ret = {'name': 'Enforcing', 'comment': comt, 'result': True, 'changes': {}}
|
||||
|
|
Loading…
Add table
Reference in a new issue