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