Debian Codegraph @

dirsrvtests/tests/suites/replication/__init__.py

raw
1 """
2 :Requirement: 389-ds-base: Replication
3 """
4 import time
5 import ldap
6 from lib389._constants import DEFAULT_SUFFIX
7
8
9 def get_repl_entries(topo, entry_name, attr_list):
10 """Get a list of test entries from all suppliers"""
11
12 entries_list = []
13
14 time.sleep(10)
15
16 for inst in topo.all_insts.values():
17 entries = inst.search_s(DEFAULT_SUFFIX, ldap.SCOPE_SUBTREE, "uid={}".format(entry_name), attr_list)
18 entries_list += entries
19
20 return entries_list
21