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