From: Joseph Sutton Date: Mon, 31 Jul 2023 00:29:26 +0000 (+1200) Subject: tests/krb5: Keep claim types for subsequent tests X-Git-Tag: tevent-0.16.0~1018 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=942cc0b6267f54fb4f35c588ac4b105b625787dd;p=thirdparty%2Fsamba.git tests/krb5: Keep claim types for subsequent tests We want to be able to reuse them across several tests. Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/tests/krb5/kdc_base_test.py b/python/samba/tests/krb5/kdc_base_test.py index 96ae43a0937..457119e5489 100644 --- a/python/samba/tests/krb5/kdc_base_test.py +++ b/python/samba/tests/krb5/kdc_base_test.py @@ -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,