<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--
! CDDL HEADER START
!
! The contents of this file are subject to the terms of the
! Common Development and Distribution License, Version 1.0 only
! (the "License"). You may not use this file except in compliance
! with the License.
!
! You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
! See the License for the specific language governing permissions
! and limitations under the License.
!
! When distributing Covered Code, include this CDDL HEADER in each
! file and include the License file at legal-notices/CDDLv1_0.txt.
! If applicable, add the following below this CDDL HEADER, with the
! fields enclosed by brackets "[]" replaced with your own identifying
! information:
! Portions Copyright [yyyy] [name of copyright owner]
!
! CDDL HEADER END
!
! Copyright 2013 ForgeRock AS.
! -->
<stax>
<defaultcall function="main_replication_operations_basic"/>
<function name="main_replication_operations_basic" scope="local">
<sequence>
<block name="'main_replication_operations_basic'">
<try>
<sequence>
<script>
CurrentTestPath['group']='replication_operations'
CurrentTestPath['suite']='basic'
__group=CurrentTestPath['group']
</script>
<!--- Test Suite information
#@TestSuiteName Basic replication operations suite
#@TestSuitePurpose Verify basic replication operations
#@TestSuiteID Suite
#@TestSuiteGroup Basic
#@TestGroup Basic
#@TestScript operations.xml
#@TestHTMLLink http://www.forgerock.org/
-->
<call function="'testSuite_Preamble'"/>
<try>
<sequence>
<import machine="STAF_LOCAL_HOSTNAME"
file="'%/functional-tests/testcases/replication/replication_setup.xml' % (TESTS_DIR)"/>
<call function="'replication_setup'"/>
<!-- List of Import of Test Functions -->
<script>
importList=[]
</script>
<!-- Import the files for this test suite -->
<iterate var="__import" in="importList">
<import machine="STAF_LOCAL_HOSTNAME"
file="'%s/%s.xml' % (__groupdir,__import)"/>
</iterate>
<!-- Specific to basic operations tests -->
<script>
timerDuration = '2h'
numberOfEntries = 100000
</script>
<!-- List of Test Cases -->
<script>
testsList=[]
testsList.append('basic_replication_operations_000')
testsList.append('basic_replication_operations_001')
testsList.append('basic_replication_operations_002')
testsList.append('basic_replication_operations_003')
</script>
<!-- Execute the Tests -->
<iterate var="__test" in="testsList">
<sequence>
<call function="'%s' % (__test)" />
</sequence>
</iterate>
</sequence>
<catch exception="'STAFException.TestSuite.SetupException'">
<sequence>
<message log="1" level="'fatal'">
'Setup of test suite failed.'
</message>
<rethrow/>
</sequence>
</catch>
<finally>
<message>'Test Cases Completed.'</message>
</finally>
</try>
</sequence>
<finally>
<sequence>
<!-- Test Suite Cleanup -->
<message>'Finally: Global Cleanup.'</message>
<try>
<sequence>
<import machine="STAF_LOCAL_HOSTNAME"
file="'%/functional-tests/testcases/replication/replication_cleanup.xml' % (TESTS_DIR)"/>
<call function="'replication_cleanup'"/>
</sequence>
<catch exception="'STAFException'">
<sequence>
<message log="1" level="'fatal'">'Cleanup of test suite failed.'</message>
</sequence>
</catch>
<finally>
<call function="'testSuite_Postamble'"/>
</finally>
</try>
</sequence>
</finally>
</try>
</block>
</sequence>
</function>
</stax>