diff options
author | Kamen Mazdrashki <kamenim@samba.org> | 2010-11-30 12:17:03 +0200 |
---|---|---|
committer | Kamen Mazdrashki <kamenim@samba.org> | 2010-12-01 13:30:45 +0100 |
commit | 6803a72d1595db6c25ff2a42f7ed5dd7a8be574f (patch) | |
tree | 8be9b23cea86e7e254485f275942e93fff7f156b /source4 | |
parent | 23b4408a6210363a11c4df12b6b737f94026d20d (diff) | |
download | samba-6803a72d1595db6c25ff2a42f7ed5dd7a8be574f.tar.gz samba-6803a72d1595db6c25ff2a42f7ed5dd7a8be574f.tar.bz2 samba-6803a72d1595db6c25ff2a42f7ed5dd7a8be574f.zip |
s4-test/schema: Extend the test to replicate a Class with Attribute with "mayContain" relation
Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Wed Dec 1 13:30:45 CET 2010 on sn-devel-104
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/drs/python/repl_schema.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/source4/torture/drs/python/repl_schema.py b/source4/torture/drs/python/repl_schema.py index 55e653b824..02e2afeee8 100644 --- a/source4/torture/drs/python/repl_schema.py +++ b/source4/torture/drs/python/repl_schema.py @@ -41,6 +41,7 @@ from ldb import ( LdbError, SCOPE_BASE, Message, + FLAG_MOD_ADD, FLAG_MOD_REPLACE, ) @@ -176,10 +177,17 @@ class DrsReplSchemaTestCase(samba.tests.TestCase): and attributeSchema objects, replicate Schema NC and then check all objects are replicated correctly""" - # add new attributeSchema object - (a_ldn, a_dn) = self._schema_new_attr(self.ldb_dc1, "attr-A") # add new classSchema object (c_ldn, c_dn) = self._schema_new_class(self.ldb_dc1, "cls-A") + # add new attributeSchema object + (a_ldn, a_dn) = self._schema_new_attr(self.ldb_dc1, "attr-A") + + # add attribute to the class we have + m = Message.from_dict(self.ldb_dc1, + {"dn": c_dn, + "mayContain": a_ldn}, + FLAG_MOD_ADD) + self.ldb_dc1.modify(m) # force replication from DC1 to DC2 self._net_drs_replicate(DC=self.dnsname_dc2, fromDC=self.dnsname_dc1, nc_dn=self.schema_dn) |