Пример #1
0
 def test_delete_ssh_key(self):
     '''
     Test if it delete a users SSH key from the ILO
     '''
     with patch('salt.modules.ilo.__execute_cmd',
                MagicMock(return_value={'Delete user SSH key': {}})):
         self.assertDictEqual(ilo.delete_ssh_key('Salt'),
                              {'Delete user SSH key': {}})
Пример #2
0
 def test_delete_ssh_key(self):
     """
     Test if it delete a users SSH key from the ILO
     """
     with patch(
             "salt.modules.ilo.__execute_cmd",
             MagicMock(return_value={"Delete user SSH key": {}}),
     ):
         self.assertDictEqual(ilo.delete_ssh_key("Salt"),
                              {"Delete user SSH key": {}})
Пример #3
0
 def test_delete_ssh_key(self):
     '''
     Test if it delete a users SSH key from the ILO
     '''
     self.assertDictEqual(ilo.delete_ssh_key('Salt'),
                          {'Delete user SSH key': {}})
Пример #4
0
 def test_delete_ssh_key(self):
     '''
     Test if it delete a users SSH key from the ILO
     '''
     self.assertDictEqual(ilo.delete_ssh_key('Salt'),
                          {'Delete user SSH key': {}})