summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJoseph Sutton <josephsutton@catalyst.net.nz>2023-05-01 09:45:37 +1200
committerAndrew Bartlett <abartlet@samba.org>2023-05-05 02:54:31 +0000
commite959485550e0418f7e9ad02b45b5e89c0f01e422 (patch)
treece2e3669dcc73b6a4e84d2e6dfa3272b45634e7a /python
parent0e27b297a29ba933be7a1a810a3f831dce3f64de (diff)
downloadsamba-e959485550e0418f7e9ad02b45b5e89c0f01e422.tar.gz
tests/krb5: Don’t delete silo until all tests have finished
It’s possible that we reuse the same silo across multiple tests. In that case, we should not delete it until we are sure we have finished with it. Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python')
-rw-r--r--python/samba/tests/krb5/kdc_base_test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/samba/tests/krb5/kdc_base_test.py b/python/samba/tests/krb5/kdc_base_test.py
index 72bb648434d..bf0e6642527 100644
--- a/python/samba/tests/krb5/kdc_base_test.py
+++ b/python/samba/tests/krb5/kdc_base_test.py
@@ -537,8 +537,8 @@ class KDCBaseTest(RawKerberosTest):
if enforced is not None:
details['msDS-AuthNPolicySiloEnforced'] = enforced
- # Save the silo DN so it can be deleted in tearDown().
- self.test_accounts.append(str(authn_silo_dn))
+ # Save the silo DN so it can be deleted in tearDownClass().
+ self.accounts.append(str(authn_silo_dn))
# Remove the silo if it exists; this will happen if a previous test run
# failed.