Skip to content

Commit

Permalink
Issue 6336 - Fix failing CI tests (roles) due to slow import (#6337)
Browse files Browse the repository at this point in the history
Bug description:
	Tests test_managed_and_filtered_role_rewrite and test_not_such_entry_role_rewrite
	import a significant number of entries (>90K).
	If import rate drop below 800/sec the tests fail

Fix description:
	increase the maximum time to wait.

fixes: 636

Reviewed by: Pierre Rogier (Thanks)
  • Loading branch information
tbordaz committed Sep 23, 2024
1 parent f6ddef9 commit 154b580
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dirsrvtests/tests/suites/roles/basic_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,8 +573,8 @@ def test_managed_and_filtered_role_rewrite(topo, request):
# online import
import_task = ImportTask(topo.standalone)
import_task.import_suffix_from_ldif(ldiffile=import_ldif, suffix=DEFAULT_SUFFIX)
# Check for up to 120sec that the completion
for i in range(1, 12):
# Check for up to 200sec that the completion
for i in range(1, 20):
if len(topo.standalone.ds_error_log.match('.*import userRoot: Import complete. Processed 9000.*')) > 0:
break
time.sleep(10)
Expand Down Expand Up @@ -708,8 +708,8 @@ def test_not_such_entry_role_rewrite(topo, request):
# online import
import_task = ImportTask(topo.standalone)
import_task.import_suffix_from_ldif(ldiffile=import_ldif, suffix=DEFAULT_SUFFIX)
# Check for up to 120sec that the completion
for i in range(1, 12):
# Check for up to 200sec that the completion
for i in range(1, 20):
if len(topo.standalone.ds_error_log.match('.*import userRoot: Import complete. Processed 9100.*')) > 0:
break
time.sleep(10)
Expand Down

0 comments on commit 154b580

Please sign in to comment.