[Chicago-talk] Faking an LDAP server during tests?

Jonathan Rockway jon at jrock.us
Wed Jun 21 09:54:00 PDT 2006


warren at warrenandrachel.com wrote:
> Have you thought of connecting to a real LDAP server and doing your
> queries, then using Storable or Data::Dumper to store the results of
> these? That would greatly simplify your needs if all you had to do was
> create a hash lookup that bound LDAP queries to result sets.
> 

You still need some way to "play back" these results -- this
functionality isn't built into Net::LDAP, and thus is where the
difficulty arises.

However, it's almost worth it to make a small dummy LDAP server, start
that, then run the tests.  Still, that's kind of a specific solution,
rather than a decent Good::Enough::For::CPAN general solution :)

Regards,
Jonathan Rockway


More information about the Chicago-talk mailing list