1476N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2887N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
1476N/A<!--
1476N/A ! CDDL HEADER START
1476N/A !
1476N/A ! The contents of this file are subject to the terms of the
1476N/A ! Common Development and Distribution License, Version 1.0 only
1476N/A ! (the "License"). You may not use this file except in compliance
1476N/A ! with the License.
5826N/A !
1476N/A ! You can obtain a copy of the license at
5826N/A ! trunk/opends/resource/legal-notices/CDDLv1_0.txt
5826N/A ! or http://forgerock.org/license/CDDLv1.0.html.
1476N/A ! See the License for the specific language governing permissions
1476N/A ! and limitations under the License.
5826N/A !
1476N/A ! When distributing Covered Code, include this CDDL HEADER in each
1476N/A ! file and include the License file at
5826N/A ! trunk/opends/resource/legal-notices/CDDLv1_0.txt. If applicable,
1476N/A ! add the following below this CDDL HEADER, with the fields enclosed
1476N/A ! by brackets "[]" replaced with your own identifying information:
1476N/A ! Portions Copyright [yyyy] [name of copyright owner]
1476N/A !
1476N/A ! CDDL HEADER END
1476N/A !
6215N/A ! Copyright 2012-2013 ForgeRock AS.
1476N/A ! -->
1476N/A<stax>
1476N/A <defaultcall function="replication_basic"/>
5826N/A <function name="replication_basic" scope="local">
1476N/A <sequence>
5826N/A <block name="'replication_basic'">
5826N/A <try>
5826N/A <sequence>
6215N/A <script>
6215N/A if not CurrentTestPath.has_key('group'):
6215N/A CurrentTestPath['group']='replication'
5826N/A CurrentTestPath['suite'] = 'basic'
5826N/A
6219N/A _groupdir='%s/testcases/replication' % TESTS_DIR
5826N/A _label = 'Replication Basic'
5826N/A </script>
1797N/A
5826N/A <!--- Test Suite information
5826N/A #@TestSuiteName Replication Basic Tests
5826N/A #@TestSuitePurpose Verify that the basic operations are replicated
5826N/A correctly between two serrvers.
5826N/A #@TestSuiteID Basic Tests
5826N/A #@TestSuiteGroup Basic
5826N/A #@TestGroup Replication
5826N/A #@TestScript replication_basic.xml
5826N/A #@TestHTMLLink http://www.forgerock.org/
5826N/A -->
5826N/A
5826N/A <call function="'testSuite_Preamble'"/>
1797N/A
5826N/A <try>
5826N/A <sequence>
5826N/A
5826N/A <import machine="STAF_LOCAL_HOSTNAME"
5826N/A file="'%s/testcases/replication/replication_setup.xml'
5826N/A % (TESTS_DIR)"/>
5826N/A <call function="'replication_setup'" >
5826N/A { 'label' : 'Replication Basic' }
5826N/A </call>
5826N/A
5826N/A <import machine="STAF_LOCAL_HOSTNAME"
5826N/A file="'%s/testcases/replication/basic/replication_basic_setup.xml'
5826N/A % (TESTS_DIR)"/>
5826N/A <call function="'replication_basic_setup'" />
1797N/A
5826N/A <!-- List of Import of Test Functions -->
5826N/A <script>
5826N/A importList=[]
5826N/A importList.append('basic/basic_tests')
5826N/A </script>
1797N/A
5826N/A <!-- Import the files for this test suite -->
5826N/A <iterate var="_import" in="importList">
5826N/A <import machine="STAF_LOCAL_HOSTNAME"
5826N/A file="'%s/%s.xml' % (_groupdir,_import)"/>
5826N/A </iterate>
1797N/A
5826N/A <!-- Specific to replication tests -->
5826N/A <script>
5826N/A msg1 = 'Replication: Basic:'
5826N/A </script>
5826N/A
5826N/A <!-- List of Test Cases -->
5826N/A <script>
5826N/A testsList=[]
5826N/A testsList.append('replication_basic_001')
5826N/A testsList.append('replication_basic_002')
5826N/A testsList.append('replication_basic_003')
5826N/A testsList.append('replication_basic_004')
5826N/A testsList.append('replication_basic_005')
5826N/A testsList.append('replication_basic_006')
5826N/A testsList.append('replication_basic_007')
5826N/A testsList.append('replication_basic_008')
5826N/A testsList.append('replication_basic_009')
5826N/A testsList.append('replication_basic_010')
5826N/A testsList.append('replication_basic_011')
5826N/A testsList.append('replication_basic_012')
5826N/A testsList.append('replication_basic_013')
5826N/A testsList.append('replication_basic_014')
5826N/A testsList.append('replication_basic_015')
5826N/A testsList.append('replication_basic_016')
5826N/A testsList.append('replication_basic_017')
5826N/A testsList.append('replication_basic_018')
5826N/A testsList.append('replication_basic_019')
5826N/A testsList.append('replication_basic_020')
5826N/A testsList.append('replication_basic_021')
5826N/A testsList.append('replication_basic_022')
5826N/A </script>
3326N/A
5826N/A <!-- Execute the Tests -->
5826N/A <iterate var="__test" in="testsList">
5826N/A <sequence>
5826N/A <call function="'%s' % (__test)" />
5826N/A </sequence>
5826N/A </iterate>
5826N/A
5826N/A </sequence>
1797N/A
5826N/A <catch exception="'STAFException.TestSuite.SetupException'">
5826N/A <sequence>
5826N/A <message log="1" level="'fatal'">
5826N/A 'Setup of test suite failed.'
5826N/A </message>
5826N/A <rethrow/>
5826N/A </sequence>
5826N/A </catch>
5826N/A
5826N/A <finally>
5826N/A <message>'Test Cases Completed.'</message>
5826N/A </finally>
3326N/A
5826N/A </try>
1797N/A
5826N/A </sequence>
5826N/A
5826N/A <finally>
1797N/A <sequence>
5826N/A <!-- Test Suite Cleanup -->
5826N/A <message>'Finally: Replication Cleanup.'</message>
5826N/A <try>
5826N/A <sequence>
5826N/A <import machine="STAF_LOCAL_HOSTNAME"
5826N/A file="'%s/testcases/replication/replication_cleanup.xml'
5826N/A % (TESTS_DIR)"/>
5826N/A <call function="'replication_cleanup'">
5826N/A { 'label' : 'Replication Basic' }
5826N/A </call>
5826N/A </sequence>
5826N/A <catch exception="'STAFException'">
5826N/A <sequence>
5826N/A <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message>
5826N/A </sequence>
5826N/A </catch>
5826N/A <finally>
5826N/A <call function="'testSuite_Postamble'"/>
5826N/A </finally>
5826N/A </try>
1797N/A </sequence>
5826N/A </finally>
5826N/A
5826N/A </try>
1476N/A </block>
1476N/A </sequence>
1476N/A </function>
1476N/A</stax>