From ebdbf9bd900f710459804410a4cb2e4504384e42 Mon Sep 17 00:00:00 2001 From: Kamen Mazdrashki Date: Wed, 1 Dec 2010 20:22:06 +0200 Subject: s4-test/repl_schema: Test classSchema and attributeSchema replication in separate tests --- source4/torture/drs/python/repl_schema.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'source4') 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 -- cgit