pytest/ridalloc_exop: Remove unused variables
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Tue, 28 Feb 2023 20:24:52 +0000 (09:24 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 3 Mar 2023 01:07:36 +0000 (01:07 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/torture/drs/python/ridalloc_exop.py

index 7869967cf1daa41dc42d722e056420a51233ab2e..76b36854adfe6fc8d6c2eae6b103ebcac2a085a1 100644 (file)
@@ -364,8 +364,6 @@ class DrsReplicaSyncTestCase(drs_base.DrsBaseTestCase):
 
             self.assertFalse("rIDSetReferences" in res[0])
 
-            smbconf = os.path.join(targetdir, "etc/smb.conf")
-
             chk = dbcheck(new_ldb, verbose=False, fix=True, yes=True, quiet=True)
 
             self.assertEqual(chk.check_database(DN=server_ref_dn, scope=ldb.SCOPE_BASE), 1, "Should have fixed one error (missing RID Set)")
@@ -415,8 +413,6 @@ class DrsReplicaSyncTestCase(drs_base.DrsBaseTestCase):
 
             self.assertFalse("rIDSetReferences" in res[0])
 
-            smbconf = os.path.join(targetdir, "etc/smb.conf")
-
             new_ldb.newuser("ridalloctestuser", "P@ssword!")
 
             # 3. Assert we get the RID Set
@@ -465,8 +461,6 @@ class DrsReplicaSyncTestCase(drs_base.DrsBaseTestCase):
 
             self.assertFalse("rIDSetReferences" in res[0])
 
-            smbconf = os.path.join(targetdir, "etc/smb.conf")
-
             # Create a user to allocate a RID Set for itself (the RID master)
             new_ldb.newuser("ridalloctestuser", "P@ssword!")
 
@@ -490,7 +484,6 @@ class DrsReplicaSyncTestCase(drs_base.DrsBaseTestCase):
         try:
             # Connect to the database
             ldb_url = "tdb://%s" % os.path.join(targetdir, "private/sam.ldb")
-            smbconf = os.path.join(targetdir, "etc/smb.conf")
 
             lp = self.get_loadparm()
             new_ldb = SamDB(ldb_url, credentials=self.get_credentials(),
@@ -522,7 +515,6 @@ class DrsReplicaSyncTestCase(drs_base.DrsBaseTestCase):
         try:
             # Connect to the database
             ldb_url = "tdb://%s" % os.path.join(targetdir, "private/sam.ldb")
-            smbconf = os.path.join(targetdir, "etc/smb.conf")
 
             lp = self.get_loadparm()
             new_ldb = SamDB(ldb_url, credentials=self.get_credentials(),