From a405b28460d655a22c07d1b6ce84f9d6297318da Mon Sep 17 00:00:00 2001
From: mkeyes <mkeyes@localhost>
Date: Mon, 27 Aug 2007 21:38:02 +0000
Subject: [PATCH] Added test cases for Issue 1683.

---
 opends/tests/functional-tests/shared/functions/dsconfig.xml |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/opends/tests/functional-tests/shared/functions/dsconfig.xml b/opends/tests/functional-tests/shared/functions/dsconfig.xml
index 2746b0e..bbe82b6 100755
--- a/opends/tests/functional-tests/shared/functions/dsconfig.xml
+++ b/opends/tests/functional-tests/shared/functions/dsconfig.xml
@@ -106,14 +106,14 @@
         <function-arg-property name="type" value="string" />
       </function-arg-def>
       
-      <function-arg-def name="propertyType" type="required">
+      <function-arg-def name="propertyType" type="optional" default="''">
         <function-arg-description>
           Property type to modify, e.g. validator
         </function-arg-description>
         <function-arg-property name="type" value="string" />
       </function-arg-def>
       
-      <function-arg-def name="propertyName" type="required">
+      <function-arg-def name="propertyName" type="optional" default="''">
         <function-arg-description>
           Property to modify, e.g. enabled
         </function-arg-description>
@@ -162,7 +162,9 @@
         
         STAFCmdParamsList=[]
         STAFCmdParamsList.append('set-%s-prop ' % (objectName))
-        STAFCmdParamsList.append('--%s-name "%s" ' % (propertyType,propertyName))
+        
+        if propertyType:
+          STAFCmdParamsList.append('--%s-name "%s" ' % (propertyType,propertyName))
         
         if modifyType == 'reset':
             STAFCmdParamsList.append('--%s %s' % (modifyType,attributeName))

--
Gitblit v1.10.0