本文整理汇总了Python中lib389.DirSrv.added_entries方法的典型用法代码示例。如果您正苦于以下问题:Python DirSrv.added_entries方法的具体用法?Python DirSrv.added_entries怎么用?Python DirSrv.added_entries使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类lib389.DirSrv
的用法示例。
在下文中一共展示了DirSrv.added_entries方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setup
# 需要导入模块: from lib389 import DirSrv [as 别名]
# 或者: from lib389.DirSrv import added_entries [as 别名]
def setup():
global conn
conn = DirSrv(**config.auth)
conn.verbose = True
conn.added_entries = []
conn.added_backends = set(['o=mockbe2'])
conn.added_replicas = []
harn_nolog()
示例2: setup
# 需要导入模块: from lib389 import DirSrv [as 别名]
# 或者: from lib389.DirSrv import added_entries [as 别名]
def setup():
global conn
try:
conn = DirSrv(**config.auth)
conn.verbose = True
conn.added_entries = []
except SERVER_DOWN, e:
log.error("To run tests you need a working 389 instance %s" % config.auth)
raise e
示例3: setup
# 需要导入模块: from lib389 import DirSrv [as 别名]
# 或者: from lib389.DirSrv import added_entries [as 别名]
def setup():
# uses an existing 389 instance
# add a suffix
# add an agreement
# This setup is quite verbose but to test DirSrv method we should
# do things manually. A better solution would be to use an LDIF.
global conn
conn = DirSrv(**config.auth)
conn.verbose = True
conn.added_entries = []
conn.added_backends = set(['o=mockbe1'])
conn.added_replicas = []
"""