389ds / 389-ds-base

The enterprise-class Open Source LDAP server for Linux
https://www.port389.org/
Other
200 stars 82 forks source link

CI test acl/ test_timeofday_keyword sometime fails #6222

Open progier389 opened 3 weeks ago

progier389 commented 3 weeks ago

Issue Description The test may fails because of timing issue

  org.replace("seeAlso", "cn=1")

E ldap.INSUFFICIENT_ACCESS: {'msgtype': 103, 'msgid': 3, 'result': 50, 'desc': 'Insufficient access', 'ctrls': [], 'info': "Insufficient 'write' privilege to the 'seeAlso' attribute of entry 'ou=timeofday,ou=keywords,dc=example,dc=com'.\n", 'ldap_request': "modify_ext_s(('ou=Timeofday,ou=Keywords,dc=example,dc=com', [(2, 'seeAlso', [b'cn=1'])]),{'serverctrls': None, 'clientctrls': None, 'escapehatch': 'i am sure'}) on instance standalone1"}

IMHO this test should be done in a loop and the time should be checked after testing the access to verify it is still in the same minute.