From fd9379e6c94fc3d3eef94ed54c08f527e9790130 Mon Sep 17 00:00:00 2001
From: smaguin <smaguin@localhost>
Date: Fri, 14 Mar 2008 07:53:28 +0000
Subject: [PATCH] add manage-tasks

---
 opends/tests/functional-tests/testcases/tasks/import-ldif.xml |   27 +++++++++++++++++++++++++--
 1 files changed, 25 insertions(+), 2 deletions(-)

diff --git a/opends/tests/functional-tests/testcases/tasks/import-ldif.xml b/opends/tests/functional-tests/testcases/tasks/import-ldif.xml
index eded4a0..06e4f3c 100644
--- a/opends/tests/functional-tests/testcases/tasks/import-ldif.xml
+++ b/opends/tests/functional-tests/testcases/tasks/import-ldif.xml
@@ -53,6 +53,7 @@
           #@TestPurpose          Schedule a import in task mode to be executed immedialy in synchronous mode
           #@TestPreamble
           #@TestStep             Execute a import-ldif in a task
+          #@TestStep             Execute manage-tasks output and check the Import task is returned
           #@TestStep             Don't specify the -t option
           #@TestStep             The task is scheduled for immediate execution and the script must wait the end of the import
           #@TestPostamble
@@ -73,6 +74,28 @@
               'dsAppend'       : ' ',
               'dsBackEnd'      : 'userRoot'}
             </call>
+
+            <!-- manage-tasks -->
+            <call function="'manage-tasks'">
+              { 'location'     : STAF_REMOTE_HOSTNAME ,
+              'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
+              'dsInstancePort' : DIRECTORY_INSTANCE_PORT,
+              'dsInstanceDn'   : DIRECTORY_INSTANCE_DN,
+              'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
+              'dsQuiet'        : ' '
+              }
+            </call>
+  
+            <script>
+              returnString = STAXResult[0][1]
+            </script>
+        
+            <call function="'searchStringForSubstring'">
+              { 'returnString'	   : returnString,
+              'testString'	   : 'Import',
+              'expectedResult'	   : '1' }
+            </call>            
+     
             
             <!-- Check data are imported -->
             <call function="'checkImport'">
@@ -133,7 +156,7 @@
             </call>
             <call function="'Sleep'">
               { 'location'  :	 STAF_REMOTE_HOSTNAME,
-              'sleepForMilliSeconds'  :  90000 }
+              'sleepForMilliSeconds'  :  40000 }
             </call>
             
             <!--  Check data are imported -->
@@ -194,7 +217,7 @@
             </call>
             <call function="'Sleep'">
               { 'location'  :	 STAF_REMOTE_HOSTNAME,
-              'sleepForMilliSeconds'  :  90000 }
+              'sleepForMilliSeconds'  :  40000 }
             </call>
             
             <!--  Check data are imported -->

--
Gitblit v1.10.0