added the new getconfig function to the test

This commit is contained in:
nicholasmhughes 2017-02-06 09:55:09 -05:00
parent a6a24e1a1b
commit 8d8ba9c7d2

View file

@ -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': {}}