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': {}})
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": {}})
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': {}})