]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
tests/krb5: Split out new AuthnPolicyBaseTests class
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 10 Aug 2023 21:39:27 +0000 (09:39 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 14 Aug 2023 04:57:34 +0000 (04:57 +0000)
This class provides a useful base for other tests to build upon.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/krb5/authn_policy_tests.py

index c0ea49bf13e59435da00f3977db91b6a6016c9aa..068f2fe3634e633db3a1d4f467c553356342602c 100755 (executable)
@@ -160,7 +160,7 @@ def policy_check_fn(fn):
     return wrapper_fn
 
 
-class AuthnPolicyTests(AuthLogTestBase, KdcTgsBaseTests):
+class AuthnPolicyBaseTests(AuthLogTestBase, KdcTgsBaseTests):
     @classmethod
     def setUpClass(cls):
         super().setUpClass()
@@ -1118,6 +1118,8 @@ class AuthnPolicyTests(AuthLogTestBase, KdcTgsBaseTests):
         ticket_creds = kdc_exchange_dict['rep_ticket_creds']
         return ticket_creds
 
+
+class AuthnPolicyTests(AuthnPolicyBaseTests):
     def setUp(self):
         super().setUp()
         self.do_asn1_print = global_asn1_print