On Nov 13, 2004, at 12:47 PM, Graham Barr wrote:
Assuming you mean Net::LDAP,
D'oh! Sorry. I must not have had my coffee yet.
it requires you slapd, the openLDAP server, installed and it runs its own server. If you do not have slapd then any test requiring a server is skipped.
Okay.
I have at times though about writing a module that can fake a socket. The module would do packet capture when I build the release and then it would use those packets when others run tests.
That would be cool. I think what I might do is use Test::MockObject or something similar to mock those parts of the Net::LDAP interface that I'll use for Bricolage authentication. I probably won't use too many methods, anyway.
Regards,
David