Univention Bugzilla – Bug 52346
90_ucsschool/30_import-create_ou_via_cli fails because cleanup_ou() fails
Last modified: 2020-11-11 09:58:03 CET
When a test-OU cannot be removed, the test fails. The reason for not being able to remove a OU is almost always: ----------- ldapError: Operation not allowed on non-leaf: subordinate objects must be deleted first dn = 'cn=users,ou=kvxntk4syd,dc=autotest201,dc=local' ----------- As the test creates and deletes 170 OUs, the likelihood of such a problem is high. Probably some interference / ping-pong with S4. The test fails, because the cleanup_ou() function catches the wrong Exception class. It should catch the right one and try to cleanup again.
Patch available at Bug #37685 *** This bug has been marked as a duplicate of bug 37685 ***
Yes, Bug #37685 handles the root cause in UDM. But this bug is only about the ucs-test case not failing because its tear-down code fails. Just a workaround, but it can be "released" today...