1476N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2887N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
1476N/A<!--
1476N/A ! CDDL HEADER START
1476N/A !
1476N/A ! The contents of this file are subject to the terms of the
1476N/A ! Common Development and Distribution License, Version 1.0 only
1476N/A ! (the "License"). You may not use this file except in compliance
1476N/A ! with the License.
1476N/A !
1476N/A ! You can obtain a copy of the license at
1476N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE
1476N/A ! or https://OpenDS.dev.java.net/OpenDS.LICENSE.
1476N/A ! See the License for the specific language governing permissions
1476N/A ! and limitations under the License.
1476N/A !
1476N/A ! When distributing Covered Code, include this CDDL HEADER in each
1476N/A ! file and include the License file at
1476N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
1476N/A ! add the following below this CDDL HEADER, with the fields enclosed
1476N/A ! by brackets "[]" replaced with your own identifying information:
1476N/A ! Portions Copyright [yyyy] [name of copyright owner]
1476N/A !
1476N/A ! CDDL HEADER END
1476N/A !
3232N/A ! Copyright 2007-2008 Sun Microsystems, Inc.
5822N/A ! Portions Copyright 2011-2012 ForgeRock AS.
1476N/A ! -->
1476N/A<stax>
1476N/A
1476N/A <defaultcall function="replication_basic_setup"/>
1476N/A
1476N/A <function name="replication_basic_setup">
1476N/A
5822N/A <block name="'replication-basic-setup'">
5822N/A
5822N/A <testcase name="getTestCaseName('Basic Preamble')">
1476N/A
5822N/A <try>
5822N/A
5822N/A <sequence>
1476N/A
5822N/A <call function="'testCase_Preamble'"/>
1476N/A
5822N/A <!--- Setup the client for the Basic test suite -->
5822N/A <message>
5822N/A 'Replication: Basic: Setup. Get client ready for Basic tests.'
5822N/A </message>
5822N/A
5822N/A <script>
5822N/A synchroSuffix = master.getSynchronizedSuffixList()[0].getSuffixDn()
5822N/A entryDn = 'uid=scarter,%s' % synchroSuffix
5822N/A grandchildEntryDn = 'uid=scarter,ou=People,o=replication tests,%s' \
5822N/A % synchroSuffix
5822N/A mod_type = 'replace'
5822N/A attr_type = 'roomnumber'
5822N/A attr_value = '1111'
5822N/A </script>
5822N/A
5822N/A <script>
5822N/A filename = 'replication_add_root_suffix.ldif'
5822N/A filePath = '%s/%s' % (local.temp,filename)
5822N/A write_replication_add_root_suffix_ldif_file(filePath, synchroSuffix)
5822N/A </script>
5822N/A
5822N/A <!-- Copy the replication_add_root_suffix ldif to client host -->
5822N/A <message>
5822N/A 'Copy %s file from %s to %s' % (filename,local.temp,client.getTmpDir())
5822N/A </message>
5822N/A <call function="'copyFile'">
5822N/A { 'srcfile' : filePath,
5822N/A 'destfile' : '%s/%s' % (client.getTmpDir(),filename),
5822N/A 'remotehost' : client.getHostname() }
5822N/A </call>
5822N/A
5822N/A <script>
5822N/A filename = 'replication_add_single.ldif'
5822N/A filePath = '%s/%s' % (local.temp,filename)
5822N/A write_replication_add_single_ldif_file(filePath, synchroSuffix)
5822N/A </script>
5822N/A
5822N/A <!-- Copy the replication_add_single ldif to client host -->
5822N/A <message>
5822N/A 'Copy %s file from %s to %s' % (filename,local.temp,client.getTmpDir())
5822N/A </message>
5822N/A <call function="'copyFile'">
5822N/A { 'srcfile' : filePath,
5822N/A 'destfile' : '%s/%s' % (client.getTmpDir(),filename),
5822N/A 'remotehost' : client.getHostname() }
5822N/A </call>
5822N/A
5822N/A <script>
5822N/A filename = 'replication_add_multiple.ldif'
5822N/A filePath = '%s/%s' % (local.temp,filename)
5822N/A write_replication_add_multiple_ldif_file(filePath, synchroSuffix)
5822N/A </script>
2175N/A
5822N/A <!-- Copy the replication_add_multiple ldif to client host -->
5822N/A <message>
5822N/A 'Copy %s file from %s to %s' % (filename,local.temp,client.getTmpDir())
5822N/A </message>
5822N/A <call function="'copyFile'">
5822N/A { 'srcfile' : filePath,
5822N/A 'destfile' : '%s/%s' % (client.getTmpDir(),filename),
5822N/A 'remotehost' : client.getHostname() }
5822N/A </call>
5822N/A
5822N/A <script>
5822N/A filename = 'replication_mod.ldif'
5822N/A filePath = '%s/%s' % (local.temp,filename)
5822N/A write_replication_mod_ldif_file(filePath, entryDn, mod_type, attr_type,
5822N/A attr_value)
5822N/A </script>
5822N/A
5822N/A <!-- Copy the replication_mod ldif to client host -->
5822N/A <message>
5822N/A 'Copy %s file from %s to %s' % (filename,local.temp,client.getTmpDir())
5822N/A </message>
5822N/A <call function="'copyFile'">
5822N/A { 'srcfile' : filePath,
5822N/A 'destfile' : '%s/%s' % (client.getTmpDir(),filename),
5822N/A 'remotehost' : client.getHostname()
5822N/A }
5822N/A </call>
5822N/A
5822N/A
5822N/A <call function="'checkRC'">
5822N/A { 'returncode' : RC ,
5822N/A 'result' : STAXResult
5822N/A }
5822N/A </call>
5822N/A
5822N/A <tcstatus result="'pass'"></tcstatus>
1476N/A
5822N/A </sequence>
5822N/A
5822N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5822N/A <sequence>
5822N/A <message log="1" level="'fatal'">
5822N/A '%s: Failed to cleanup. eInfo(%s)' % (eType,eInfo)
5822N/A </message>
5822N/A <throw exception="'STAFException.TestSuite.CleanupException'" />
5822N/A </sequence>
5822N/A </catch>
5822N/A <finally>
5822N/A <!-- Test Case postamble -->
5822N/A <call function="'testCase_Postamble'"/>
5822N/A </finally>
5822N/A
5822N/A </try>
5822N/A
5822N/A </testcase>
5822N/A
5822N/A </block>
3326N/A
1476N/A </function>
1476N/A
1476N/A</stax>