]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
netcmd: tests: rename base class to be used by more tests
authorRob van der Linde <rob@catalyst.net.nz>
Tue, 31 Oct 2023 02:33:55 +0000 (15:33 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 15 Nov 2023 04:05:34 +0000 (04:05 +0000)
Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/samba_tool/domain_auth_base.py
python/samba/tests/samba_tool/domain_auth_policy.py
python/samba/tests/samba_tool/domain_auth_silo.py

index 7d1e13393b0772bdb6d681ba2c80688b6ef06a90..d514bbc360e726bb1939e591bd6fc4471645d014 100644 (file)
@@ -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):
index 8233b7dd225d570ae69df8a17935b9ade05f2d2b..d0b38c6460bde16d7aa3d4f4a534509847fb2ff4 100644 (file)
@@ -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."""
index 75f5e0b7e0155cbfbe1e56fa4cf95a4caae5128a..5c5ab84f6985c598fd8497f61fe7cdbcf5107d8e 100644 (file)
@@ -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()