Bug 37401 - 10_ldap/80acl_unregistration_basis fails
10_ldap/80acl_unregistration_basis fails
Status: CLOSED FIXED
Product: UCS Test
Classification: Unclassified
Component: LDAP
unspecified
Other Linux
: P5 normal (vote)
: ---
Assigned To: Ammar Najjar
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-12-19 11:43 CET by Ammar Najjar
Modified: 2023-03-25 06:48 CET (History)
3 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ammar Najjar univentionstaff 2014-12-19 11:43:46 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.
Comment 1 Ammar Najjar univentionstaff 2015-01-05 09:30:21 CET
Script is updated and sleep statements are replaced with active functions (wait_for_ldap, wait_for_replication_and_postrun).
Comment 2 Philipp Hahn univentionstaff 2015-01-09 13:03:32 CET
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/>
Comment 3 Philipp Hahn univentionstaff 2015-01-09 13:16:54 CET
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
Comment 4 Ammar Najjar univentionstaff 2015-01-12 11:32:45 CET
(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.
Comment 5 Ammar Najjar univentionstaff 2015-01-12 11:38:55 CET
(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.
Comment 6 Stefan Gohmann univentionstaff 2016-10-12 07:48:41 CEST
For this bug is no separate QA needed.