mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

maudj
09.21.2009 acf315c076399a0f779859b9ecd7479b6838f71f
add check to make sure DS is started before running a restore -maudj
1 files modified
17 ■■■■ changed files
opends/tests/staf-tests/functional-tests/testcases/tasks/restore_db.xml 17 ●●●● patch | view | raw | blame | history
opends/tests/staf-tests/functional-tests/testcases/tasks/restore_db.xml
@@ -23,7 +23,7 @@
 !
 ! CDDL HEADER END
 !
 !      Copyright 2007-2008 Sun Microsystems, Inc.
 !      Copyright 2007-2009 Sun Microsystems, Inc.
! -->
<stax>
  <defaultcall function="restore_db"/>
@@ -145,9 +145,9 @@
            
            <script>
              mydate=strftime("%Y%m%d%H%M%S",localtime())
            </script>
            </script>
            
            <call function="'restore'">
              { 'location'          : STAF_REMOTE_HOSTNAME ,
@@ -155,7 +155,7 @@
              'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
              'dsInstanceDn'        : DIRECTORY_INSTANCE_DN,
              'dsInstancePswd'      : DIRECTORY_INSTANCE_PSWD,
              'startTask'           : '%s' % mydate,
              'startTask'           : '%s' % mydate,
              'backupDir'           : '%s/tasks/backup_schedule_asynchronous' % remote.data
              }
            </call>
@@ -195,6 +195,13 @@
              { 'location'  : STAF_REMOTE_HOSTNAME }
            </call>
            <!--- Check that DS started -->
            <call function="'isAlive'">
             { 'noOfLoops'      : 10 ,
               'noOfMilliSeconds' : 2000
             }
            </call>
            <call function="'restore'">
              { 'location'          : STAF_REMOTE_HOSTNAME ,
              'dsInstanceHost'      : DIRECTORY_INSTANCE_HOST,