From 7c49c78a374a67f14f3d881d595078ca298d216f Mon Sep 17 00:00:00 2001
From: Sebastien Bertholet <sebastien.bertholet@forgerock.com>
Date: Mon, 19 May 2008 09:18:32 +0000
Subject: [PATCH] Set a sizeLimit of 10.000 entries in verifyTrees
---
opendj-sdk/opends/tests/system-tests/phases/shared/functions/ldap.xml | 25 +++++++++++++++++++++----
1 files changed, 21 insertions(+), 4 deletions(-)
diff --git a/opendj-sdk/opends/tests/system-tests/phases/shared/functions/ldap.xml b/opendj-sdk/opends/tests/system-tests/phases/shared/functions/ldap.xml
index 71fdfc4..dcbb138 100755
--- a/opendj-sdk/opends/tests/system-tests/phases/shared/functions/ldap.xml
+++ b/opendj-sdk/opends/tests/system-tests/phases/shared/functions/ldap.xml
@@ -285,6 +285,7 @@
uid employeeNumber initials givenName pager mobile \
cn sn telephoneNumber street homePhone l mail st'
+ dsSizeLimit = 10000
</script>
<call function="'writeMessage'">
@@ -293,6 +294,12 @@
}
</call>
+ <call function="'writeMessage'">
+ { 'fileFd' : fileFd,
+ 'content' : '(Only a max of %s entries will be compared)'
+ % (dsSizeLimit)
+ }
+ </call>
<!-- == Retrieve the tree from the reference server == -->
<call function="'ldapSearch'">
@@ -306,10 +313,17 @@
'dsFilter' : 'objectclass=*',
'dsAttributes' : dsAttributes,
'outputFile' : referenceTree,
- 'fileFd' : fileFd
+ 'expectedRC' : 'noCheck',
+ 'fileFd' : fileFd,
+ 'dsSortOrder' : '+cn',
+ 'dsSizeLimit' : dsSizeLimit
}
</call>
- <if expr="STAXResult[0] != 0">
+ <script>
+ ldapSearchRC = STAXResult[0]
+ </script>
+
+ <if expr="(ldapSearchRC == 0) or (ldapSearchRC == 4)">
<!-- == If the reference tree could not be retrieved, == -->
<!-- == return an error == -->
<sequence>
@@ -330,14 +344,17 @@
'dsFilter' : 'objectclass=*',
'dsAttributes' : dsAttributes,
'outputFile' : sampleTree,
- 'fileFd' : fileFd
+ 'expectedRC' : 'noCheck',
+ 'fileFd' : fileFd,
+ 'dsSortOrder' : '+cn',
+ 'dsSizeLimit' : dsSizeLimit
}
</call>
<script>
ldapSearchRC = STAXResult[0]
</script>
- <if expr="ldapSearchRC == 0">
+ <if expr="(ldapSearchRC == 0) or (ldapSearchRC == 4)">
<sequence>
<!-- == Check if file is empty == -->
<call function="'isEmptyFile'">
--
Gitblit v1.10.0