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.
1476N/A !
1476N/A ! You can obtain a copy of the license at
1476N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE
1476N/A ! or https://OpenDS.dev.java.net/OpenDS.LICENSE.
1476N/A ! See the License for the specific language governing permissions
1476N/A ! and limitations under the License.
1476N/A !
1476N/A ! When distributing Covered Code, include this CDDL HEADER in each
1476N/A ! file and include the License file at
1476N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. 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 !
5065N/A ! Copyright 2007-2010 Sun Microsystems, Inc.
6142N/A ! Portions Copyright 2013 ForgeRock AS
1476N/A ! -->
1476N/A<stax>
1476N/A <defaultcall function="main_replication"/>
1476N/A <function name="main_replication">
3816N/A <function-list-args>
3816N/A <function-required-arg name="STAXParentID"/>
3816N/A </function-list-args>
1476N/A <sequence>
4865N/A
4865N/A <try>
4865N/A
4865N/A <block name="'replication'">
4865N/A <sequence>
4865N/A <!--- Load the job environment for the test group execution -->
4865N/A <import machine="STAF_LOCAL_HOSTNAME"
4865N/A file="'%s/environment.xml' % TESTS_FUNCTIONS_DIR" />
4865N/A <call function="'loadJobEnvironment'">
4865N/A { 'parent' : STAXParentID }
4865N/A </call>
4865N/A <script>
4865N/A CurrentTestPath['group']='replication'
4865N/A </script>
4865N/A <call function="'testGroup_Preamble'"/>
4865N/A
4865N/A <!-- List of replication test suites to run -->
4865N/A <script>
4865N/A suiteList = []
4865N/A suiteList.append('totalupdate')
4865N/A suiteList.append('binarycopy')
4865N/A suiteList.append('ldifimport')
4865N/A suiteList.append('resynchronization')
4865N/A suiteList.append('basic')
4865N/A suiteList.append('schema')
4865N/A suiteList.append('failover')
4865N/A suiteList.append('encryption')
4865N/A suiteList.append('changelog')
4865N/A suiteList.append('conflict')
4865N/A suiteList.append('externalchangelog')
6049N/A suiteList.append('externalchangelog_consistency')
5065N/A suiteList.append('aci')
4865N/A
4865N/A globalAssuredReplication = None
4865N/A
4865N/A if (REPLICATION_SPLIT_SERVERS == 'true'):
4865N/A globalSplitServers = True
4865N/A else:
4865N/A globalSplitServers = None
4865N/A </script>
4319N/A
4865N/A <iterate var="_suite" in="suiteList" >
4865N/A <try>
4865N/A <sequence>
4865N/A <import machine="STAF_LOCAL_HOSTNAME"
4865N/A file="'%s/testcases/replication/%s/%s.xml' %
4865N/A (TESTS_DIR,_suite,_suite)"/>
4865N/A <call function="'replication_%s'% _suite" />
4865N/A </sequence>
4865N/A
4865N/A <catch exception="'STAFException.TestSuite.SetupException'">
4865N/A <message log="1" level="'fatal'">
4865N/A 'Setup of test suite %s failed.' % _suite
4865N/A </message>
4865N/A </catch>
4865N/A
4865N/A <catch exception="'STAFException.TestSuite.MainException'">
4865N/A <message log="1" level="'fatal'">
4865N/A 'Main part of test suite %s failed.' % _suite
4865N/A </message>
4865N/A </catch>
4865N/A
4865N/A <catch exception="'STAFException.TestSuite.CleanupException'">
4865N/A <message log="1" level="'fatal'">
4865N/A 'Cleanup of test suite %s failed.' % _suite
4865N/A </message>
4865N/A </catch>
4865N/A </try>
4865N/A </iterate>
4631N/A
4865N/A </sequence>
4865N/A </block>
3816N/A
4865N/A <catch exception="'STAXException.TestGroupException'">
4865N/A <message log="1" level="'fatal'">
4865N/A 'Execution of Test Group Failed'
4865N/A </message>
4865N/A </catch>
4865N/A
4865N/A <finally>
4865N/A <!-- Test Group postamble -->
1476N/A <call function="'testGroup_Postamble'"/>
4865N/A </finally>
4865N/A
4865N/A </try>
4865N/A
1476N/A </sequence>
1476N/A </function>
1476N/A</stax>