From e1c8a524cf81af215762d8bae27d73361b5db4b3 Mon Sep 17 00:00:00 2001
From: al_xipe <al_xipe@localhost>
Date: Mon, 13 Aug 2007 02:19:20 +0000
Subject: [PATCH] this commit includes some code refactoring but mainly code to support emma in the functional tests and the new XSL sheet for dynamic report drill down

---
 opends/tests/functional-tests/testcases/indexes/indexes.xml |   48 +++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 47 insertions(+), 1 deletions(-)

diff --git a/opends/tests/functional-tests/testcases/indexes/indexes.xml b/opends/tests/functional-tests/testcases/indexes/indexes.xml
index 9ef1f31..29c315d 100644
--- a/opends/tests/functional-tests/testcases/indexes/indexes.xml
+++ b/opends/tests/functional-tests/testcases/indexes/indexes.xml
@@ -34,7 +34,7 @@
           CurrentTestPath={'group':'indexes','suite':'indexes'}
           envAlreadyLoaded='true'
           _setupSteps=['testGroup_Preamble','testSuite_Preamble','indexes_setup']
-          _testSteps=['indexes_search','indexes_modify','indexes_add','indexes_remove']
+          _testSteps=['indexes_search','indexes_add','indexes_remove']
           _cleanupSteps=['indexes_cleanup','testSuite_Postamble','testGroup_Postamble']
         </script>
         <!---
@@ -334,6 +334,52 @@
     </block>
   </function>
 
+  <function name="indexes_vlv_add">
+    <!--
+      This test does a bunch of searches on the 
+      and then verifies that it worked
+      #@TestMarker                indexes
+      #@TestName                  indexes_remove
+      #@TestIssue                 TODO: look up the issue in issue tracker
+      #@TestPurpose               Check if the user can remove indexes
+      #@TestPreamble              none
+      #@TestStep                  iterate through filters prior to removing index
+      #@TestStep                  remove index
+      #@TestStep                  iterate through filters after to removing index
+      #@TestPostamble             none
+      #@TestResult                Success if entry are indexed as expected
+    -->
+    <block name="'Entry_Limit'">
+      <sequence>
+        <try>
+          <sequence>
+            <call function="'loopThroughFilters'">
+              { 'filters' : 'before-entry-limit' }
+            </call>
+            <call function="'runFunction'">
+              { 'functionName'      : 'modifyIndex'                                ,
+                'functionException' : 'LDAP.ModifyIndexException'                  ,
+                'functionFailureTC' : '%s: %s: %s' % (CurrentTestPath['group'], CurrentTestPath['suite'], STAXCurrentBlock),
+                'functionMessage'   : 'Modify index entry limit on attribute uid'  ,
+                'functionArguments' : { 'operation'          : 'set'               ,
+                                        'indexAttribute'     : 'uid'               ,
+                                        'indexProperty'      : 'index-entry-limit' ,
+                                        'indexPropertyValue' : '3'
+                                      }
+              }
+            </call>
+            <call function="'loopThroughFilters'">
+              { 'filters' : 'after-entry-limit' }
+            </call>
+          </sequence>
+          <catch exception="'STAXException.LDAP.RemoveIndexException'">
+            <message log="1" level="'fatal'">'Fatal Error: Failed to remove index for attribute l'</message>
+          </catch>
+        </try>
+      </sequence>
+    </block>
+  </function>
+
   
   <function name="loopThroughFilters" scope="local">
     <function-map-args>

--
Gitblit v1.10.0