From 5fea5c94d9f0c908d378a86503f329b20df1d7d0 Mon Sep 17 00:00:00 2001
From: Christophe Sovant <christophe.sovant@forgerock.com>
Date: Sun, 01 Jun 2008 14:26:09 +0000
Subject: [PATCH] Enable snmp/snmp_mibvalues testsuite

---
 opends/tests/shared/functions/snmp.xml |   36 +++++++++++++++++++++---------------
 1 files changed, 21 insertions(+), 15 deletions(-)

diff --git a/opends/tests/shared/functions/snmp.xml b/opends/tests/shared/functions/snmp.xml
index 9e5d234..1f0c4c0 100755
--- a/opends/tests/shared/functions/snmp.xml
+++ b/opends/tests/shared/functions/snmp.xml
@@ -645,6 +645,12 @@
         </function-arg-description>
         <function-arg-property name="type" value="string"/>
       </function-arg-def>
+      <function-arg-def name="index" type="required">
+        <function-arg-description>
+          Index for the out/in bytes check
+        </function-arg-description>
+        <function-arg-property name="type" value="string"/>
+      </function-arg-def>
       <function-arg-def name="expectedRC" type="optional" default="0">
         <function-arg-description>
           Expected return code value. Default value is 0
@@ -677,7 +683,7 @@
         CURRENT_VALUES = {}
         CURRENT_VALUES = create_table_fromoutput(STAXResult[0][1])
 
-        result = compare_snmp_values(DEFAULT_VALUES, CURRENT_VALUES)
+        result = compare_snmp_values(DEFAULT_VALUES, CURRENT_VALUES, index)
       </script>
 
       <message>
@@ -733,19 +739,19 @@
     </function-map-args>
 
     <sequence>
-      
+
       <if expr="timerRC == 1 or timerRC == 0">
         <sequence>
-          
+
           <if expr="timerRC == 0">
             <sequence>
               <tcstatus result="'pass'"></tcstatus>
-              
+
               <message>
                 'Process TrapListener ended before timer duration: %s' \
                 % timerDuration
               </message>
-              
+
               <stafcmd name="'Delete file %s' % outputFile">
                 <location>location</location>
                 <service>'FS'</service>
@@ -755,22 +761,22 @@
             <else>
               <sequence>
                 <tcstatus result="'fail'"></tcstatus>
-                
+
                 <message>
                   'Process TrapListener still running after timer duration: %s' \
                   % timerDuration
                 </message>
-                
+
                 <stafcmd name="'Get output from TrapListener'">
                   <location>location</location>
                   <service>'FS'</service>
                   <request>'GET FILE %s' % outputFile</request>
                 </stafcmd>
-                
+
                 <if expr="RC == 0">
                   <sequence>
                     <log message="1">'Output:%s' % STAFResult</log>
-                    
+
                     <stafcmd name="'Delete file %s' % outputFile">
                       <location>location</location>
                       <service>'FS'</service>
@@ -784,22 +790,22 @@
                     </log>
                   </else>
                 </if>
-                
+
                 <message>
                   'Delete event from the trap listener'
                 </message>
-                
+
                 <call function="'DeleteEvent'">
                   {
                   'location' : location ,
                   'name'     : 'SNMPTrapListener/Ready'
                   }
                 </call>
-                
+
                 <message>
                   'Delete event from the trap listener'
                 </message>
-                
+
                 <call function="'DeleteEvent'">
                   {
                   'location' : location ,
@@ -814,8 +820,8 @@
           <tcstatus result="'fail'">'Timer failed to begin.'</tcstatus>
         </else>
       </if>
-      
+
     </sequence>
   </function>
-  
+
 </stax>

--
Gitblit v1.10.0