1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

tests/krb5: Keep claim types for subsequent tests

We want to be able to reuse them across several tests.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-07-31 12:29:26 +12:00 committed by Andrew Bartlett
parent f552933760
commit 942cc0b626

View File

@ -780,8 +780,8 @@ class KDCBaseTest(TestCaseInTempDir, RawKerberosTest):
self.assertFalse(force, 'should not fail with force=True')
self.assertEqual(num, ldb.ERR_ENTRY_ALREADY_EXISTS)
else:
# Save the claim DN so it can be deleted in tearDown()
self.test_accounts.append(str(claim_dn))
# Save the claim DN so it can be deleted in tearDownClass()
self.accounts.append(str(claim_dn))
def create_account(self, samdb, name, account_type=AccountType.USER,
spn=None, upn=None, additional_details=None,