From 0007203978eaf3b570d00862a95fecd1193e3f85 Mon Sep 17 00:00:00 2001 From: Kamen Mazdrashki Date: Sun, 29 Aug 2010 17:17:47 +0300 Subject: s4-drs-test: Use dns hostnames to run 'net drs replicate' command --- source4/torture/drs/python/delete_object.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source4') diff --git a/source4/torture/drs/python/delete_object.py b/source4/torture/drs/python/delete_object.py index ee17c914f2..67fb27a39b 100644 --- a/source4/torture/drs/python/delete_object.py +++ b/source4/torture/drs/python/delete_object.py @@ -147,9 +147,9 @@ class DrsDeleteObjectTestCase(samba.tests.TestCase): and vice versa so both DCs are synchronized before test_ReplicateDeteleteObject test""" # replicate Domain NC on DC2 from DC1 - self._net_drs_replicate(DC=self.dc2, fromDC=self.dc1) + self._net_drs_replicate(DC=self.dnsname_dc2, fromDC=self.dnsname_dc1) # replicate Domain NC on DC1 from DC2 - self._net_drs_replicate(DC=self.dc1, fromDC=self.dc2) + self._net_drs_replicate(DC=self.dnsname_dc1, fromDC=self.dnsname_dc2) pass def test_ReplicateDeteleteObject(self): @@ -177,7 +177,7 @@ class DrsDeleteObjectTestCase(samba.tests.TestCase): self._check_user(sam_ldb=self.ldb_dc1, user_orig=user_orig, is_deleted=False) # trigger replication from DC1 to DC2 - self._net_drs_replicate(DC=self.dc2, fromDC=self.dc1) + self._net_drs_replicate(DC=self.dnsname_dc2, fromDC=self.dnsname_dc1) # delete user on DC1 self.ldb_dc1.delete(user_dn) @@ -188,7 +188,7 @@ class DrsDeleteObjectTestCase(samba.tests.TestCase): # trigger replication from DC2 to DC1 # to check if deleted object gets restored - self._net_drs_replicate(DC=self.dc1, fromDC=self.dc2) + self._net_drs_replicate(DC=self.dnsname_dc1, fromDC=self.dnsname_dc2) # check user info on DC1 - should be deleted self._check_user(sam_ldb=self.ldb_dc1, user_orig=user_orig, is_deleted=True) # check user info on DC2 - should be valid user @@ -196,7 +196,7 @@ class DrsDeleteObjectTestCase(samba.tests.TestCase): # trigger replication from DC1 to DC2 # to check if deleted object is replicated - self._net_drs_replicate(DC=self.dc2, fromDC=self.dc1) + self._net_drs_replicate(DC=self.dnsname_dc2, fromDC=self.dnsname_dc1) # check user info on DC1 - should be deleted self._check_user(sam_ldb=self.ldb_dc1, user_orig=user_orig, is_deleted=True) # check user info on DC2 - should be deleted -- cgit