From: Andrew Bartlett Date: Sun, 23 Jul 2023 23:36:36 +0000 (+1200) Subject: s4-torture/drs: Create temp OU with a unique name per test X-Git-Tag: samba-4.17.11~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6442c8c3defcd8b937ff677344344f6233f3ffbc;p=thirdparty%2Fsamba.git s4-torture/drs: Create temp OU with a unique name per test It is always better to keep the testing OUs unique if possible. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15401 Signed-off-by: Andrew Bartlett Reviewed-by: Stefan Metzmacher (cherry picked from commit 628eab11b3c2e82875bf602e363b781d3e5eb96d) --- diff --git a/source4/torture/drs/python/getncchanges.py b/source4/torture/drs/python/getncchanges.py index b101e9e2a08..2095bc61a77 100644 --- a/source4/torture/drs/python/getncchanges.py +++ b/source4/torture/drs/python/getncchanges.py @@ -49,7 +49,8 @@ class DrsReplicaSyncIntegrityTestCase(drs_base.DrsBaseTestCase): self.set_test_ldb_dc(self.ldb_dc2) self.ou = str(samba.tests.create_test_ou(self.test_ldb_dc, - "getncchanges")) + "getncchanges." + self.id().rsplit(".", 1)[1])) + self.base_dn = self.test_ldb_dc.get_default_basedn() self.default_conn = DcConnection(self, self.ldb_dc2, self.dnsname_dc2)