4319N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
4319N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
4319N/A<!--
4319N/A ! CDDL HEADER START
4319N/A !
4319N/A ! The contents of this file are subject to the terms of the
4319N/A ! Common Development and Distribution License, Version 1.0 only
4319N/A ! (the "License"). You may not use this file except in compliance
4319N/A ! with the License.
4319N/A !
4319N/A ! You can obtain a copy of the license at
4319N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE
4319N/A ! or https://OpenDS.dev.java.net/OpenDS.LICENSE.
4319N/A ! See the License for the specific language governing permissions
4319N/A ! and limitations under the License.
4319N/A !
4319N/A ! When distributing Covered Code, include this CDDL HEADER in each
4319N/A ! file and include the License file at
4319N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
4319N/A ! add the following below this CDDL HEADER, with the fields enclosed
4319N/A ! by brackets "[]" replaced with your own identifying information:
4319N/A ! Portions Copyright [yyyy] [name of copyright owner]
4319N/A !
4319N/A ! CDDL HEADER END
4319N/A !
4320N/A ! Copyright 2009 Sun Microsystems, Inc.
6240N/A ! Portions Copyright 2013 ForgeRock AS
4319N/A ! -->
4319N/A<stax>
4319N/A <defaultcall function="main_replication-safe-read"/>
4319N/A <function name="main_replication-safe-read">
4319N/A <function-list-args>
4319N/A <function-required-arg name="STAXParentID"/>
4319N/A </function-list-args>
4319N/A <sequence>
4865N/A <try>
4865N/A
4865N/A <block name="'replication-safe-read'">
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-safe-read'
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 # Test suites common to all replication modes
4865N/A # (hosted by replication test group)
4865N/A commonSuiteList = []
4865N/A commonSuiteList.append('totalupdate')
4865N/A commonSuiteList.append('binarycopy')
4865N/A commonSuiteList.append('ldifimport')
4865N/A commonSuiteList.append('resynchronization')
4865N/A commonSuiteList.append('basic')
4865N/A commonSuiteList.append('schema')
4865N/A commonSuiteList.append('failover')
4865N/A commonSuiteList.append('encryption')
4865N/A commonSuiteList.append('changelog')
4865N/A commonSuiteList.append('conflict')
4865N/A commonSuiteList.append('externalchangelog')
6240N/A commonSuiteList.append('externalchangelog_consistency')
5073N/A commonSuiteList.append('aci')
4865N/A
4865N/A # Safe-read mode specific test suites
4865N/A ownSuiteList = []
4865N/A
4865N/A globalAssuredReplication = 'safe-read'
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="commonSuiteList" >
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>
4648N/A
4865N/A <iterate var="_suite" in="ownSuiteList" >
4865N/A <try>
4865N/A <sequence>
4865N/A <import machine="STAF_LOCAL_HOSTNAME"
4865N/A file="'%s/testcases/replication-safe-read/%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>
4865N/A
4865N/A <call function="'testGroup_Postamble'"/>
4865N/A </sequence>
4865N/A </block>
4865N/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 -->
4319N/A <call function="'testGroup_Postamble'"/>
4865N/A </finally>
4865N/A
4865N/A </try>
4865N/A
4319N/A </sequence>
4319N/A </function>
4319N/A</stax>