From 4ced2397e6a733f1fe69254134b6f6e626639e7a Mon Sep 17 00:00:00 2001
From: al_xipe <al_xipe@localhost>
Date: Tue, 24 Jul 2007 12:24:18 +0000
Subject: [PATCH] 1. allow to bypass proxy check in functional tests wrapper 2. add modify index test cases 3. add the rebuild-index CLI wrapper in utils.xml 4. add the ability in runFunction to set a test case status upon failure to reflect an exception being thrown or things like that
---
opends/tests/functional-tests/shared/functions/tools.xml | 49 ++++++++++++++++++++++++++++++++++++++++++++-----
1 files changed, 44 insertions(+), 5 deletions(-)
diff --git a/opends/tests/functional-tests/shared/functions/tools.xml b/opends/tests/functional-tests/shared/functions/tools.xml
index 8064f71..1841505 100644
--- a/opends/tests/functional-tests/shared/functions/tools.xml
+++ b/opends/tests/functional-tests/shared/functions/tools.xml
@@ -423,9 +423,48 @@
-
-
-
-
-
+ <function name="CLI_rebuild-index">
+ <function-prolog>
+ This wraps the rebuild-index tool to make it easy to use from STAX
+ </function-prolog>
+ <function-map-args>
+ <function-arg-def name="baseDN" type="required">
+ <function-arg-description>
+ Specify a back-end supporting indexing and triggers a rebuild of all
+ indexes in the scope of the provided baseDN
+ </function-arg-description>
+ </function-arg-def>
+ <function-arg-def name="attributes" type="required">
+ <function-arg-description>
+ Specify a list of attributes to trigger index rebuild on
+ </function-arg-description>
+ </function-arg-def>
+ </function-map-args>
+
+ <sequence>
+ <script>
+ _cmd='%s/rebuild-index%s' % (dsBinPath,fileExt)
+ _args=' -b %s -i %s' % ( baseDN, ' '.join(attributes) )
+ </script>
+ <message log="1" level="'info'">
+ '%s %s' % (_cmd,_args)
+ </message>
+
+ <process name="'rebuild-index'">
+ <location>'%s' % location</location>
+ <command>'%s' % _cmd</command>
+ <parms>'%s' % _args</parms>
+ <workdir>'%s' % dsBinPath</workdir>
+ <envs>
+ ['PATH=/bin:/usr/bin:%s' % dsBinPath, 'JAVA_HOME=%s' % JAVA_HOME]
+ </envs>
+ <console use="'same'"/>
+ <stderr mode="'stdout'"/>
+ <returnstdout/>
+ </process>
+
+ <return>STAXResult</return>
+ </sequence>
+ </function>
+
</stax>
--
Gitblit v1.10.0