From 0875871ddc4452c5c200b1839a047cdcd2a7559b Mon Sep 17 00:00:00 2001
From: Gary Williams <gary.williams@forgerock.com>
Date: Wed, 16 May 2012 10:40:06 +0000
Subject: [PATCH] Set to false strict-format for certificate syntax in binary attributes functional test

---
 opends/tests/staf-tests/functional-tests/testcases/core/binaryattr/core_binaryattr_tests.xml |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/opends/tests/staf-tests/functional-tests/testcases/core/binaryattr/core_binaryattr_tests.xml b/opends/tests/staf-tests/functional-tests/testcases/core/binaryattr/core_binaryattr_tests.xml
index ed45ac5..3ab41ed 100644
--- a/opends/tests/staf-tests/functional-tests/testcases/core/binaryattr/core_binaryattr_tests.xml
+++ b/opends/tests/staf-tests/functional-tests/testcases/core/binaryattr/core_binaryattr_tests.xml
@@ -24,6 +24,7 @@
  ! CDDL HEADER END
  !
  !      Copyright 2009-2010 Sun Microsystems, Inc.
+ !      Portions Copyright 2012 ForgeRock AS
  ! -->
 <stax>
 
@@ -208,6 +209,32 @@
               templateName='binaryattr.template'
             </script>
 
+            <!-- Turn off the strict Certificate Syntax checking -->
+            <call function="'testStep'">
+              { 'stepMessage' : 'Modifying Certificate Syntax string-format to false.' }
+            </call>
+
+            <script>
+              options=[]
+              options.append('--syntax-name "Certificate"')
+              options.append('--set "strict-format:false"')
+              dsconfigOptions=' '.join(options)
+            </script>
+
+            <call function="'dsconfig'">
+              { 'dsInstanceHost'      : DIRECTORY_INSTANCE_HOST,
+                'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
+                'dsInstanceDn'        : DIRECTORY_INSTANCE_DN,
+                'dsInstancePswd'      : DIRECTORY_INSTANCE_PSWD,
+                'subcommand'          : 'set-attribute-syntax-prop',
+                'optionsString'       : dsconfigOptions
+              }
+            </call>
+
+            <call function="'testStep'">
+              { 'stepMessage' : 'On line import of ldif file containing binary attributes.' }
+            </call>
+
             <!-- On line import of ldif file containing binary attribute -->
             <call function="'runFunction'">
               { 'functionName'      : 'ImportLdifWithScript'                        ,

--
Gitblit v1.10.0