<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
<!DOCTYPE stax SYSTEM "../../../../shared/stax.dtd">
|
<!--
|
! 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
|
! trunk/opends/resource/legal-notices/CDDLv1_0.txt
|
! or http://forgerock.org/license/CDDLv1.0.html.
|
! 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
|
! trunk/opends/resource/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 2012-2013 ForgeRock AS.
|
! -->
|
<stax>
|
<defaultcall function="replication_basic"/>
|
<function name="replication_basic" scope="local">
|
<sequence>
|
<block name="'replication_basic'">
|
<try>
|
<sequence>
|
<script>
|
if not CurrentTestPath.has_key('group'):
|
CurrentTestPath['group']='replication'
|
CurrentTestPath['suite'] = 'basic'
|
|
_group=CurrentTestPath['group']
|
_groupdir='%s/testcases/%s' % (TESTS_DIR,_group)
|
_label = 'Replication Basic'
|
</script>
|
|
<!--- Test Suite information
|
#@TestSuiteName Replication Basic Tests
|
#@TestSuitePurpose Verify that the basic operations are replicated
|
correctly between two serrvers.
|
#@TestSuiteID Basic Tests
|
#@TestSuiteGroup Basic
|
#@TestGroup Replication
|
#@TestScript replication_basic.xml
|
#@TestHTMLLink http://www.forgerock.org/
|
-->
|
|
<call function="'testSuite_Preamble'"/>
|
|
<try>
|
<sequence>
|
|
<import machine="STAF_LOCAL_HOSTNAME"
|
file="'%s/testcases/replication/replication_setup.xml'
|
% (TESTS_DIR)"/>
|
<call function="'replication_setup'" >
|
{ 'label' : 'Replication Basic' }
|
</call>
|
|
<import machine="STAF_LOCAL_HOSTNAME"
|
file="'%s/testcases/replication/basic/replication_basic_setup.xml'
|
% (TESTS_DIR)"/>
|
<call function="'replication_basic_setup'" />
|
|
<!-- List of Import of Test Functions -->
|
<script>
|
importList=[]
|
importList.append('basic/basic_tests')
|
</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 replication tests -->
|
<script>
|
msg1 = 'Replication: Basic:'
|
</script>
|
|
<!-- List of Test Cases -->
|
<script>
|
testsList=[]
|
testsList.append('replication_basic_001')
|
testsList.append('replication_basic_002')
|
testsList.append('replication_basic_003')
|
testsList.append('replication_basic_004')
|
testsList.append('replication_basic_005')
|
testsList.append('replication_basic_006')
|
testsList.append('replication_basic_007')
|
testsList.append('replication_basic_008')
|
testsList.append('replication_basic_009')
|
testsList.append('replication_basic_010')
|
testsList.append('replication_basic_011')
|
testsList.append('replication_basic_012')
|
testsList.append('replication_basic_013')
|
testsList.append('replication_basic_014')
|
testsList.append('replication_basic_015')
|
testsList.append('replication_basic_016')
|
testsList.append('replication_basic_017')
|
testsList.append('replication_basic_018')
|
testsList.append('replication_basic_019')
|
testsList.append('replication_basic_020')
|
testsList.append('replication_basic_021')
|
testsList.append('replication_basic_022')
|
</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: Replication Cleanup.'</message>
|
<try>
|
<sequence>
|
<import machine="STAF_LOCAL_HOSTNAME"
|
file="'%s/testcases/replication/replication_cleanup.xml'
|
% (TESTS_DIR)"/>
|
<call function="'replication_cleanup'">
|
{ 'label' : 'Replication Basic' }
|
</call>
|
</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>
|