]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
tests/krb5: Keep claim types for subsequent tests
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 31 Jul 2023 00:29:26 +0000 (12:29 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 14 Aug 2023 04:57:34 +0000 (04:57 +0000)
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>
python/samba/tests/krb5/kdc_base_test.py

index 96ae43a0937bdc30de4764008eaa085dc52f9c7e..457119e548913820999bf1cd867e9970c68dd990 100644 (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,