replication.xml revision 6031e9c7eb72435516a6828deb2e97533ed0382d
0N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
0N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
0N/A<!--
0N/A ! CDDL HEADER START
0N/A !
0N/A ! The contents of this file are subject to the terms of the
0N/A ! Common Development and Distribution License, Version 1.0 only
0N/A ! (the "License"). You may not use this file except in compliance
0N/A ! with the License.
0N/A !
0N/A ! You can obtain a copy of the license at
0N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE
0N/A ! or https://OpenDS.dev.java.net/OpenDS.LICENSE.
0N/A ! See the License for the specific language governing permissions
0N/A ! and limitations under the License.
0N/A !
0N/A ! When distributing Covered Code, include this CDDL HEADER in each
0N/A ! file and include the License file at
0N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
0N/A ! add the following below this CDDL HEADER, with the fields enclosed
0N/A ! by brackets "[]" replaced with your own identifying information:
0N/A ! Portions Copyright [yyyy] [name of copyright owner]
0N/A !
0N/A ! CDDL HEADER END
0N/A !
0N/A ! Copyright 2007-2010 Sun Microsystems, Inc.
0N/A ! -->
0N/A<stax>
0N/A <defaultcall function="main_replication"/>
0N/A <function name="main_replication">
0N/A <function-list-args>
0N/A <function-required-arg name="STAXParentID"/>
0N/A </function-list-args>
0N/A <sequence>
0N/A
0N/A <try>
0N/A
0N/A <block name="'replication'">
0N/A <sequence>
0N/A <!--- Load the job environment for the test group execution -->
0N/A <import machine="STAF_LOCAL_HOSTNAME"
0N/A file="'%s/environment.xml' % TESTS_FUNCTIONS_DIR" />
0N/A <call function="'loadJobEnvironment'">
0N/A { 'parent' : STAXParentID }
0N/A </call>
0N/A <script>
0N/A CurrentTestPath['group']='replication'
0N/A </script>
0N/A <call function="'testGroup_Preamble'"/>
0N/A
0N/A <!-- List of replication test suites to run -->
0N/A <script>
0N/A suiteList = []
0N/A suiteList.append('totalupdate')
0N/A suiteList.append('binarycopy')
0N/A suiteList.append('ldifimport')
0N/A suiteList.append('resynchronization')
0N/A suiteList.append('basic')
0N/A suiteList.append('schema')
0N/A suiteList.append('failover')
0N/A suiteList.append('encryption')
0N/A suiteList.append('changelog')
0N/A suiteList.append('conflict')
0N/A suiteList.append('externalchangelog')
0N/A suiteList.append('aci')
0N/A
0N/A globalAssuredReplication = None
0N/A
0N/A if (REPLICATION_SPLIT_SERVERS == 'true'):
0N/A globalSplitServers = True
0N/A else:
0N/A globalSplitServers = None
0N/A </script>
0N/A
0N/A <iterate var="_suite" in="suiteList" >
0N/A <try>
0N/A <sequence>
0N/A <import machine="STAF_LOCAL_HOSTNAME"
0N/A file="'%s/testcases/replication/%s/%s.xml' %
0N/A (TESTS_DIR,_suite,_suite)"/>
0N/A <call function="'replication_%s'% _suite" />
0N/A </sequence>
0N/A
0N/A <catch exception="'STAFException.TestSuite.SetupException'">
0N/A <message log="1" level="'fatal'">
0N/A 'Setup of test suite %s failed.' % _suite
0N/A </message>
0N/A </catch>
0N/A
0N/A <catch exception="'STAFException.TestSuite.MainException'">
0N/A <message log="1" level="'fatal'">
0N/A 'Main part of test suite %s failed.' % _suite
0N/A </message>
0N/A </catch>
0N/A
0N/A <catch exception="'STAFException.TestSuite.CleanupException'">
0N/A <message log="1" level="'fatal'">
0N/A 'Cleanup of test suite %s failed.' % _suite
0N/A </message>
0N/A </catch>
0N/A </try>
0N/A </iterate>
0N/A
0N/A </sequence>
0N/A </block>
0N/A
0N/A <catch exception="'STAXException.TestGroupException'">
0N/A <message log="1" level="'fatal'">
0N/A 'Execution of Test Group Failed'
0N/A </message>
0N/A </catch>
0N/A
0N/A <finally>
0N/A <!-- Test Group postamble -->
0N/A <call function="'testGroup_Postamble'"/>
0N/A </finally>
0N/A
0N/A </try>
0N/A
0N/A </sequence>
0N/A </function>
0N/A</stax>
0N/A