summaryrefslogtreecommitdiff
path: root/test-sftpfs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-12-29 19:27:30 +0000
committerLars Wirzenius <liw@liw.fi>2011-12-29 19:27:30 +0000
commitdaf3de2686b1322d62998c0c6a6bff853b2a8f85 (patch)
tree485eb5c89cf7498b04c5159e2705a5b9080ae8c8 /test-sftpfs
parent3fa41dbbfb182a392e9791e09366b426c7f93ac1 (diff)
downloadobnam-daf3de2686b1322d62998c0c6a6bff853b2a8f85.tar.gz
add strict-ssh-host-keys setting
Diffstat (limited to 'test-sftpfs')
-rwxr-xr-xtest-sftpfs5
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()