mirror of
https://github.com/samba-team/samba.git
synced 2025-03-20 22:50:26 +03:00
tests/krb5: Deduplicate 'host' attribute initialisation
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> BUG: https://bugzilla.samba.org/show_bug.cgi?id=14817 (cherry picked from commit 3e621dcb6966f75034bb948a2705358d43454202)
This commit is contained in:
parent
de8c2bf0cc
commit
0e86cc3d59
@ -78,7 +78,6 @@ class KDCBaseTest(RawKerberosTest):
|
||||
def setUpClass(cls):
|
||||
super().setUpClass()
|
||||
cls._lp = None
|
||||
cls.host = os.environ["SERVER"]
|
||||
|
||||
cls._ldb = None
|
||||
|
||||
|
@ -375,6 +375,8 @@ class RawKerberosTest(TestCaseInTempDir):
|
||||
def setUpClass(cls):
|
||||
super().setUpClass()
|
||||
|
||||
cls.host = samba.tests.env_get_var_value('SERVER')
|
||||
|
||||
# A dictionary containing credentials that have already been
|
||||
# obtained.
|
||||
cls.creds_dict = {}
|
||||
@ -389,8 +391,6 @@ class RawKerberosTest(TestCaseInTempDir):
|
||||
strict_checking = '1'
|
||||
self.strict_checking = bool(int(strict_checking))
|
||||
|
||||
self.host = samba.tests.env_get_var_value('SERVER')
|
||||
|
||||
self.s = None
|
||||
|
||||
self.unspecified_kvno = object()
|
||||
|
Loading…
x
Reference in New Issue
Block a user