[Freeipa-devel] [PATCH] Add 'continuous' mode to LDAPDelete. Fix *-del unit tests.

Adam Young ayoung at redhat.com
Tue Oct 5 18:39:26 UTC 2010


On 10/05/2010 11:52 AM, Pavel Zuna wrote:
> On 10/05/2010 04:47 PM, Pavel Zuna wrote:
>> All LDAPMultiQuery sub-classes (currently only LDAPDelete) now have the
>> --continuous flag (off by default). The flag should indicate that the
>> command shouldn't stop on errors and continue operation with the next
>> primary key on the arguments lists.
>>
>> This effectively fixes *-del unit tests, because continuous mode is off
>> by default. (It was on before this patch and there was no option to turn
>> it off.)
>>
>> Ticket #321
>>
>> Pavel
>
> I forgot to mention that this depends on my patch number 27, because 
> they modify the same file (baseldap.py).
>
> Pavel
>
> _______________________________________________
> Freeipa-devel mailing list
> Freeipa-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/freeipa-devel


I still get a slew of test failures.  Again, this may be from my setup, 
but I suspect not.


test_group[2]: group_del: Try to delete non-existent u'testgroup1' ... FAIL
test_group[13]: group_del: Try to delete non-existent u'testgroup2' ... FAIL
test_group[26]: group_del: Try to delete non-existent u'testgroup1' ... FAIL
test_group[30]: group_del: Try to delete non-existent u'testgroup2' ... FAIL
test_group[37]: group_del: Try to delete a managed group u'tuser1' ... FAIL
test_hbacsvcgroup[2]: hbacsvcgroup_del: Try to delete non-existent 
u'testhbacsvcgroup1' ... FAIL
test_host[2]: host_del: Try to delete non-existent 
u'testhost1.ayoung.boston.devel.redhat.com' ... FAIL
test_host[14]: host_del: Try to delete non-existent 
u'testhost1.ayoung.boston.devel.redhat.com' ... FAIL
test_hostgroup[2]: hostgroup_del: Try to delete non-existent 
u'testhostgroup1' ... FAIL
test_rolegroup[2]: rolegroup_del: Try to delete non-existent 
u'test-rolegroup-1' ... FAIL
test_rolegroup[20]: rolegroup_del: Try to delete non-existent 
u'test-rolegroup-1' ... FAIL
test_host[2]: service_del: Try to delete non-existent 
u'HTTP/testhost1.ayoung.boston.devel.redhat.com at AYOUNG.BOSTON.DEVEL.REDHAT.COM' 
... FAIL
test_host[16]: service_del: Try to delete non-existent 
u'HTTP/testhost1.ayoung.boston.devel.redhat.com at AYOUNG.BOSTON.DEVEL.REDHAT.COM' 
... FAIL
test_sudocmd[2]: sudocmd_del: Try to delete non-existent 
u'/usr/bin/sudotestcmd1' ... FAIL
test_sudocmd[12]: sudocmd_del: Try to delete non-existent 
u'/usr/bin/sudotestcmd1' ... FAIL
test_sudocmdgroup[4]: sudocmdgroup_del: Try to delete non-existent 
u'testsudocmdgroup1' ... FAIL
test_sudocmdgroup[13]: sudocmdgroup_del: Try to delete non-existent 
u'testsudocmdgroup2' ... FAIL
test_sudocmdgroup[26]: sudocmdgroup_del: Try to delete non-existent 
u'testsudocmdgroup1' ... FAIL
test_sudocmdgroup[30]: sudocmdgroup_del: Try to delete non-existent 
u'testsudocmdgroup2' ... FAIL
test_taskgroup[2]: taskgroup_del: Try to delete non-existent 
u'test-taskgroup-1' ... FAIL
test_taskgroup[19]: taskgroup_del: Try to delete non-existent 
u'test-taskgroup-1' ... FAIL
test_user[2]: user_del: Try to delete non-existent u'tuser1' ... FAIL
test_user[15]: user_del: Try to delete non-existent u'tuser1' ... FAIL
FAIL: test_group[2]: group_del: Try to delete non-existent u'testgroup1'
FAIL: test_group[13]: group_del: Try to delete non-existent u'testgroup2'
FAIL: test_group[26]: group_del: Try to delete non-existent u'testgroup1'
FAIL: test_group[30]: group_del: Try to delete non-existent u'testgroup2'
FAIL: test_group[37]: group_del: Try to delete a managed group u'tuser1'
FAIL: test_hbacsvcgroup[2]: hbacsvcgroup_del: Try to delete non-existent 
u'testhbacsvcgroup1'
FAIL: test_host[2]: host_del: Try to delete non-existent 
u'testhost1.ayoung.boston.devel.redhat.com'
FAIL: test_host[14]: host_del: Try to delete non-existent 
u'testhost1.ayoung.boston.devel.redhat.com'
FAIL: test_hostgroup[2]: hostgroup_del: Try to delete non-existent 
u'testhostgroup1'
FAIL: test_rolegroup[2]: rolegroup_del: Try to delete non-existent 
u'test-rolegroup-1'
FAIL: test_rolegroup[20]: rolegroup_del: Try to delete non-existent 
u'test-rolegroup-1'
FAIL: test_host[2]: service_del: Try to delete non-existent 
u'HTTP/testhost1.ayoung.boston.devel.redhat.com at AYOUNG.BOSTON.DEVEL.REDHAT.COM'
FAIL: test_host[16]: service_del: Try to delete non-existent 
u'HTTP/testhost1.ayoung.boston.devel.redhat.com at AYOUNG.BOSTON.DEVEL.REDHAT.COM'
FAIL: test_sudocmd[2]: sudocmd_del: Try to delete non-existent 
u'/usr/bin/sudotestcmd1'
FAIL: test_sudocmd[12]: sudocmd_del: Try to delete non-existent 
u'/usr/bin/sudotestcmd1'
FAIL: test_sudocmdgroup[4]: sudocmdgroup_del: Try to delete non-existent 
u'testsudocmdgroup1'
FAIL: test_sudocmdgroup[13]: sudocmdgroup_del: Try to delete 
non-existent u'testsudocmdgroup2'
FAIL: test_sudocmdgroup[26]: sudocmdgroup_del: Try to delete 
non-existent u'testsudocmdgroup1'
FAIL: test_sudocmdgroup[30]: sudocmdgroup_del: Try to delete 
non-existent u'testsudocmdgroup2'
FAIL: test_taskgroup[2]: taskgroup_del: Try to delete non-existent 
u'test-taskgroup-1'
FAIL: test_taskgroup[19]: taskgroup_del: Try to delete non-existent 
u'test-taskgroup-1'
FAIL: test_user[2]: user_del: Try to delete non-existent u'tuser1'
FAIL: test_user[15]: user_del: Try to delete non-existent u'tuser1'




More information about the Freeipa-devel mailing list