6350N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
6350N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
6350N/A<!--
6350N/A ! CDDL HEADER START
6350N/A !
6350N/A ! The contents of this file are subject to the terms of the
6350N/A ! Common Development and Distribution License, Version 1.0 only
6350N/A ! (the "License"). You may not use this file except in compliance
6350N/A ! with the License.
6350N/A !
6350N/A ! You can obtain a copy of the license at
6350N/A ! trunk/opends/resource/legal-notices/CDDLv1_0.txt
6350N/A ! or http://forgerock.org/license/CDDLv1.0.html.
6350N/A ! See the License for the specific language governing permissions
6350N/A ! and limitations under the License.
6350N/A !
6350N/A ! When distributing Covered Code, include this CDDL HEADER in each
6350N/A ! file and include the License file at
6350N/A ! trunk/opends/resource/legal-notices/CDDLv1_0.txt. If applicable,
6350N/A ! add the following below this CDDL HEADER, with the fields enclosed
6350N/A ! by brackets "[]" replaced with your own identifying information:
6350N/A ! Portions Copyright [yyyy] [name of copyright owner]
6350N/A !
6350N/A ! CDDL HEADER END
6350N/A !
6350N/A ! Copyright 2013 ForgeRock AS.
6350N/A ! -->
6350N/A<stax>
6350N/A <defaultcall function="main_replication_operations_basic"/>
6350N/A <function name="main_replication_operations_basic" scope="local">
6350N/A <sequence>
6350N/A <block name="'main_replication_operations_basic'">
6350N/A <try>
6350N/A <sequence>
6350N/A <script>
6350N/A CurrentTestPath['group']='replication_operations'
6350N/A CurrentTestPath['suite']='basic'
6350N/A
6350N/A __group=CurrentTestPath['group']
6350N/A __groupdir='%s/testcases/%s' % (TESTS_DIR,__group)
6350N/A </script>
6350N/A
6350N/A <!--- Test Suite information
6350N/A #@TestSuiteName Basic replication operations suite
6350N/A #@TestSuitePurpose Verify basic replication operations
6350N/A #@TestSuiteID Suite
6350N/A #@TestSuiteGroup Basic
6350N/A #@TestGroup Basic
6350N/A #@TestScript operations.xml
6350N/A #@TestHTMLLink http://www.forgerock.org/
6350N/A -->
6350N/A <call function="'testSuite_Preamble'"/>
6350N/A
6350N/A <try>
6350N/A <sequence>
6350N/A
6350N/A <import machine="STAF_LOCAL_HOSTNAME"
6350N/A file="'%/functional-tests/testcases/replication/replication_setup.xml' % (TESTS_DIR)"/>
6350N/A <call function="'replication_setup'"/>
6350N/A
6350N/A <!-- List of Import of Test Functions -->
6350N/A <script>
6350N/A importList=[]
6350N/A importList.append('basic/replication_operations_basic_tests')
6350N/A </script>
6350N/A
6350N/A <!-- Import the files for this test suite -->
6350N/A <iterate var="__import" in="importList">
6350N/A <import machine="STAF_LOCAL_HOSTNAME"
6350N/A file="'%s/%s.xml' % (__groupdir,__import)"/>
6350N/A </iterate>
6350N/A
6350N/A <!-- Specific to basic operations tests -->
6350N/A <script>
6350N/A timerDuration = '2h'
6350N/A numberOfEntries = 100000
6350N/A addTemplate = '%s/replication_operations/add_template.ldif' % remote.data
6350N/A ldifFile = '%s/import_Entries_100k.ldif' % remote.temp
6350N/A </script>
6350N/A
6350N/A <!-- List of Test Cases -->
6350N/A <script>
6350N/A testsList=[]
6350N/A testsList.append('basic_replication_operations_000')
6351N/A testsList.append('basic_replication_operations_001')
6350N/A testsList.append('basic_replication_operations_002')
6350N/A testsList.append('basic_replication_operations_003')
6350N/A </script>
6350N/A
6350N/A <!-- Execute the Tests -->
6350N/A <iterate var="__test" in="testsList">
6350N/A <sequence>
6350N/A <call function="'%s' % (__test)" />
6350N/A </sequence>
6350N/A </iterate>
6350N/A
6350N/A </sequence>
6350N/A <catch exception="'STAFException.TestSuite.SetupException'">
6350N/A <sequence>
6350N/A <message log="1" level="'fatal'">
6350N/A 'Setup of test suite failed.'
6350N/A </message>
6350N/A <rethrow/>
6350N/A </sequence>
6350N/A </catch>
6350N/A
6350N/A <finally>
6350N/A <message>'Test Cases Completed.'</message>
6350N/A </finally>
6350N/A
6350N/A </try>
6350N/A
6350N/A </sequence>
6350N/A
6350N/A <finally>
6350N/A <sequence>
6350N/A <!-- Test Suite Cleanup -->
6350N/A <message>'Finally: Global Cleanup.'</message>
6350N/A <try>
6350N/A <sequence>
6350N/A <import machine="STAF_LOCAL_HOSTNAME"
6350N/A file="'%/functional-tests/testcases/replication/replication_cleanup.xml' % (TESTS_DIR)"/>
6350N/A <call function="'replication_cleanup'"/>
6350N/A </sequence>
6350N/A <catch exception="'STAFException'">
6350N/A <sequence>
6350N/A <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message>
6350N/A </sequence>
6350N/A </catch>
6350N/A <finally>
6350N/A <call function="'testSuite_Postamble'"/>
6350N/A </finally>
6350N/A </try>
6350N/A </sequence>
6350N/A </finally>
6350N/A
6350N/A </try>
6350N/A </block>
6350N/A </sequence>
6350N/A </function>
6350N/A</stax>