summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2010-08-29 17:17:47 +0300
committerKamen Mazdrashki <kamenim@samba.org>2010-08-30 09:55:30 +0300
commit0007203978eaf3b570d00862a95fecd1193e3f85 (patch)
treede8b2e643e7a126b97b4c3d931a5aa1ad5c444f7 /source4/torture
parent11a3d78951c897c46264203daaad12a3ead5cf8c (diff)
downloadsamba-0007203978eaf3b570d00862a95fecd1193e3f85.tar.gz
samba-0007203978eaf3b570d00862a95fecd1193e3f85.tar.bz2
samba-0007203978eaf3b570d00862a95fecd1193e3f85.zip
s4-drs-test: Use dns hostnames to run 'net drs replicate' command
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/drs/python/delete_object.py10
1 files changed, 5 insertions, 5 deletions
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