summaryrefslogtreecommitdiff
path: root/source4/torture/drs
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2010-12-01 20:22:06 +0200
committerKamen Mazdrashki <kamenim@samba.org>2010-12-02 19:02:52 +0200
commitebdbf9bd900f710459804410a4cb2e4504384e42 (patch)
tree395ea56e32c5b561e3b591aa809071418d385c71 /source4/torture/drs
parentd8e56245c064011902910dcef8f2e18eebaf0810 (diff)
downloadsamba-ebdbf9bd900f710459804410a4cb2e4504384e42.tar.gz
samba-ebdbf9bd900f710459804410a4cb2e4504384e42.tar.bz2
samba-ebdbf9bd900f710459804410a4cb2e4504384e42.zip
s4-test/repl_schema: Test classSchema and attributeSchema replication in separate tests
Diffstat (limited to 'source4/torture/drs')
-rw-r--r--source4/torture/drs/python/repl_schema.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/source4/torture/drs/python/repl_schema.py b/source4/torture/drs/python/repl_schema.py
index 02e2afeee8..ef810f63bd 100644
--- a/source4/torture/drs/python/repl_schema.py
+++ b/source4/torture/drs/python/repl_schema.py
@@ -172,6 +172,24 @@ class DrsReplSchemaTestCase(samba.tests.TestCase):
self.assertEquals(len(res_dc2), 1,
"%s doesn't exists on %s" % (obj_dn, self.dnsname_dc2))
+ def test_class(self):
+ """Simple test for classSchema replication"""
+ # add new classSchema object
+ (c_ldn, c_dn) = self._schema_new_class(self.ldb_dc1, "cls-S")
+ # force replication from DC1 to DC2
+ self._net_drs_replicate(DC=self.dnsname_dc2, fromDC=self.dnsname_dc1, nc_dn=self.schema_dn)
+ # check object is replicated
+ self._check_object(c_dn)
+
+ def test_attribute(self):
+ """Simple test for attributeSchema replication"""
+ # add new attributeSchema object
+ (a_ldn, a_dn) = self._schema_new_attr(self.ldb_dc1, "attr-S")
+ # force replication from DC1 to DC2
+ self._net_drs_replicate(DC=self.dnsname_dc2, fromDC=self.dnsname_dc1, nc_dn=self.schema_dn)
+ # check objects is replicated
+ self._check_object(a_dn)
+
def test_all(self):
"""Basic plan is to create bunch of classSchema
and attributeSchema objects, replicate Schema NC