|
From: Bayle S. <bs...@uc...> - 2005-08-10 07:59:56
|
i think cadaver is what i used for
testing, too (either that or "dave", i get them confused).
i never scripted a unit
test using it; but eventually i was planning to write one using the
testReadableWriteableCollection class that i use for testing the other
interfaces in WikiGateway (and for testing the Atom server in my Atom
server package). Maybe it would be useful for you. It is a Test::Unit class that tests
interfaces to collections of documents. To use it, you override the
methods {createTestPage, updateTestPage, readTestPage, getTestFeed,
getLink, deleteTestPage}.
Perl superclass:
http://cvs.sourceforge.net/viewcvs.py/interwiki/wikigateway/tests/unittests/testReadableWriteableCollection.pm?view=markup
Perl leaf class:
http://cvs.sourceforge.net/viewcvs.py/interwiki/wikigateway/tests/unittests/testWikiGatewayOnInterwikiSoftware.pm?view=markup
Python superclass:
http://cvs.sourceforge.net/viewcvs.py/interwiki/wikigateway/tests/unittests/TestReadableWriteableCollection.py?rev=1.1&view=log
(see http://cvs.sourceforge.net/viewcvs.py/interwiki/wikigateway/tests/unittests/ for more)
i should document that sometime...
On Tue, Aug 09, 2005 at 06:08:41PM +0200, Alex Schroeder wrote:
> Bayle Shanks schrieb:
> > Which is why I am interested to see what Alex (once he's done) and
> > Janne will have to say about their experiences implementing WebDAV. We
> > need more first-hand evidence about how hard (or how easy) it is to do
> > this.
>
> I think the most important common experience the two of us had was the
> realization how crappy most of the existing WebDAV clients are. :(
>
> It would really be nice if we were to choose a "reference
> implementation". For beginners, I would suggest cadaver -- a command
> line WebDAV client that offers an FTP interface. That means that 1. it
> should be good enough to demonstrate that the wiki can implement a
> filesystem and 2. we can script a unit test using cadaver.
>
> My first goal is a class 1, non-locking, no ACL, no versions interface,
> and prove that it works with cadaver.
>
> Alex.
|