VfsTestServers - Apache Commons - Apache Software Foundation (original) (raw)

VFS Testing with external Servers

This page collects a number of example configurations and setup instructions for external servers. This is intended to be used with the integration tests, as described on the Apache Commons VFS site.

Samba 3

To test the (sandbox) SMB provider you can export a share with Samba 3 server and connect to it:

Setup a 'vfsusr' login with password 'vfstest'

Configure a new share in Samba by adding the following lines to the configuration:

[vfsusr] comment = VFS Test Directory path = /home/vfsusr guest ok = yes writable = yes

OpenSSH

In /etc/ssh/sshd_config ensure

PasswordAuthentication yes

Then you can crate the test directory in the home of any user (of course not root) and use it as the base for testing.