01-backup-ftp.t unit test

Gavin Carr gavin at openfusion.com.au
Mon Jul 7 11:49:53 UTC 2008

On Mon, Jun 30, 2008 at 03:45:24PM +1000, Gavin Carr wrote:
> I've added a first-pass backup unit test for Brackup::Target::FTP by 
> tweaking Backup::Test to accept an optional 'with_targetsec' parameter
> analagous to the existing 'with_confsec' one, allowing the target type
> to be changed from Filesystem, and additional target parameters to be
> passed in. Does this look sane?
> Patch to Backup::Test and my 01-backup-ftp.t unit test attached. 
> Note that all tests are skipped by default, since typical users won't 
> have an ftp server available. Also, this test doesn't clean up 
> automatically after itself, since the ftp server may well be remote, 
> and even it it's local we won't typically have permissions to remove 
> the uploaded files anyway.

Any comments/thoughts on this?


More information about the brackup mailing list