From: Joseph Sutton Date: Thu, 10 Aug 2023 21:39:27 +0000 (+1200) Subject: tests/krb5: Split out new AuthnPolicyBaseTests class X-Git-Tag: tevent-0.16.0~1016 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5492d76d3b0d9f0fb2f5dd199e21cbdd96f6071;p=thirdparty%2Fsamba.git tests/krb5: Split out new AuthnPolicyBaseTests class This class provides a useful base for other tests to build upon. Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/tests/krb5/authn_policy_tests.py b/python/samba/tests/krb5/authn_policy_tests.py index c0ea49bf13e..068f2fe3634 100755 --- a/python/samba/tests/krb5/authn_policy_tests.py +++ b/python/samba/tests/krb5/authn_policy_tests.py @@ -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