Beispiel #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
Beispiel #2
0
 def getcwd(self):
     return SSH.getcwd(self)
Beispiel #3
0
 def sftp_remove(self, path):
     return SSH.sftp_remove(self, path)
Beispiel #4
0
 def sftp_mkdir(self, directory):
     return SSH.sftp_mkdir(self, directory)
Beispiel #5
0
 def sftp_list_attr(self, directory):
     return SSH.sftp_list_attr(self, directory)
Beispiel #6
0
 def sftp_put_dir(self, src, dest):
     return SSH.sftp_put_dir(self, src, dest)
Beispiel #7
0
 def sftp_put_content(self, content, dest):
     return SSH.sftp_put_content(self, content, dest)
Beispiel #8
0
 def sftp_put_files(self, files):
     return SSH.sftp_put_files(self, files)
Beispiel #9
0
 def sftp_get_files(self, src, dest):
     return SSH.sftp_get_files(self, src, dest)
Beispiel #10
0
 def sftp_get(self, src, dest):
     return SSH.sftp_get(self, src, dest)
Beispiel #11
0
 def execute(self, command, timeout = None):
     return SSH.execute(self, command, timeout)
Beispiel #12
0
 def sftp_chmod(self, path, mode):
     return SSH.sftp_chmod(self, path, mode)