[Freeipa-devel] [PATCH] 817 Add option to wait for values

Rob Crittenden rcritten at redhat.com
Fri Jul 1 19:45:25 UTC 2011


389-ds postop plugins, such as the managed entry and memberof plugins, 
add values after the data has been returned to the client. In the case 
of the managed entry plugin this affects the parent entry as well (adds 
an objectclass value).

This wreaks havoc on our tests as the values don't match what we expect.

The solution is to wait for the postop plugins to finish their work, 
then return. I've added this as an option. The downside is it is going 
to naturally slow things down, so it is off by default.

It is currently only used in the hostgroup plugin.

The option is wait_for_attr. Add this to ~/.ipa/default.conf and set it 
to True and all the current tests will pass (assuming you apply patches 
814-816 as well).

So now we won't have any excuses for missing test failures in the unit 
tests...

rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-rcrit-817-wait.patch
Type: text/x-diff
Size: 4058 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20110701/40f5a307/attachment.bin>


More information about the Freeipa-devel mailing list