mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #43399 from twangboy/win_fix_test_pam
Fix `unit.modules.test_pam` for Windows
This commit is contained in:
commit
6a4cc5c1b0
1 changed files with 2 additions and 1 deletions
|
@ -34,7 +34,8 @@ class PamTestCase(TestCase):
|
|||
'''
|
||||
Test if the parsing function works
|
||||
'''
|
||||
with patch('salt.utils.fopen', mock_open(read_data=MOCK_FILE)):
|
||||
with patch('os.path.exists', return_value=True), \
|
||||
patch('salt.utils.fopen', mock_open(read_data=MOCK_FILE)):
|
||||
self.assertListEqual(pam.read_file('/etc/pam.d/login'),
|
||||
[{'arguments': [], 'control_flag': 'ok',
|
||||
'interface': 'ok', 'module': 'ignore'}])
|
||||
|
|
Loading…
Add table
Reference in a new issue