Import Upstream version 4.12.4

This commit is contained in:
geos_one
2025-08-12 22:28:56 +02:00
parent 03a8170b15
commit 9181ee2487
1629 changed files with 874094 additions and 554378 deletions

View File

@@ -87,6 +87,11 @@ class AutomemberTracker(Tracker):
return self.make_command('automember_add_condition', self.cn,
*args, **kwargs)
def make_remove_condition_command(self, *args, **kwargs):
""" Make function that issues automember_remove_condition """
return self.make_command('automember_remove_condition', self.cn,
*args, **kwargs)
def track_create(self):
""" Updates expected state for automember creation"""
self.attrs = dict(
@@ -189,6 +194,17 @@ class AutomemberTracker(Tracker):
result = command()
self.check_add_condition(result)
def add_condition_exclusive(self, key, type, exclusiveregex):
""" Add a condition with given exclusive regex and check for result.
Only one condition can be added. For more specific uses please
use make_add_condition_command instead. """
command = self.make_add_condition_command(
key=key, type=type, automemberexclusiveregex=exclusiveregex)
self.attrs['automemberexclusiveregex'] = [u'%s=%s' %
(key, exclusiveregex[0])]
result = command()
self.check_add_condition(result)
def rebuild(self, no_wait=False):
""" Rebuild automember conditions and check for result """
command = self.make_rebuild_command(type=self.membertype,