1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

r17546: Test the loading of per-partition modules.

Andrew Bartlett
This commit is contained in:
Andrew Bartlett 2006-08-15 02:24:19 +00:00 committed by Gerald (Jerry) Carter
parent f6844d04e3
commit 1a5ade30dc

View File

@ -82,7 +82,7 @@ function setup_modules(ldb)
{
ok = ldb.add("
dn: @MODULES
@LIST: rootdse,operational,objectguid,rdn_name,partition
@LIST: rootdse,operational,rdn_name,partition
dn: cn=ROOTDSE
defaultNamingContext: cn=Test
@ -95,6 +95,7 @@ partition: cn=Sub,cn=Sub,cn=PartTest:" + prefix + "testsubsub.ldb
replicateEntries: @SUBCLASSES
replicateEntries: @ATTRIBUTES
replicateEntries: @INDEXLIST
modules: cn=PartTest:objectguid
");
}
@ -238,9 +239,9 @@ x: 11
assert(res7.length == 0);
var res8 = ldb.search("x=11", "cn=sub,cn=parttest", ldb.SCOPE_DEFAULT, attrs);
assert(res8[0].objectGUID != undefined);
assert(res8[0].createTimestamp != undefined);
assert(res8[0].whenCreated != undefined);
assert(res8[0].objectGUID == undefined); /* The objectGUID module is not loaded here */
assert(res8[0].uSNCreated != undefined);
assert(res8[0].name == "x11");
assert(res8[0].cn == "x11");