From: Andrew Bartlett Date: Mon, 21 Mar 2016 04:05:19 +0000 (+1300) Subject: Revert "dsdb: Disable tombstone_reanimation module until we isolate what causes flaky... X-Git-Tag: tdb-1.3.10~438 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fb9af9727f4a9b1664c5a9e541981d239c72b0cf;p=thirdparty%2Fsamba.git Revert "dsdb: Disable tombstone_reanimation module until we isolate what causes flaky tests" This reverts commit 252b62c54ed5a4aabbdccf315f1a0ae3d958d11c. Signed-off-by: Andrew Bartlett Reviewed-by: Stefan Metzmacher --- diff --git a/source4/dsdb/samdb/ldb_modules/samba_dsdb.c b/source4/dsdb/samdb/ldb_modules/samba_dsdb.c index 3f8cc519242..21168a9d714 100644 --- a/source4/dsdb/samdb/ldb_modules/samba_dsdb.c +++ b/source4/dsdb/samdb/ldb_modules/samba_dsdb.c @@ -275,6 +275,7 @@ static int samba_dsdb_init(struct ldb_module *module) NULL }; /* extended_dn_in or extended_dn_in_openldap goes here */ static const char *modules_list1a[] = {"objectclass", + "tombstone_reanimate", "descriptor", "acl", "aclread", diff --git a/source4/dsdb/samdb/ldb_modules/tombstone_reanimate.c b/source4/dsdb/samdb/ldb_modules/tombstone_reanimate.c index 5a630917ed4..64e05195798 100644 --- a/source4/dsdb/samdb/ldb_modules/tombstone_reanimate.c +++ b/source4/dsdb/samdb/ldb_modules/tombstone_reanimate.c @@ -421,13 +421,5 @@ static const struct ldb_module_ops ldb_reanimate_module_ops = { int ldb_tombstone_reanimate_module_init(const char *version) { LDB_MODULE_CHECK_VERSION(version); - /* - * Skip module registration for now. - * In order to enable the module again, it should be - * included in samba_dsdb.c between "objectclass" and - * "descriptor" modules. return ldb_register_module(&ldb_reanimate_module_ops); - */ - DEBUG(5,("Module 'tombstone_reanimate' is disabled. Skip registration.")); - return LDB_SUCCESS; } diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py index de7ef232160..1b1394017a7 100755 --- a/source4/selftest/tests.py +++ b/source4/selftest/tests.py @@ -600,6 +600,11 @@ for env in ["ad_dc_ntvfs"]: # environments, please only add new ones if there's really a # difference we need to test plantestsuite_loadlist("samba4.ldap.password_lockout.python(%s)" % env, env, [python, os.path.join(samba4srcdir, "dsdb/tests/python/password_lockout.py"), "$SERVER", '-U"$USERNAME%$PASSWORD"', "-W$DOMAIN", "--realm=$REALM", '$LOADLIST', '$LISTOPT']) + planoldpythontestsuite(env, "tombstone_reanimation", + name="samba4.tombstone_reanimation.python", + environ={'TEST_SERVER': '$SERVER', 'TEST_USERNAME': '$USERNAME', 'TEST_PASSWORD': '$PASSWORD'}, + extra_path=[os.path.join(samba4srcdir, 'dsdb/tests/python')] + ) planpythontestsuite("ad_dc_ntvfs:local", "samba.tests.upgradeprovisionneeddc") planpythontestsuite("ad_dc:local", "samba.tests.posixacl")