From 09f0a204b67b17a0426c1580270b2b4e7b43bf24 Mon Sep 17 00:00:00 2001
From: andrug <andrug@localhost>
Date: Fri, 21 Mar 2008 18:19:24 +0000
Subject: [PATCH] add dsconfig shared library and update sample2 post_configuration file

---
 opends/tests/system-tests/scenario/sample2/post_configuration.xml |   33 ++++++++++++++++++++++++++++++++-
 1 files changed, 32 insertions(+), 1 deletions(-)

diff --git a/opends/tests/system-tests/scenario/sample2/post_configuration.xml b/opends/tests/system-tests/scenario/sample2/post_configuration.xml
index 5ca2cf8..3133776 100644
--- a/opends/tests/system-tests/scenario/sample2/post_configuration.xml
+++ b/opends/tests/system-tests/scenario/sample2/post_configuration.xml
@@ -44,7 +44,13 @@
     </function-map-args>
     
     <sequence>
-      <!-- ================= Call preambule ======================== -->
+    
+    <!-- ================= Import Libs    ======================== -->
+    <import machine="'%s' % (STAF_LOCAL_HOSTNAME)"
+      file="'%s/opendscfg.xml' % (SHARED_FUNC_DIR)"/>
+    
+    
+    <!-- ================= Call preambule ======================== -->
       <call function="'phasePreamble'">
       { 'phaseName' : 'postconfiguration',
         'fileFd'    : LOG_MAIN_FD }
@@ -70,6 +76,31 @@
           }
           </call>
           
+          <call function="'dsconfig'">
+          { 
+            'dsInstanceHost' : instance.getHost(),
+            'dsPath'         : instance.getInstallDir(),
+            'dsInstancePort' : instance.getLDAPPort(),
+            'dsInstanceDn'   : DIRECTORY_INSTANCE_DN,
+            'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
+            'subcommand'     : 'list-log-publishers',
+            'objectType'     : '',
+            'objectName'     : '',
+            'optionsString'  : '',
+            'expectedRC'     : 0,
+            'fileFd'         : LOG_MAIN_FD
+          }
+          </call>
+          
+          
+          <call function="'writeMessage'">
+          { 
+            'fileFd'  : LOG_MAIN_FD,
+            'content' : 'dsconfig result : %s' % STAXResult
+          }
+          </call>
+          
+          
           <!-- == Write tag for xml report -->
           <call function="'writeEndTagInstance'">
           { 'fileFd'    : LOG_MAIN_FD }

--
Gitblit v1.10.0