Exemplo n.º 1
0
 def get_dummy_ssh(self, retry=False):
     ssh = SSH("", "", "")
     ssh.test_connectivity = Mock(return_value=True)
     ssh.execute = Mock(return_value=("10", "", 0))
     ssh.sftp_put_files = Mock(return_value=True)
     ssh.sftp_mkdir = Mock(return_value=True)
     ssh.sftp_put_dir = Mock(return_value=True)
     ssh.sftp_put = Mock(return_value=True)
     return ssh
Exemplo n.º 2
0
 def get_dummy_ssh(self, retry=False):
     ssh = SSH("", "", "")
     ssh.test_connectivity = Mock(return_value=True)
     ssh.execute = Mock(return_value=("10", "", 0))
     ssh.sftp_put_files = Mock(return_value=True)
     ssh.sftp_mkdir = Mock(return_value=True)
     ssh.sftp_put_dir = Mock(return_value=True)
     ssh.sftp_put = Mock(return_value=True)
     return ssh
Exemplo n.º 3
0
 def sftp_mkdir(self, directory):
     return SSH.sftp_mkdir(self, directory)
Exemplo n.º 4
0
 def sftp_mkdir(self, directory):
     return SSH.sftp_mkdir(self, directory)
Exemplo n.º 5
0
 def sftp_mkdir(self, directory, mode=0o777):
     return SSH.sftp_mkdir(self, directory, mode)