diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-12-29 19:27:30 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-12-29 19:27:30 +0000 |
commit | daf3de2686b1322d62998c0c6a6bff853b2a8f85 (patch) | |
tree | 485eb5c89cf7498b04c5159e2705a5b9080ae8c8 /test-sftpfs | |
parent | 3fa41dbbfb182a392e9791e09366b426c7f93ac1 (diff) | |
download | obnam-daf3de2686b1322d62998c0c6a6bff853b2a8f85.tar.gz |
add strict-ssh-host-keys setting
Diffstat (limited to 'test-sftpfs')
-rwxr-xr-x | test-sftpfs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test-sftpfs b/test-sftpfs index fca64d1c..55e6dc5f 100755 --- a/test-sftpfs +++ b/test-sftpfs @@ -26,6 +26,7 @@ ssh connections using the ssh agent. ''' +import logging import os import shutil import tempfile @@ -41,10 +42,11 @@ class SftpTests(unittest.TestCase, obnamlib.VfsTests): self.basepath = tempfile.mkdtemp() baseurl = 'sftp://localhost%s' % self.basepath settings = { - 'pure-paramiko': False, + 'pure-paramiko': True, 'create': True, 'sftp-delay': 0, 'ssh-key': '', + 'strict-ssh-host-keys': False, } self.fs = obnamlib.plugins.sftp_plugin.SftpFS(baseurl, settings=settings) @@ -84,4 +86,5 @@ class SftpTests(unittest.TestCase, obnamlib.VfsTests): if __name__ == '__main__': + logging.basicConfig(filename='/dev/null') unittest.main() |