[rfc] how to write server for testing UNC path?
Robert Collins
robertc at robertcollins.net
Wed Apr 4 08:40:51 BST 2007
On Tue, 2007-02-13 at 22:41 +0200, Alexander Belchenko wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I'd like extend our test suite for explicit testing of UNC paths on any platform.
> IIUC, I need to write some special server for test suite.
> I'd need some help and guidance on this.
I think thats right. The first step is to define how it should operate.
I'd suggest that it look like a network path? i.e. local_abspath will
error for it.
The server is responsible for setting up and tearing down the
registration of the transport with the transport prefix registry. The
returned urls then cause get_transport to create the right sort of
Transport - you probably want to get LocalTransport objects, pointing at
the UNC server running on the local machine; this will require having
something which makes the UNC paths be available...
However if the goal is to test that code outside LocalTransport handles
UNC paths correctly, you dont need to return urls that cause
LocalTransport to be opened, instead you can return register something
inside the file:// namespace (I presume thats how unc is handled today)
which will capture the url and decorate LocalTransport accordingly so
that you work inside the test directory.
I guess I need more info about the sort of things you want to be sure
work right to give better guidance.
-Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070404/143a86f0/attachment.pgp
More information about the bazaar
mailing list