1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

tests/krb5: Don’t cache accounts with an assigned policy or silo

Such accounts are virtually never reused. Not caching them (thus
deleting them early) grants significant time savings.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-05-26 12:07:42 +12:00 committed by Andrew Bartlett
parent dc0d96b058
commit b1b7d7561a

View File

@ -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