Univention Bugzilla – Bug 37401
10_ldap/80acl_unregistration_basis fails
Last modified: 2023-03-25 06:48:14 CET
10_ldap/80acl_unregistration_basis failed in the last two Jenkins runs #115 & #116 with the same failing message: ### FAIL ### New user was able to modify cn=hdkytsjbjz,dc=autotest201,dc=local ### ### Test script looks a bit old, and might need a review, for example it is using sleep to wait for certain actions. for this specific failing case, using wait_for_replication_and_postrun() instead of sleep(30) made the script passes.
Script is updated and sleep statements are replaced with active functions (wait_for_ldap, wait_for_replication_and_postrun).
Jenkins regression r57050: 10_ldap.80acl_unregistration_basis.test > ### FAIL ### > New user was able to modify cn=rthcfso0gq,dc=autotest093,dc=local <http://jenkins.knut.univention.de:8080/job/UCS-4.0/job/UCS-4.0-0/job/Autotest%20MultiEnv/lastCompletedBuild/SambaVersion=s4,Systemrolle=backup/testReport/10_ldap/80acl_unregistration_basis/test/>
2nd Jenkins regression: <http://jenkins.knut.univention.de:8080/job/UCS-4.0/job/UCS-4.0-0/job/Autotest%20MultiEnv/lastCompletedBuild/SambaVersion=s4,Systemrolle=member/testReport/10_ldap/80acl_unregistration_basis/test/> > Traceback (most recent call last): > File "80acl_unregistration_basis", line 89, in <module> > main() > File "80acl_unregistration_basis", line 69, in main > wait_for_ldap() > File "/usr/share/ucs-test/10_ldap/ldap_extension_utils.py", line 51, in wait_for_ldap > print "(%s) process is running now.\n" % pinfo[0] > IndexError: list index out of range
(In reply to Philipp Hahn from comment #3) > 2nd Jenkins regression: > <http://jenkins.knut.univention.de:8080/job/UCS-4.0/job/UCS-4.0-0/job/ > Autotest%20MultiEnv/lastCompletedBuild/SambaVersion=s4,Systemrolle=member/ > testReport/10_ldap/80acl_unregistration_basis/test/> > > > Traceback (most recent call last): > > File "80acl_unregistration_basis", line 89, in <module> > > main() > > File "80acl_unregistration_basis", line 69, in main > > wait_for_ldap() > > File "/usr/share/ucs-test/10_ldap/ldap_extension_utils.py", line 51, in wait_for_ldap > > print "(%s) process is running now.\n" % pinfo[0] > > IndexError: list index out of range Logical mistake solved.
(In reply to Philipp Hahn from comment #2) > Jenkins regression r57050: 10_ldap.80acl_unregistration_basis.test > > ### FAIL ### > > New user was able to modify cn=rthcfso0gq,dc=autotest093,dc=local > > <http://jenkins.knut.univention.de:8080/job/UCS-4.0/job/UCS-4.0-0/job/ > Autotest%20MultiEnv/lastCompletedBuild/SambaVersion=s4,Systemrolle=backup/ > testReport/10_ldap/80acl_unregistration_basis/test/> Timing issue in ucs_unregisterLDAPExtension; time.sleep is added and Bug #37516 is created.
For this bug is no separate QA needed.