4724N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
4724N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
4724N/A<!--
4724N/A ! CDDL HEADER START
4724N/A !
4724N/A ! The contents of this file are subject to the terms of the
4724N/A ! Common Development and Distribution License, Version 1.0 only
4724N/A ! (the "License"). You may not use this file except in compliance
4724N/A ! with the License.
4724N/A !
4724N/A ! You can obtain a copy of the license at
4724N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE
4724N/A ! or https://OpenDS.dev.java.net/OpenDS.LICENSE.
4724N/A ! See the License for the specific language governing permissions
4724N/A ! and limitations under the License.
4724N/A !
4724N/A ! When distributing Covered Code, include this CDDL HEADER in each
4724N/A ! file and include the License file at
4724N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
4724N/A ! add the following below this CDDL HEADER, with the fields enclosed
4724N/A ! by brackets "[]" replaced with your own identifying information:
4724N/A ! Portions Copyright [yyyy] [name of copyright owner]
4724N/A !
4724N/A ! CDDL HEADER END
4724N/A !
4724N/A ! Copyright 2008-2009 Sun Microsystems, Inc.
6042N/A ! Portions Copyright 2011-2013 ForgeRock AS.
4724N/A ! -->
4724N/A<stax>
4724N/A
4724N/A <defaultcall function="replication_externalchangelog"/>
4724N/A
4724N/A <function name="replication_externalchangelog">
4724N/A <sequence>
5429N/A <!-- Do not run the tests if servers are split, as it is not supported
5429N/A ! by External Changelog to have RS separated from DS -->
5429N/A <if expr="globalSplitServers == True">
4724N/A <sequence>
5429N/A <message>'External changelog not supported in replication split servers mode.'</message>
5429N/A <message>'This test suite will not be run for this reason.'</message>
5429N/A <return>0</return>
5429N/A </sequence>
5429N/A </if>
6345N/A <block name="'externalchangelog-opends'">
6345N/A <try>
6345N/A <sequence>
6345N/A
6345N/A <script>
6345N/A if not CurrentTestPath.has_key('group'):
6345N/A CurrentTestPath['group']='replication'
6345N/A CurrentTestPath['suite']='externalchangelog'
6345N/A
6345N/A _group = 'replication'
6345N/A _suite = 'externalchangelog'
6345N/A _groupdir='%s/testcases/replication' % TESTS_DIR
6345N/A </script>
6345N/A
6345N/A <call function="'testSuite_Preamble'"/>
6345N/A
6345N/A <try>
6345N/A
6345N/A <sequence>
6345N/A
6345N/A <!--- Test Suite information
6345N/A #@TestSuiteName Replication External Changelog Tests
6345N/A #@TestSuitePurpose Test the event notification system provided by
6345N/A the External Changelog.
6345N/A #@TestSuiteID External Changelog Tests
6345N/A #@TestSuiteGroup External Changelog
6345N/A #@TestGroup Replication
6345N/A #@TestScript replication_externalchangelog.xml
6345N/A #@TestHTMLLink http://opends.dev.java.net/
6345N/A -->
6345N/A
6345N/A <import machine="STAF_LOCAL_HOSTNAME"
6345N/A file="'%s/testcases/replication/replication_setup.xml'
6345N/A % (TESTS_DIR)"/>
6345N/A <call function="'replication_setup'"/>
6345N/A
6345N/A <import machine="STAF_LOCAL_HOSTNAME"
6345N/A file="'%s/testcases/%s/%s/%s_common_ecl_tests.xml'
6345N/A % (TESTS_DIR, _group, _suite, _suite)"/>
6345N/A <call function="'common_ecl_tests'">
6345N/A { 'ecl_mode' : 'opends' }
6345N/A </call>
6345N/A
6345N/A </sequence>
6345N/A
6345N/A <catch exception="'STAFException.TestSuite.SetupException'">
6345N/A <sequence>
6345N/A <message log="1" level="'fatal'">
6345N/A 'Setup of test suite failed.'
6345N/A </message>
6345N/A <rethrow/>
6345N/A </sequence>
6345N/A </catch>
6345N/A
6345N/A <finally>
6345N/A <message>'Test Cases Completed.'</message>
6345N/A </finally>
6345N/A
6345N/A </try>
6345N/A
6345N/A </sequence>
6345N/A
6345N/A <finally>
6345N/A <sequence>
6345N/A <!-- Test Suite Cleanup -->
6345N/A <message>'Finally: Replication Cleanup.'</message>
6345N/A <try>
6345N/A <sequence>
6345N/A <import machine="STAF_LOCAL_HOSTNAME"
6345N/A file="'%s/testcases/replication/replication_cleanup.xml'
6345N/A % (TESTS_DIR)"/>
6345N/A <call function="'replication_cleanup'" />
6345N/A </sequence>
6345N/A <catch exception="'STAFException'">
6345N/A <sequence>
6345N/A <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message>
6345N/A </sequence>
6345N/A </catch>
6345N/A <finally>
6345N/A <call function="'testSuite_Postamble'"/>
6345N/A </finally>
6345N/A </try>
6345N/A </sequence>
6345N/A </finally>
6345N/A </try>
6345N/A </block>
6345N/A <block name="'externalchangelog-draft'">
5429N/A <try>
5429N/A <sequence>
5429N/A
5429N/A <script>
5429N/A if not CurrentTestPath.has_key('group'):
5429N/A CurrentTestPath['group']='replication'
6042N/A CurrentTestPath['suite']='externalchangelog'
4974N/A
6220N/A _group = 'replication'
5429N/A _suite = 'externalchangelog'
6219N/A _groupdir='%s/testcases/replication' % TESTS_DIR
5429N/A </script>
4974N/A
5429N/A <call function="'testSuite_Preamble'"/>
5429N/A
5429N/A <try>
5429N/A
5429N/A <sequence>
4974N/A
5429N/A <!--- Test Suite information
5429N/A #@TestSuiteName Replication External Changelog Tests
5429N/A #@TestSuitePurpose Test the event notification system provided by
5429N/A the External Changelog.
5429N/A #@TestSuiteID External Changelog Tests
5429N/A #@TestSuiteGroup External Changelog
5429N/A #@TestGroup Replication
5429N/A #@TestScript replication_externalchangelog.xml
5429N/A #@TestHTMLLink http://opends.dev.java.net/
5429N/A -->
5429N/A
5429N/A <import machine="STAF_LOCAL_HOSTNAME"
5429N/A file="'%s/testcases/replication/replication_setup.xml'
5429N/A % (TESTS_DIR)"/>
5429N/A <call function="'replication_setup'"/>
5429N/A
6345N/A <import machine="STAF_LOCAL_HOSTNAME"
6345N/A file="'%s/testcases/%s/%s/%s_common_ecl_tests.xml'
6345N/A % (TESTS_DIR, _group, _suite, _suite)"/>
6345N/A <call function="'common_ecl_tests'">
6345N/A { 'ecl_mode' : 'draft' }
6345N/A </call>
5429N/A
5429N/A <!-- List of Import of Test Functions -->
5429N/A <script>
5429N/A importList=[]
5429N/A importList.append('externalchangelog/externalchangelog_consistency_tests')
5429N/A </script>
5429N/A
5429N/A <!-- Import the files for this test suite -->
5429N/A <iterate var="__import" in="importList">
5429N/A <import machine="STAF_LOCAL_HOSTNAME"
5429N/A file="'%s/%s.xml' % (_groupdir,__import)"/>
5429N/A </iterate>
5429N/A
5429N/A <!-- List of Test Cases -->
5429N/A <script>
5429N/A # Globals for cookies, changenumbers, lastchangenumbers
5429N/A global_cookiesList=STAXGlobal([])
5429N/A global_cnsList=STAXGlobal([])
5429N/A global_lcnsList=STAXGlobal([])
4724N/A
5429N/A # List of tests to run
5429N/A testsList=[]
5429N/A testsList.append('ecl_setup')
5475N/A testsList.append('ecl_changenumbers_001')
5429N/A testsList.append('ecl_cleanup')
5429N/A </script>
5429N/A
5429N/A <!-- Execute the Tests -->
5429N/A <iterate var="__test" in="testsList">
5429N/A <sequence>
5429N/A <call function="'%s' % (__test)" />
6345N/A </sequence>
5429N/A </iterate>
5429N/A
5429N/A </sequence>
5429N/A
5429N/A <catch exception="'STAFException.TestSuite.SetupException'">
5429N/A <sequence>
5429N/A <message log="1" level="'fatal'">
5429N/A 'Setup of test suite failed.'
5429N/A </message>
5429N/A <rethrow/>
5429N/A </sequence>
5429N/A </catch>
5429N/A
5429N/A <finally>
5429N/A <message>'Test Cases Completed.'</message>
5429N/A </finally>
5429N/A
5429N/A </try>
5429N/A
5429N/A </sequence>
5429N/A
5429N/A <finally>
5429N/A <sequence>
5429N/A <!-- Test Suite Cleanup -->
5429N/A <message>'Finally: Replication Cleanup.'</message>
5429N/A <try>
5375N/A <sequence>
5375N/A <import machine="STAF_LOCAL_HOSTNAME"
4974N/A file="'%s/testcases/replication/replication_cleanup.xml'
4974N/A % (TESTS_DIR)"/>
5429N/A <call function="'replication_cleanup'" />
5429N/A </sequence>
5429N/A <catch exception="'STAFException'">
5429N/A <sequence>
5429N/A <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message>
5429N/A </sequence>
5429N/A </catch>
5429N/A <finally>
5429N/A <call function="'testSuite_Postamble'"/>
5429N/A </finally>
5429N/A </try>
4974N/A </sequence>
5429N/A </finally>
5429N/A
5429N/A </try>
4724N/A </block>
4724N/A </sequence>
4724N/A </function>
5429N/A</stax>