From b1b7d7561acccfec248c6a2f260d81c0f3bacbe2 Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Fri, 26 May 2023 12:07:42 +1200 Subject: [PATCH] =?UTF-8?q?tests/krb5:=20Don=E2=80=99t=20cache=20accounts?= =?UTF-8?q?=20with=20an=20assigned=20policy=20or=20silo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Such accounts are virtually never reused. Not caching them (thus deleting them early) grants significant time savings. Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- python/samba/tests/krb5/authn_policy_tests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/samba/tests/krb5/authn_policy_tests.py b/python/samba/tests/krb5/authn_policy_tests.py index 6182388f262..c94967a2340 100755 --- a/python/samba/tests/krb5/authn_policy_tests.py +++ b/python/samba/tests/krb5/authn_policy_tests.py @@ -130,8 +130,10 @@ class AuthnPolicyTests(KdcTgsBaseTests): members += (member_of,) if assigned_policy is not None: opts['assigned_policy'] = str(assigned_policy) + cached = False # Policies are rarely reused between accounts. if assigned_silo is not None: opts['assigned_silo'] = str(assigned_silo) + cached = False # Silos are rarely reused between accounts. if allowed_rodc: opts['allowed_replication_mock'] = True opts['revealed_to_mock_rodc'] = True