summaryrefslogtreecommitdiff
path: root/lib/ldb/tests
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2012-12-29 21:48:46 -0800
committerAndrew Bartlett <abartlet@samba.org>2013-02-08 15:06:39 +1100
commit13b481594585cdb079dcf9b8cf892f5094f44a16 (patch)
tree2ce54882c30438d6bb26d14a08c6a4312e970437 /lib/ldb/tests
parent057896a090870ecec56ad0d2f960e55cef561e9e (diff)
downloadsamba-13b481594585cdb079dcf9b8cf892f5094f44a16.tar.gz
samba-13b481594585cdb079dcf9b8cf892f5094f44a16.tar.bz2
samba-13b481594585cdb079dcf9b8cf892f5094f44a16.zip
ldb: Add more tests related to onelevel search
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib/ldb/tests')
-rw-r--r--lib/ldb/tests/test-tdb-features.sh5
-rw-r--r--lib/ldb/tests/test.ldif9
2 files changed, 14 insertions, 0 deletions
diff --git a/lib/ldb/tests/test-tdb-features.sh b/lib/ldb/tests/test-tdb-features.sh
index 14437ffb9a..59e61ee5d2 100644
--- a/lib/ldb/tests/test-tdb-features.sh
+++ b/lib/ldb/tests/test-tdb-features.sh
@@ -154,6 +154,11 @@ dn: cn=three,cn=t1,cn=TEST
objectClass: oneclass
cn: three
test: one
+
+dn: cn=four,cn=three,cn=t1,cn=TEST
+objectClass: oneclass
+cn: four
+test: one
EOF
checkone 3 "cn=t1,cn=TEST" '(test=one)'
checkone 1 "cn=t1,cn=TEST" '(cn=two)'
diff --git a/lib/ldb/tests/test.ldif b/lib/ldb/tests/test.ldif
index fd37f0037e..d45cb9fb85 100644
--- a/lib/ldb/tests/test.ldif
+++ b/lib/ldb/tests/test.ldif
@@ -195,6 +195,15 @@ description: All Alumni Assoc Staff
cn: Alumni Assoc Staff
objectclass: groupofnames
+dn: cn=Finance, cn=Alumni Assoc Staff,ou=Groups,o=University of Michigan,c=TEST
+member: cn=Manager,o=University of Michigan,c=TEST
+member: cn=Ursula Hampster,ou=Alumni Association,ou=People,o=University of Mic
+ higan,c=TEST
+owner: cn=Manager,o=University of Michigan,c=TEST
+description: Finance group
+cn: Finance
+objectclass: groupofnames
+
dn: ou=Alumni Association,ou=People,o=University of Michigan,c=TEST
objectclass: organizationalUnit
ou: Alumni Association