From 763f9e82010e4ff1c74aea651e3244063bbf7fbf Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Tue, 12 Jun 2012 12:23:52 -0700 Subject: 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(+) (limited to 'source4/dsdb/tests') diff --git a/source4/dsdb/tests/python/ldap_schema.py b/source4/dsdb/tests/python/ldap_schema.py index 5de0479ff1..d77f5537c9 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 = [] -- cgit