1
0
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:
Joseph Sutton 2021-06-16 11:01:50 +12:00 committed by Jule Anger
parent de8c2bf0cc
commit 0e86cc3d59
2 changed files with 2 additions and 3 deletions

View File

@ -78,7 +78,6 @@ class KDCBaseTest(RawKerberosTest):
def setUpClass(cls):
super().setUpClass()
cls._lp = None
cls.host = os.environ["SERVER"]
cls._ldb = None

View File

@ -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()