>From f24c0d1ba9a919f6635765ba34958fdbe841c156 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Mon, 6 May 2013 00:58:28 -0700 Subject: [PATCH] selftests-drs: make our generated class subclass of classschema Without this change objectclass=["top", "classSchema", "Foobar"] will not be sorted correctly and will generated an error saying that class Foobar is unreleated to classSchema (which is not true). It's mimicing what other classes of the default schema are doing (ie. contact) Signed-off-by: Matthieu Patou --- source4/torture/drs/python/repl_schema.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source4/torture/drs/python/repl_schema.py b/source4/torture/drs/python/repl_schema.py index cbed640..aefeadb 100644 --- a/source4/torture/drs/python/repl_schema.py +++ b/source4/torture/drs/python/repl_schema.py @@ -174,7 +174,8 @@ class DrsReplSchemaTestCase(drs_base.DrsBaseTestCase): # add a base classSchema class so we can use our new # attribute in class definition in a sibling class (c_ldn, c_dn) = self._schema_new_class(self.ldb_dc1, "cls-A", - {"systemMayContain": a_ldn}) + {"systemMayContain": a_ldn, + "subClassOf": "classSchema"}) # add new classSchema object with value for a_ldb attribute (c_ldn, c_dn) = self._schema_new_class(self.ldb_dc1, "cls-B", {"objectClass": ["top", "classSchema", c_ldn], -- 1.7.9.5