コード例 #1
0
ファイル: test_ilo.py プロジェクト: morinap/salt-1
 def test_set_ssh_key(self):
     '''
     Test if it configure SSH public keys for specific users
     '''
     with patch('salt.modules.ilo.__execute_cmd',
                MagicMock(return_value={'Import SSH Publickey': {}})):
         self.assertDictEqual(ilo.set_ssh_key('ssh-rsa AAAAB3Nza Salt'),
                              {'Import SSH Publickey': {}})
コード例 #2
0
ファイル: test_ilo.py プロジェクト: mamh-mixed/saltstack-salt
 def test_set_ssh_key(self):
     """
     Test if it configure SSH public keys for specific users
     """
     with patch(
             "salt.modules.ilo.__execute_cmd",
             MagicMock(return_value={"Import SSH Publickey": {}}),
     ):
         self.assertDictEqual(ilo.set_ssh_key("ssh-rsa AAAAB3Nza Salt"),
                              {"Import SSH Publickey": {}})
コード例 #3
0
ファイル: test_ilo.py プロジェクト: cldeluna/salt
 def test_set_ssh_key(self):
     '''
     Test if it configure SSH public keys for specific users
     '''
     self.assertDictEqual(ilo.set_ssh_key('ssh-rsa AAAAB3Nza Salt'),
                          {'Import SSH Publickey': {}})
コード例 #4
0
ファイル: ilo_test.py プロジェクト: DaveQB/salt
 def test_set_ssh_key(self):
     '''
     Test if it configure SSH public keys for specific users
     '''
     self.assertDictEqual(ilo.set_ssh_key('ssh-rsa AAAAB3Nza Salt'),
                          {'Import SSH Publickey': {}})