Example #1
0
 def test_change_password(self):
     '''
     Test if it reset a users password
     '''
     with patch('salt.modules.ilo.__execute_cmd',
                MagicMock(return_value={'Change password': {}})):
         self.assertDictEqual(ilo.change_password('Salt', 'saltpasswd'),
                              {'Change password': {}})
Example #2
0
 def test_change_password(self):
     """
     Test if it reset a users password
     """
     with patch(
             "salt.modules.ilo.__execute_cmd",
             MagicMock(return_value={"Change password": {}}),
     ):
         self.assertDictEqual(ilo.change_password("Salt", "saltpasswd"),
                              {"Change password": {}})
Example #3
0
 def test_change_password(self):
     '''
     Test if it reset a users password
     '''
     self.assertDictEqual(ilo.change_password('Salt', 'saltpasswd'),
                          {'Change password': {}})
Example #4
0
 def test_change_password(self):
     '''
     Test if it reset a users password
     '''
     self.assertDictEqual(ilo.change_password('Salt', 'saltpasswd'),
                          {'Change password': {}})