[389-devel] lib389: cleanup __init__

Rich Megginson rmeggins at redhat.com
Thu Oct 31 16:32:13 UTC 2013


On 10/31/2013 09:58 AM, Roberto Polli wrote:
> Hi @all,
>
> I started investigating in mocking with fakeldap, and it seems an easy and
> viable way of adding unittests.
>
> A main issue is the DSAdmin.__init__ complexity.
>
> I thought - a long time ago actually - to remove from DSAdmin all cached
> references to backends, suffixes and configuration.
>
> If we want to add a cache layer we can do it afterward. And with some cache
> pattern.
Part of the complexity is due to trying to keep data across a restart - 
that is, if you call stop() then start(), you want start() to 
automatically re-establish the connection - to do that, you need to 
store the credentials.

>
> Let me know + Peace,
> R.



More information about the 389-devel mailing list