mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fixed test failures for Colton
This commit is contained in:
parent
b949856ae6
commit
98e7e90299
2 changed files with 7 additions and 3 deletions
|
@ -63,7 +63,9 @@ class WinServermanagerTestCase(TestCase):
|
|||
Test if it install a feature.
|
||||
'''
|
||||
with patch.dict(win_servermanager.__salt__, {'cmd.run': self._m_run()}):
|
||||
self.assertDictEqual(win_servermanager.install('Telnet-Client'), {})
|
||||
self.assertDictEqual(win_servermanager.install('Telnet-Client'), {
|
||||
'message': ''
|
||||
})
|
||||
|
||||
# 'remove' function tests: 1
|
||||
|
||||
|
@ -72,7 +74,9 @@ class WinServermanagerTestCase(TestCase):
|
|||
Test if it remove an installed feature.
|
||||
'''
|
||||
with patch.dict(win_servermanager.__salt__, {'cmd.run': self._m_run()}):
|
||||
self.assertDictEqual(win_servermanager.remove('Telnet-Client'), {})
|
||||
self.assertDictEqual(win_servermanager.remove('Telnet-Client'), {
|
||||
'message': ''
|
||||
})
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
@ -56,7 +56,7 @@ class WinServermanagerTestCase(TestCase):
|
|||
|
||||
with patch.dict(win_servermanager.__opts__, {"test": False}):
|
||||
ret.update({'changes': {'feature': {'Success': 'True'}},
|
||||
'result': True})
|
||||
'result': True, 'comment': 'Installed salt'})
|
||||
self.assertDictEqual(win_servermanager.installed('salt'),
|
||||
ret)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue