From: Rob van der Linde Date: Tue, 31 Oct 2023 02:33:55 +0000 (+1300) Subject: netcmd: tests: rename base class to be used by more tests X-Git-Tag: talloc-2.4.2~750 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcc77601f2fb4d5b0bd512aa5fe66d00a230a0a7;p=thirdparty%2Fsamba.git netcmd: tests: rename base class to be used by more tests Signed-off-by: Rob van der Linde Reviewed-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/tests/samba_tool/domain_auth_base.py b/python/samba/tests/samba_tool/domain_auth_base.py index 7d1e13393b0..d514bbc360e 100644 --- a/python/samba/tests/samba_tool/domain_auth_base.py +++ b/python/samba/tests/samba_tool/domain_auth_base.py @@ -30,8 +30,8 @@ HOST = "ldap://{DC_SERVER}".format(**os.environ) CREDS = "-U{DC_USERNAME}%{DC_PASSWORD}".format(**os.environ) -class BaseAuthCmdTest(SambaToolCmdTest): - """Base test class for samba-tool domain auth policy and silo commands.""" +class SiloTest(SambaToolCmdTest): + """Base test class for silo and policy related commands.""" @classmethod def setUpClass(cls): diff --git a/python/samba/tests/samba_tool/domain_auth_policy.py b/python/samba/tests/samba_tool/domain_auth_policy.py index 8233b7dd225..d0b38c6460b 100644 --- a/python/samba/tests/samba_tool/domain_auth_policy.py +++ b/python/samba/tests/samba_tool/domain_auth_policy.py @@ -30,10 +30,10 @@ from samba.netcmd.domain.models.exceptions import ModelError from samba.samdb import SamDB from samba.sd_utils import SDUtils -from .domain_auth_base import BaseAuthCmdTest +from .domain_auth_base import SiloTest -class AuthPolicyCmdTestCase(BaseAuthCmdTest): +class AuthPolicyCmdTestCase(SiloTest): def test_list(self): """Test listing authentication policies in list format.""" diff --git a/python/samba/tests/samba_tool/domain_auth_silo.py b/python/samba/tests/samba_tool/domain_auth_silo.py index 75f5e0b7e01..5c5ab84f698 100644 --- a/python/samba/tests/samba_tool/domain_auth_silo.py +++ b/python/samba/tests/samba_tool/domain_auth_silo.py @@ -27,10 +27,10 @@ from samba.netcmd.domain.models.exceptions import ModelError from samba.samdb import SamDB from samba.sd_utils import SDUtils -from .domain_auth_base import BaseAuthCmdTest +from .domain_auth_base import SiloTest -class AuthSiloCmdTestCase(BaseAuthCmdTest): +class AuthSiloCmdTestCase(SiloTest): def test_list(self): """Test listing authentication silos in list format.""" @@ -498,7 +498,7 @@ class AuthSiloCmdTestCase(BaseAuthCmdTest): self.assertNotIn("Try --force", err) -class AuthSiloMemberCmdTestCase(BaseAuthCmdTest): +class AuthSiloMemberCmdTestCase(SiloTest): def setUp(self): super().setUp()