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