From: Joseph Sutton Date: Tue, 28 Feb 2023 20:24:52 +0000 (+1300) Subject: pytest/ridalloc_exop: Remove unused variables X-Git-Tag: talloc-2.4.1~1514 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13f386d7d772d29354563f48b19220189bb6d796;p=thirdparty%2Fsamba.git pytest/ridalloc_exop: Remove unused variables Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source4/torture/drs/python/ridalloc_exop.py b/source4/torture/drs/python/ridalloc_exop.py index 7869967cf1d..76b36854adf 100644 --- a/source4/torture/drs/python/ridalloc_exop.py +++ b/source4/torture/drs/python/ridalloc_exop.py @@ -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(),