From 763f9e82010e4ff1c74aea651e3244063bbf7fbf Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Tue, 12 Jun 2012 12:23:52 -0700 Subject: [PATCH] selftest: schema is not automatically reloaded now so if you modify it you have to reload it Autobuild-User(master): Matthieu Patou Autobuild-Date(master): Sat Jun 23 10:48:13 CEST 2012 on sn-devel-104 --- source4/dsdb/tests/python/ldap_schema.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source4/dsdb/tests/python/ldap_schema.py b/source4/dsdb/tests/python/ldap_schema.py index 5de0479ff1a..d77f5537c9a 100755 --- a/source4/dsdb/tests/python/ldap_schema.py +++ b/source4/dsdb/tests/python/ldap_schema.py @@ -94,6 +94,15 @@ isSingleValued: TRUE systemOnly: FALSE """ self.ldb.add_ldif(ldif) + # We must do a schemaUpdateNow otherwise it's not 100% sure that the schema + # will contain the new attribute + ldif = """ +dn: +changetype: modify +add: schemaUpdateNow +schemaUpdateNow: 1 +""" + self.ldb.modify_ldif(ldif) # Search for created attribute res = [] -- 2.11.4.GIT