7f434d9c2517340a45c7cc295f327835b6c67fb8ugaston<?xml version="1.0" encoding="UTF-8" standalone="no"?>
7f434d9c2517340a45c7cc295f327835b6c67fb8ugaston<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
7f434d9c2517340a45c7cc295f327835b6c67fb8ugaston<!--
7f434d9c2517340a45c7cc295f327835b6c67fb8ugaston ! CDDL HEADER START
7f434d9c2517340a45c7cc295f327835b6c67fb8ugaston !
7f434d9c2517340a45c7cc295f327835b6c67fb8ugaston ! The contents of this file are subject to the terms of the
7f434d9c2517340a45c7cc295f327835b6c67fb8ugaston ! Common Development and Distribution License, Version 1.0 only
7f434d9c2517340a45c7cc295f327835b6c67fb8ugaston ! (the "License"). You may not use this file except in compliance
7f434d9c2517340a45c7cc295f327835b6c67fb8ugaston ! with the License.
7f434d9c2517340a45c7cc295f327835b6c67fb8ugaston !
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac ! You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac ! or http://forgerock.org/license/CDDLv1.0.html.
7f434d9c2517340a45c7cc295f327835b6c67fb8ugaston ! See the License for the specific language governing permissions
7f434d9c2517340a45c7cc295f327835b6c67fb8ugaston ! and limitations under the License.
7f434d9c2517340a45c7cc295f327835b6c67fb8ugaston !
7f434d9c2517340a45c7cc295f327835b6c67fb8ugaston ! When distributing Covered Code, include this CDDL HEADER in each
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac ! file and include the License file at legal-notices/CDDLv1_0.txt.
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac ! If applicable, add the following below this CDDL HEADER, with the
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac ! fields enclosed by brackets "[]" replaced with your own identifying
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac ! information:
7f434d9c2517340a45c7cc295f327835b6c67fb8ugaston ! Portions Copyright [yyyy] [name of copyright owner]
7f434d9c2517340a45c7cc295f327835b6c67fb8ugaston !
7f434d9c2517340a45c7cc295f327835b6c67fb8ugaston ! CDDL HEADER END
7f434d9c2517340a45c7cc295f327835b6c67fb8ugaston !
e9a7ce4e81cce281f30fa29a26ec69e923e2d595ugaston ! Copyright 2009 Sun Microsystems, Inc.
f264371df3ed572bdf39fea7f89cf99adec13133csovant ! Portions Copyright 2013 ForgeRock AS
7f434d9c2517340a45c7cc295f327835b6c67fb8ugaston ! -->
7f434d9c2517340a45c7cc295f327835b6c67fb8ugaston<stax>
7f434d9c2517340a45c7cc295f327835b6c67fb8ugaston <defaultcall function="main_replication-safe-read"/>
7f434d9c2517340a45c7cc295f327835b6c67fb8ugaston <function name="main_replication-safe-read">
7f434d9c2517340a45c7cc295f327835b6c67fb8ugaston <function-list-args>
7f434d9c2517340a45c7cc295f327835b6c67fb8ugaston <function-required-arg name="STAXParentID"/>
7f434d9c2517340a45c7cc295f327835b6c67fb8ugaston </function-list-args>
7f434d9c2517340a45c7cc295f327835b6c67fb8ugaston <sequence>
da97433d5cd26e422a370d186f98659383c06721csovant <try>
da97433d5cd26e422a370d186f98659383c06721csovant
da97433d5cd26e422a370d186f98659383c06721csovant <block name="'replication-safe-read'">
da97433d5cd26e422a370d186f98659383c06721csovant <sequence>
da97433d5cd26e422a370d186f98659383c06721csovant <!--- Load the job environment for the test group execution -->
da97433d5cd26e422a370d186f98659383c06721csovant <import machine="STAF_LOCAL_HOSTNAME"
da97433d5cd26e422a370d186f98659383c06721csovant file="'%s/environment.xml' % TESTS_FUNCTIONS_DIR" />
da97433d5cd26e422a370d186f98659383c06721csovant <call function="'loadJobEnvironment'">
da97433d5cd26e422a370d186f98659383c06721csovant { 'parent' : STAXParentID }
da97433d5cd26e422a370d186f98659383c06721csovant </call>
da97433d5cd26e422a370d186f98659383c06721csovant <script>
da97433d5cd26e422a370d186f98659383c06721csovant CurrentTestPath['group']='replication-safe-read'
da97433d5cd26e422a370d186f98659383c06721csovant </script>
da97433d5cd26e422a370d186f98659383c06721csovant <call function="'testGroup_Preamble'"/>
da97433d5cd26e422a370d186f98659383c06721csovant
da97433d5cd26e422a370d186f98659383c06721csovant <!-- List of replication test suites to run -->
da97433d5cd26e422a370d186f98659383c06721csovant <script>
da97433d5cd26e422a370d186f98659383c06721csovant # Test suites common to all replication modes
da97433d5cd26e422a370d186f98659383c06721csovant # (hosted by replication test group)
da97433d5cd26e422a370d186f98659383c06721csovant commonSuiteList = []
da97433d5cd26e422a370d186f98659383c06721csovant commonSuiteList.append('totalupdate')
da97433d5cd26e422a370d186f98659383c06721csovant commonSuiteList.append('binarycopy')
da97433d5cd26e422a370d186f98659383c06721csovant commonSuiteList.append('ldifimport')
da97433d5cd26e422a370d186f98659383c06721csovant commonSuiteList.append('resynchronization')
da97433d5cd26e422a370d186f98659383c06721csovant commonSuiteList.append('basic')
da97433d5cd26e422a370d186f98659383c06721csovant commonSuiteList.append('schema')
da97433d5cd26e422a370d186f98659383c06721csovant commonSuiteList.append('failover')
da97433d5cd26e422a370d186f98659383c06721csovant commonSuiteList.append('encryption')
da97433d5cd26e422a370d186f98659383c06721csovant commonSuiteList.append('changelog')
da97433d5cd26e422a370d186f98659383c06721csovant commonSuiteList.append('conflict')
da97433d5cd26e422a370d186f98659383c06721csovant commonSuiteList.append('externalchangelog')
f264371df3ed572bdf39fea7f89cf99adec13133csovant commonSuiteList.append('externalchangelog_consistency')
2b68af05b4308b32506f1d68f6357cdc458869d7ludovicp commonSuiteList.append('aci')
da97433d5cd26e422a370d186f98659383c06721csovant
da97433d5cd26e422a370d186f98659383c06721csovant # Safe-read mode specific test suites
da97433d5cd26e422a370d186f98659383c06721csovant ownSuiteList = []
da97433d5cd26e422a370d186f98659383c06721csovant
da97433d5cd26e422a370d186f98659383c06721csovant globalAssuredReplication = 'safe-read'
da97433d5cd26e422a370d186f98659383c06721csovant
da97433d5cd26e422a370d186f98659383c06721csovant if (REPLICATION_SPLIT_SERVERS == 'true'):
da97433d5cd26e422a370d186f98659383c06721csovant globalSplitServers = True
da97433d5cd26e422a370d186f98659383c06721csovant else:
da97433d5cd26e422a370d186f98659383c06721csovant globalSplitServers = None
da97433d5cd26e422a370d186f98659383c06721csovant </script>
7f434d9c2517340a45c7cc295f327835b6c67fb8ugaston
da97433d5cd26e422a370d186f98659383c06721csovant <iterate var="_suite" in="commonSuiteList" >
da97433d5cd26e422a370d186f98659383c06721csovant <try>
da97433d5cd26e422a370d186f98659383c06721csovant <sequence>
da97433d5cd26e422a370d186f98659383c06721csovant <import machine="STAF_LOCAL_HOSTNAME"
da97433d5cd26e422a370d186f98659383c06721csovant file="'%s/testcases/replication/%s/%s.xml' %
da97433d5cd26e422a370d186f98659383c06721csovant (TESTS_DIR,_suite,_suite)"/>
da97433d5cd26e422a370d186f98659383c06721csovant <call function="'replication_%s'% _suite" />
da97433d5cd26e422a370d186f98659383c06721csovant </sequence>
da97433d5cd26e422a370d186f98659383c06721csovant
da97433d5cd26e422a370d186f98659383c06721csovant <catch exception="'STAFException.TestSuite.SetupException'">
da97433d5cd26e422a370d186f98659383c06721csovant <message log="1" level="'fatal'">
da97433d5cd26e422a370d186f98659383c06721csovant 'Setup of test suite %s failed.' % _suite
da97433d5cd26e422a370d186f98659383c06721csovant </message>
da97433d5cd26e422a370d186f98659383c06721csovant </catch>
da97433d5cd26e422a370d186f98659383c06721csovant
da97433d5cd26e422a370d186f98659383c06721csovant <catch exception="'STAFException.TestSuite.MainException'">
da97433d5cd26e422a370d186f98659383c06721csovant <message log="1" level="'fatal'">
da97433d5cd26e422a370d186f98659383c06721csovant 'Main part of test suite %s failed.' % _suite
da97433d5cd26e422a370d186f98659383c06721csovant </message>
da97433d5cd26e422a370d186f98659383c06721csovant </catch>
da97433d5cd26e422a370d186f98659383c06721csovant
da97433d5cd26e422a370d186f98659383c06721csovant <catch exception="'STAFException.TestSuite.CleanupException'">
da97433d5cd26e422a370d186f98659383c06721csovant <message log="1" level="'fatal'">
da97433d5cd26e422a370d186f98659383c06721csovant 'Cleanup of test suite %s failed.' % _suite
da97433d5cd26e422a370d186f98659383c06721csovant </message>
da97433d5cd26e422a370d186f98659383c06721csovant </catch>
da97433d5cd26e422a370d186f98659383c06721csovant </try>
da97433d5cd26e422a370d186f98659383c06721csovant </iterate>
7f434d9c2517340a45c7cc295f327835b6c67fb8ugaston
da97433d5cd26e422a370d186f98659383c06721csovant <iterate var="_suite" in="ownSuiteList" >
da97433d5cd26e422a370d186f98659383c06721csovant <try>
da97433d5cd26e422a370d186f98659383c06721csovant <sequence>
da97433d5cd26e422a370d186f98659383c06721csovant <import machine="STAF_LOCAL_HOSTNAME"
da97433d5cd26e422a370d186f98659383c06721csovant file="'%s/testcases/replication-safe-read/%s/%s.xml' %
da97433d5cd26e422a370d186f98659383c06721csovant (TESTS_DIR,_suite,_suite)"/>
da97433d5cd26e422a370d186f98659383c06721csovant <call function="'replication_%s'% _suite" />
da97433d5cd26e422a370d186f98659383c06721csovant </sequence>
da97433d5cd26e422a370d186f98659383c06721csovant
da97433d5cd26e422a370d186f98659383c06721csovant <catch exception="'STAFException.TestSuite.SetupException'">
da97433d5cd26e422a370d186f98659383c06721csovant <message log="1" level="'fatal'">
da97433d5cd26e422a370d186f98659383c06721csovant 'Setup of test suite %s failed.' % _suite
da97433d5cd26e422a370d186f98659383c06721csovant </message>
da97433d5cd26e422a370d186f98659383c06721csovant </catch>
da97433d5cd26e422a370d186f98659383c06721csovant
da97433d5cd26e422a370d186f98659383c06721csovant <catch exception="'STAFException.TestSuite.MainException'">
da97433d5cd26e422a370d186f98659383c06721csovant <message log="1" level="'fatal'">
da97433d5cd26e422a370d186f98659383c06721csovant 'Main part of test suite %s failed.' % _suite
da97433d5cd26e422a370d186f98659383c06721csovant </message>
da97433d5cd26e422a370d186f98659383c06721csovant </catch>
da97433d5cd26e422a370d186f98659383c06721csovant
da97433d5cd26e422a370d186f98659383c06721csovant <catch exception="'STAFException.TestSuite.CleanupException'">
da97433d5cd26e422a370d186f98659383c06721csovant <message log="1" level="'fatal'">
da97433d5cd26e422a370d186f98659383c06721csovant 'Cleanup of test suite %s failed.' % _suite
da97433d5cd26e422a370d186f98659383c06721csovant </message>
da97433d5cd26e422a370d186f98659383c06721csovant </catch>
da97433d5cd26e422a370d186f98659383c06721csovant </try>
da97433d5cd26e422a370d186f98659383c06721csovant </iterate>
6ed3ce5ea5066ced420c83f43dee7973c3d57747ugaston
da97433d5cd26e422a370d186f98659383c06721csovant <call function="'testGroup_Postamble'"/>
da97433d5cd26e422a370d186f98659383c06721csovant </sequence>
da97433d5cd26e422a370d186f98659383c06721csovant </block>
da97433d5cd26e422a370d186f98659383c06721csovant
da97433d5cd26e422a370d186f98659383c06721csovant <catch exception="'STAXException.TestGroupException'">
da97433d5cd26e422a370d186f98659383c06721csovant <message log="1" level="'fatal'">
da97433d5cd26e422a370d186f98659383c06721csovant 'Execution of Test Group Failed'
da97433d5cd26e422a370d186f98659383c06721csovant </message>
da97433d5cd26e422a370d186f98659383c06721csovant </catch>
da97433d5cd26e422a370d186f98659383c06721csovant
da97433d5cd26e422a370d186f98659383c06721csovant <finally>
da97433d5cd26e422a370d186f98659383c06721csovant <!-- Test Group postamble -->
7f434d9c2517340a45c7cc295f327835b6c67fb8ugaston <call function="'testGroup_Postamble'"/>
da97433d5cd26e422a370d186f98659383c06721csovant </finally>
da97433d5cd26e422a370d186f98659383c06721csovant
da97433d5cd26e422a370d186f98659383c06721csovant </try>
da97433d5cd26e422a370d186f98659383c06721csovant
7f434d9c2517340a45c7cc295f327835b6c67fb8ugaston </sequence>
7f434d9c2517340a45c7cc295f327835b6c67fb8ugaston </function>
7f434d9c2517340a45c7cc295f327835b6c67fb8ugaston</stax>