]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commit
Add a test, add missing imports. refs #2388
authorDaira Hopwood <daira@jacaranda.org>
Tue, 24 Mar 2015 17:10:00 +0000 (17:10 +0000)
committerDaira Hopwood <daira@jacaranda.org>
Wed, 15 Apr 2015 13:22:48 +0000 (14:22 +0100)
commit81b8fb822af56cd4aa7210815fb98418f871989f
tree1e0c5343c2108fbb3f5d45f705e7c18b0d0b9f32
parent44ffa96f8604997f02fa27cced39e43098b4917d
Add a test, add missing imports. refs #2388

This tests ftpd, but not sftpd. Doing this sort of test on sftpd
requires the creation of a valid pubkey/privkey file pair, which is more
work than I want to do right now.

init_ftp/init_sftp were changed to interpret the configured
accounts.file as relative to the node's basedir, with
abspath_expanduser_unicode(accountfile, base=self.basedir).
This would happen naturally in a real node, since it os.chdir()s
to the basedir before doing anything. But tests don't do that.

Author: Brian Warner <warner@lothar.com>
Author: Daira Hopwood <daira@jacaranda.org>
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/client.py
src/allmydata/frontends/ftpd.py
src/allmydata/frontends/sftpd.py
src/allmydata/test/test_client.py