patch: more sftp unit tests

Robey Pointer robey at lag.net
Thu Dec 8 11:28:45 GMT 2005


Rumors are circulating on IRC about people having trouble with sftp  
urls.  To raise the confidence level of the url parsing code, I  
multiplied the existing sftp tests by 3 different kinds of urls, as  
requested by Robert C:

* Absolute path where the home folder is a prefix
* Absolute path which is a sibling of the home folder
* Relative path inside the home folder

After debugging, the patch was relatively small so I'm attaching it  
and posting it into my "lost patches" branch:
	http://www.lag.net/~robey/bzr.robey/

The stub sftp server can now be configured to use a home folder for  
relative paths, and the TestCaseWithSFTPServer now takes an url path  
and relative home folder for configuration.  I just subclassed it  
twice to exercise all 3 url formats ... which is 17 tests each, and  
not speedy tests, so prepare to wait longer while they run. :)

Hopefully this helps.

robey

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.txt
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20051208/3a6113fa/attachment.txt 


More information about the bazaar mailing list