commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mario Ivankovits <ima...@apache.org>
Subject Re: [vfs] running unit tests for Http provider
Date Wed, 23 Jun 2004 08:23:46 GMT
Http & webdav configuration:

Server version: Apache/1.3.26
/etc/apache/httpd.conf

--- snip ----
#
# VFSTEST
#
Alias /vfstest /vfstest/

<Location />
        DAV On
        Options Indexes MultiViews
        AllowOverride None

        AuthType Basic
        AuthName vfstest_zone
        AuthUserFile /etc/apache/passwd
        <Limit PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK 
UNLOCK>
                Require user vfsusr
        </Limit>
</Location>
--- snip ---

Direcotry-structure of /vfstest:

vfstest
vfstest/write-tests
vfstest/read-tests
vfstest/read-tests/emptydir
vfstest/read-tests/file1.txt
vfstest/read-tests/dir1
vfstest/read-tests/dir1/file1.txt
vfstest/read-tests/dir1/file2.txt
vfstest/read-tests/dir1/file3.txt
vfstest/read-tests/dir1/subdir1
vfstest/read-tests/dir1/subdir1/file1.txt
vfstest/read-tests/dir1/subdir1/file2.txt
vfstest/read-tests/dir1/subdir1/file3.txt
vfstest/read-tests/dir1/subdir2
vfstest/read-tests/dir1/subdir2/file1.txt
vfstest/read-tests/dir1/subdir2/file2.txt
vfstest/read-tests/dir1/subdir2/file3.txt
vfstest/read-tests/dir1/subdir3
vfstest/read-tests/dir1/subdir3/file1.txt
vfstest/read-tests/dir1/subdir3/file2.txt
vfstest/read-tests/dir1/subdir3/file3.txt
vfstest/read-tests/empty.txt
vfstest/code
vfstest/code/sealed
vfstest/code/sealed/AnotherClass.class
vfstest/code/ClassToLoad.class

You will find the files needed for "read-tests" and "code" in 
"test-data" in the vfs repository.

As i use ant for build i simply added the configuration in my build.xml 
into the "internal-test" target.

<property name="test.user" value="vfsusr" />
<property name="test.password" value="vfsusr" />
<property name="test.hostname" value="vfstest" />
<property name="test.path" value="/vfstest" />
<sysproperty key="test.smb.uri" 
value="smb://${test.user}:${test.password}@${test.hostname}/${test.user}${test.path}"/>
<sysproperty key="test.ftp.uri" 
value="ftp://${test.user}:${test.password}@${test.hostname}${test.path}"/>
<sysproperty key="test.http.uri" 
value="http://${test.hostname}${test.path}"/>
<sysproperty key="test.webdav.uri" 
value="webdav://${test.user}:${test.password}@${test.hostname}${test.path}"/>
<sysproperty key="test.sftp.uri" 
value="sftp://${test.user}:${test.password}@${test.hostname}/home/${test.user}${test.path}"/>


Hope this helps a little bit.

-- 
Mario


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message