4865N/A<?
xml version="1.0" encoding="UTF-8" standalone="no"?>
4865N/A ! The contents of this file are subject to the terms of the 4865N/A ! Common Development and Distribution License, Version 1.0 only 4865N/A ! (the "License"). You may not use this file except in compliance 4865N/A ! See the License for the specific language governing permissions 4865N/A ! and limitations under the License. 4865N/A ! When distributing Covered Code, include this CDDL HEADER in each 6982N/A ! If applicable, add the following below this CDDL HEADER, with the 6982N/A ! fields enclosed by brackets "[]" replaced with your own identifying 4865N/A ! Portions Copyright [yyyy] [name of copyright owner] 5073N/A ! Copyright 2009-2010 Sun Microsystems, Inc. 7087N/A ! Portions Copyright 2011-2014 ForgeRock AS. 4865N/A <
defaultcall function="fractional-replication_basic"/>
4865N/A <
function name="fractional-replication_basic">
4865N/A <!--- Test Suite information 4865N/A #@TestSuiteName fractional-replication basic 4865N/A #@TestSuitePurpose Verify the basic fractional replication setup 4865N/A #@TestMarker fractional-replication basic 4865N/A #@TestGroup fractional-replication 4865N/A CurrentTestPath['group']='fractional-replication'
7087N/A CurrentTestPath['suite']='basic'
4865N/A <
call function="'testSuite_Preamble'"/>
4865N/A <!-- fractional-replication setup --> 4865N/A <
import machine="STAF_LOCAL_HOSTNAME" 7087N/A <
call function="'fractional-replication_setup'">
4865N/A Pservers = _topologyServerList
4865N/A fractionalTypes = ['fractional-include','fractional-exclude']
4865N/A <!-- Retrieve replication-domain name --> 4865N/A <
paralleliterate var="s" in="Pservers">
4865N/A <
call function="'dsconfig'">
4865N/A 'subcommand' : 'list-replication-domains',
4865N/A 'objectType' : 'provider-name',
4865N/A 'objectName' : 'Multimaster Synchronization',
4865N/A replicationDomains = STAXResult[0][1]
4865N/A domain = colSplit[0].strip()
4865N/A serverId = colSplit[2].strip()
4865N/A domainMap[ls] = (domain,serverId)
5765N/A replDomainSuffix = 'cn=o_example,cn=replication,cn=monitor'
4865N/A <
message level="'debug'">'domainMap=%s' % domainMap</
message>
4865N/A <
iterate var="__test" in="testsList">
4865N/A <
call function="'%s' % (__test)" />
4865N/A <
message>'Test Cases Completed.'</
message>
4865N/A <!-- Test Suite Cleanup --> 5834N/A <
message>'Finally: Global Cleanup.'</
message>
4865N/A <!-- fractional-replication cleanup --> 4865N/A <
import machine="STAF_LOCAL_HOSTNAME" 7087N/A <
call function="'fractional-replication_cleanup'">
4865N/A <
catch exception="'STAFException'">
4865N/A <
message log="1" level="'fatal'">'Cleanup of test suite failed.'</
message>
4865N/A <
call function="'testSuite_Postamble'"/>
4865N/A <
function name="basic_exclude">
4865N/A <!--- Test Case information 4865N/A #@TestMarker fractional-replication basic 4865N/A #@TestName basic fractional-exclude 4865N/A #@TestID basic fractional-exclude 4865N/A #@TestPurpose basic fractional-exclude functionality 4865N/A #@TestResult Success if test replica contains filtered data 4865N/A <
testcase name="getTestCaseName('basic fractional-exclude')">
4865N/A <
call function="'testCase_Preamble'"/>
4865N/A <
call function="'replicationStatus'">
5765N/A "replicationDomainSuffix" : replDomainSuffix,
4865N/A <!-- set fractional-exclude on server 2 --> 4865N/A <
call function="'set-ops-fractional-replication-attributes'">
4865N/A "replicationDomain" : domainMap[ldapPservers[1]][0],
4865N/A "include" : [('reset','')],
4865N/A "exclude" : [('set','*:description,0.9.2342.19200300.100.1.60')],
4865N/A keptAttributes = [ 'cn', 'dn', 'employeeNumber', 'givenName',
4865N/A 'initials', 'l', 'mail', 'mobile', 'objectClass',
4865N/A 'o', 'ou', 'pager', 'postalAddress',
4865N/A 'sn', 'st', 'street', 'telephoneNumber',
4865N/A 'uid', 'userPassword', 'postalCode'
4865N/A <!-- verify we have Bad Generation ID --> 4865N/A <
call function="'replicationStatus'">
5765N/A "replicationDomainSuffix" : replDomainSuffix,
7055N/A <
if expr="STAXResult[1] != None">
7055N/A <
if expr="len(STAXResult) == 3 and STAXResult[1].find('Bad generation id') != -1">
7055N/A <
call function="'testPassed'"/>
7055N/A <
call function="'testFailed'"/>
4865N/A <
call function="'testFailed'"/>
4865N/A <
call function="'getNumberOfEntries'">
4865N/A <
call function="'basic_initialization'"/>
4865N/A <
call function="'basic_add'">
5540N/A % Pservers[0].getDataDir(),
4865N/A <
call function="'basic_modify'"/>
4865N/A <
call function="'basic_modifyDN'"/>
4865N/A <
call function="'basic_onlineImport'"/>
4865N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4865N/A <
message log="1" level="'fatal'">
4865N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4865N/A <
call function="'testCase_Postamble'"/>
4865N/A <
function name="basic_include">
4865N/A <!--- Test Case information 4865N/A #@TestMarker fractional-replication basic 4865N/A #@TestName basic fractional-include 4865N/A #@TestID basic fractional-include 4865N/A #@TestPurpose basic fractional-include functionality 4865N/A #@TestResult Success if test replica contains filtered data 4865N/A <
testcase name="getTestCaseName('basic fractional-include')">
4865N/A <
call function="'testCase_Preamble'"/>
4865N/A <
call function="'replicationStatus'">
5765N/A "replicationDomainSuffix" : replDomainSuffix,
4865N/A <!-- set fractional-include on server 2 --> 4865N/A <
call function="'set-ops-fractional-replication-attributes'">
4865N/A "replicationDomain" : domainMap[ldapPservers[1]][0],
4865N/A "include" : [('set','*:description')],
4865N/A "exclude" : [('reset','')],
4865N/A keptAttributes = ['dn','sn','objectClass','description',
4865N/A 'ds-sync-generation-id', 'entryUUID'
4865N/A <!-- verify we have Bad Generation ID --> 4865N/A <
call function="'replicationStatus'">
5765N/A "replicationDomainSuffix" : replDomainSuffix,
7055N/A <
if expr="STAXResult[1] != None">
7055N/A <
if expr="len(STAXResult) == 3 and STAXResult[1].find('Bad generation id') != -1">
7055N/A <
call function="'testPassed'"/>
7055N/A <
call function="'testFailed'"/>
4865N/A <
call function="'testFailed'"/>
4865N/A <
call function="'getNumberOfEntries'">
4865N/A <
call function="'basic_initialization'"/>
4865N/A <
call function="'basic_add'">
5540N/A % Pservers[0].getDataDir(),
4865N/A <
call function="'basic_modify'"/>
4865N/A <
call function="'basic_modifyDN'"/>
4865N/A <
call function="'basic_onlineImport'"/>
4865N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4865N/A <
message log="1" level="'fatal'">
4865N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4865N/A <
call function="'testCase_Postamble'"/>
4865N/A <
function name="basic_initialization">
4865N/A <!--- Test Case information 4865N/A #@TestMarker fractional-replication basic 4865N/A #@TestName basic initialization 4865N/A #@TestID basic initialization 4865N/A #@TestPurpose check fractional-include Bad Generation ID -> Normal status 4865N/A #@TestResult Success if test replica contains filtered data 4865N/A <
testcase name="getTestCaseName('basic initialization')">
4865N/A <
call function="'testCase_Preamble'"/>
4865N/A <
call function="'stopServers'">
4865N/A <
call function="'ImportLdifWithScript'">
4865N/A { "location" : Pservers[0].getHostname(),
4865N/A "dsPath" : '%s/%s' % (Pservers[0].getDir(),OPENDSNAME),
5540N/A % Pservers[0].getDataDir(),
4865N/A <!-- all Pservers : start --> 4865N/A <
call function="'startServers'">
4865N/A <!-- Check some data was imported into Directory Server --> 5540N/A 'Checking import on %s folder %s.' % (Pservers[0].getHostname(),Pservers[0].getDir())
4865N/A <
call function="'checkImport'">
4865N/A { 'location' : Pservers[0].getHostname(),
4865N/A % (Pservers[0].getDir(),OPENDSNAME),
4865N/A 'dsHost' : Pservers[0].getHostname(),
4865N/A 'dsAdminPort' : Pservers[0].getAdminPort(),
4865N/A 'dsPort' : Pservers[0].getPort(),
4865N/A 'dsDn' : Pservers[0].getRootDn(),
4865N/A 'dsPswd' : Pservers[0].getRootPwd(),
4865N/A 'expectedEntries' : ['uid=user.0,ou=People,o=example',
4865N/A 'uid=user.49,ou=People,o=example',
4865N/A 'uid=user.35,ou=People,o=example'
4865N/A <
call function="'getNumberOfEntries'">
4865N/A <
call function="'getNumberOfEntries'">
4865N/A <!-- server 1 : initialize server 1 from server 2 --> 4865N/A <
call function="'initializeReplication'">
4865N/A { 'location' : Pservers[0].getHostname(),
4865N/A 'dsPath' : '%s/%s' % (Pservers[0].getDir(),OPENDSNAME),
4865N/A 'sourceInstanceHost' : Pservers[0].getHostname(),
4865N/A 'sourceInstanceAdminPort' : Pservers[0].getAdminPort(),
4865N/A 'replicationDnList' : ['o=example']
4865N/A <
call function="'ldapsearchVerifyFrac'">
4865N/A 'keptAttributes' : keptAttributes
4865N/A <
call function="'testPassed'"/>
4865N/A <
call function="'testFailed'"/>
4865N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4865N/A <
message log="1" level="'fatal'">
4865N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4865N/A <
call function="'testCase_Postamble'"/>
4865N/A <
function name="basic_onlineImport">
4865N/A <!--- Test Case information 4865N/A #@TestMarker fractional-replication basic 4865N/A #@TestName basic online import 4865N/A #@TestID basic online import 4865N/A #@TestPurpose add entries with a online import 4865N/A #@TestSteps online import data on Master 4865N/A #@TestSteps online import data on Replica 4865N/A #@TestResult Success add on both master and replica is 4865N/A <
testcase name="getTestCaseName('basic online import')">
4865N/A <
call function="'testCase_Preamble'"/>
4865N/A <
call function="'replicationStatus'">
5765N/A "replicationDomainSuffix" : replDomainSuffix,
5540N/A thisTempdir1=Pservers[0].getTmpDir()
5540N/A thisTempdir2=Pservers[1].getTmpDir()
4974N/A <
call function="'ImportLdifWithScript'">
4865N/A { 'location' : Pservers[0].getHostname(),
4865N/A 'dsPath' : '%s/%s' % (Pservers[0].getDir(),OPENDSNAME),
4865N/A 'dsInstanceHost' : Pservers[0].getHostname(),
4865N/A 'dsInstanceAdminPort' : Pservers[0].getAdminPort(),
4865N/A 'dsInstanceDn' : Pservers[0].getRootDn(),
4865N/A 'dsInstancePswd' : Pservers[0].getRootPwd(),
4974N/A <
call function="'ImportLdifWithScript'">
4865N/A { 'location' : Pservers[1].getHostname(),
4865N/A 'dsPath' : '%s/%s' % (Pservers[1].getDir(),OPENDSNAME),
4865N/A 'dsInstanceHost' : Pservers[1].getHostname(),
4865N/A 'dsInstanceAdminPort' : Pservers[1].getAdminPort(),
4865N/A 'dsInstanceDn' : Pservers[1].getRootDn(),
4865N/A 'dsInstancePswd' : Pservers[1].getRootPwd(),
4865N/A <
call function="'replicationStatus'">
5765N/A "replicationDomainSuffix" : replDomainSuffix,
7055N/A <
if expr="STAXResult[1] != None">
7055N/A <
if expr="len(STAXResult) == 3 and STAXResult[1].find('Bad generation id') != -1">
7055N/A <
call function="'testFailed'"/>
7055N/A <!-- Check some data was imported into Directory Server --> 7055N/A <
call function="'checkImport'">
7055N/A { 'location' : Pservers[0].getHostname(),
7055N/A 'dsPath' : '%s/%s' % (Pservers[0].getDir(),OPENDSNAME),
7055N/A 'dsHost' : Pservers[0].getHostname(),
7055N/A 'dsAdminPort' : Pservers[0].getAdminPort(),
7055N/A 'dsPort' : Pservers[0].getPort(),
7055N/A 'dsDn' : Pservers[0].getRootDn(),
7055N/A 'dsPswd' : Pservers[0].getRootPwd(),
7055N/A 'expectedEntries' : ['uid=user.0,ou=masterOnlineImport,o=example',
7055N/A 'uid=user.2,ou=masterOnlineImport,o=example',
7055N/A 'uid=user.4,ou=masterOnlineImport,o=example'
7055N/A <
call function="'checkImport'">
7055N/A { 'location' : Pservers[1].getHostname(),
7055N/A 'dsPath' : '%s/%s' % (Pservers[1].getDir(),OPENDSNAME),
7055N/A 'dsHost' : Pservers[1].getHostname(),
7055N/A 'dsAdminPort' : Pservers[1].getAdminPort(),
7055N/A 'dsPort' : Pservers[1].getPort(),
7055N/A 'dsDn' : Pservers[1].getRootDn(),
7055N/A 'dsPswd' : Pservers[1].getRootPwd(),
7055N/A 'expectedEntries' : ['uid=user.0,ou=masterOnlineImport,o=example',
7055N/A 'uid=user.2,ou=masterOnlineImport,o=example',
7055N/A 'uid=user.4,ou=masterOnlineImport,o=example'
7055N/A <
call function="'testFailed'"/>
4865N/A <
call function="'ldapsearchVerifyFrac'">
4865N/A 'keptAttributes' : keptAttributes
4865N/A <
call function="'testPassed'"/>
4865N/A <
call function="'testFailed'"/>
4865N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4865N/A <
message log="1" level="'fatal'">
4865N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4865N/A <
call function="'testCase_Postamble'"/>
4865N/A <
function name="basic_add">
4865N/A <
function-
required-
arg name="masterEntry"/>
4865N/A <
function-
required-
arg name="replicaEntry"/>
4865N/A <!--- Test Case information 4865N/A #@TestMarker fractional-replication basic 4865N/A #@TestName basic add operation 4865N/A #@TestID basic add operation 4865N/A #@TestPurpose check add operation 4865N/A #@TestResult Success add on both master and replica is 4865N/A <
testcase name="getTestCaseName('basic add operation')">
4865N/A <
call function="'testCase_Preamble'"/>
4865N/A <!-- adding entry with filterable attributes in master --> 4865N/A <
call function="'addEntry'">
4865N/A { 'location' : Pservers[0].getHostname(),
4865N/A 'dsPath' : '%s/%s' % (Pservers[0].getDir(),OPENDSNAME),
4865N/A 'dsInstanceHost' : Pservers[0].getHostname(),
4865N/A 'dsInstancePort' : Pservers[0].getPort(),
4865N/A 'dsInstanceDn' : Pservers[0].getRootDn(),
4865N/A 'dsInstancePswd' : Pservers[0].getRootPwd(),
4865N/A 'entryToBeAdded' : masterEntry,
4865N/A <
call function="'SearchObject'">
4865N/A { 'location' : Pservers[0].getHostname(),
4865N/A 'dsPath' : '%s/%s' % (Pservers[0].getDir(),OPENDSNAME),
4865N/A 'dsInstanceHost' : Pservers[0].getHostname(),
4865N/A 'dsInstancePort' : Pservers[0].getPort(),
4865N/A 'dsInstanceDn' : Pservers[0].getRootDn(),
4865N/A 'dsInstancePswd' : Pservers[0].getRootPwd(),
4865N/A 'dsBaseDN' : 'uid=added-user.0,ou=People,o=example',
4865N/A 'dsFilter' : 'objectclass=*',
4865N/A 'extraParams' : '-s base' }
4865N/A <
call function="'ldapsearchVerifyFrac'">
4865N/A 'keptAttributes' : keptAttributes
4865N/A <
call function="'testPassed'"/>
4865N/A <!-- Delete previously added entry --> 4865N/A <
call function="'ldapDeleteWithScript'">
4865N/A { 'location' : Pservers[0].getHostname(),
4865N/A 'dsPath' : '%s/%s' % (Pservers[0].getDir(),OPENDSNAME),
4865N/A 'dsInstanceHost' : Pservers[0].getHostname(),
4865N/A 'dsInstancePort' : Pservers[0].getPort(),
4865N/A 'dsInstanceDn' : Pservers[0].getRootDn(),
4865N/A 'dsInstancePswd' : Pservers[0].getRootPwd(),
4865N/A 'dsDn' : ['uid=added-user.0,ou=People,o=example'],
4865N/A <
call function="'testFailed'"/>
4865N/A <!-- adding entry with filterable attributes in replica --> 4865N/A <
call function="'addEntry'">
4865N/A { 'location' : Pservers[1].getHostname(),
4865N/A 'dsPath' : '%s/%s' % (Pservers[1].getDir(),OPENDSNAME),
4865N/A 'dsInstanceHost' : Pservers[1].getHostname(),
4865N/A 'dsInstancePort' : Pservers[1].getPort(),
4865N/A 'dsInstanceDn' : Pservers[1].getRootDn(),
4865N/A 'dsInstancePswd' : Pservers[1].getRootPwd(),
4865N/A 'entryToBeAdded' : masterEntry,
6551N/A 'knownIssue' : 'OPENDJ-1106'
4865N/A <!-- adding entry without filterable attributes in replica --> 4865N/A <
call function="'addEntry'">
4865N/A { 'location' : Pservers[1].getHostname(),
4865N/A 'dsPath' : '%s/%s' % (Pservers[1].getDir(),OPENDSNAME),
4865N/A 'dsInstanceHost' : Pservers[1].getHostname(),
4865N/A 'dsInstancePort' : Pservers[1].getPort(),
4865N/A 'dsInstanceDn' : Pservers[1].getRootDn(),
4865N/A 'dsInstancePswd' : Pservers[1].getRootPwd(),
4865N/A 'entryToBeAdded' : replicaEntry
4865N/A <
call function="'SearchObject'">
4865N/A { 'location' : Pservers[1].getHostname(),
4865N/A 'dsPath' : '%s/%s' % (Pservers[1].getDir(),OPENDSNAME),
4865N/A 'dsInstanceHost' : Pservers[1].getHostname(),
4865N/A 'dsInstancePort' : Pservers[1].getPort(),
4865N/A 'dsInstanceDn' : Pservers[1].getRootDn(),
4865N/A 'dsInstancePswd' : Pservers[1].getRootPwd(),
4865N/A 'dsBaseDN' : 'cn=added-user.1,ou=People,o=example',
4865N/A 'dsFilter' : 'objectclass=*',
4865N/A 'extraParams' : '-s base' }
4865N/A <
call function="'ldapsearchVerifyFrac'">
4865N/A 'keptAttributes' : keptAttributes
4865N/A <
call function="'testPassed'"/>
4865N/A <!-- Delete previously added entry --> 4865N/A <
call function="'ldapDeleteWithScript'">
4865N/A { 'location' : Pservers[1].getHostname(),
4865N/A 'dsPath' : '%s/%s' % (Pservers[1].getDir(),OPENDSNAME),
4865N/A 'dsInstanceHost' : Pservers[1].getHostname(),
4865N/A 'dsInstancePort' : Pservers[1].getPort(),
4865N/A 'dsInstanceDn' : Pservers[1].getRootDn(),
4865N/A 'dsInstancePswd' : Pservers[1].getRootPwd(),
4865N/A 'dsDn' : ['cn=added-user.1,ou=People,o=example'],
4865N/A <
call function="'testFailed'"/>
4865N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4865N/A <
message log="1" level="'fatal'">
4865N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4865N/A <
call function="'testCase_Postamble'"/>
4865N/A <
function name="basic_modify">
4865N/A <!--- Test Case information 4865N/A #@TestMarker fractional-replication basic 4865N/A #@TestName basic modify operation 4865N/A #@TestID basic modify operation 4865N/A #@TestPurpose check modify operation 4865N/A #@TestResult Success modify on both master and replica is 4865N/A <
testcase name="getTestCaseName('basic modify operation')">
4865N/A <
call function="'testCase_Preamble'"/>
4865N/A <
call function="'ldapModifyWithScript'">
4865N/A { 'location' : Pservers[0].getHostname(),
4865N/A 'dsPath' : '%s/%s' % (Pservers[0].getDir(),OPENDSNAME),
4865N/A 'dsInstanceHost' : Pservers[0].getHostname(),
4865N/A 'dsInstancePort' : Pservers[0].getPort(),
4865N/A 'dsInstanceDn' : Pservers[0].getRootDn(),
4865N/A 'dsInstancePswd' : Pservers[0].getRootPwd(),
4865N/A <
call function="'SearchObject'">
4865N/A { 'location' : Pservers[0].getHostname(),
4865N/A 'dsPath' : '%s/%s' % (Pservers[0].getDir(),OPENDSNAME),
4865N/A 'dsInstanceHost' : Pservers[0].getHostname(),
4865N/A 'dsInstancePort' : Pservers[0].getPort(),
4865N/A 'dsInstanceDn' : Pservers[0].getRootDn(),
4865N/A 'dsInstancePswd' : Pservers[0].getRootPwd(),
4865N/A 'dsBaseDN' : 'uid=user.0,ou=People,o=example',
4865N/A 'dsFilter' : 'objectclass=*',
4865N/A 'attributes' : 'postalCode',
4865N/A 'extraParams' : '-s base' }
4865N/A <
call function="'ldapsearchVerifyFrac'">
4865N/A 'keptAttributes' : keptAttributes
4865N/A <
call function="'testPassed'"/>
4865N/A <
call function="'testFailed'"/>
4865N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4865N/A <
message log="1" level="'fatal'">
4865N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4865N/A <
call function="'testCase_Postamble'"/>
4865N/A <
function name="basic_modifyDN">
4865N/A <!--- Test Case information 4865N/A #@TestMarker fractional-replication basic 4865N/A #@TestName basic modifyDN operation 4865N/A #@TestID basic modifyDN operation 4865N/A #@TestPurpose check modifyDN operation 4865N/A #@TestResult Success modifyDN on both master and replica is 4865N/A <
testcase name="getTestCaseName('basic modifyDN operation')">
4865N/A <
call function="'testCase_Preamble'"/>
4865N/A <
call function="'addEntry'">
4865N/A { 'location' : Pservers[0].getHostname(),
4865N/A 'dsPath' : '%s/%s' % (Pservers[0].getDir(),OPENDSNAME),
4865N/A 'dsInstanceHost' : Pservers[0].getHostname(),
4865N/A 'dsInstancePort' : Pservers[0].getPort(),
4865N/A 'dsInstanceDn' : Pservers[0].getRootDn(),
4865N/A 'dsInstancePswd' : Pservers[0].getRootPwd(),
4865N/A <
call function="'SearchObject'">
4865N/A { 'location' : Pservers[0].getHostname(),
4865N/A 'dsPath' : '%s/%s' % (Pservers[0].getDir(),OPENDSNAME),
4865N/A 'dsInstanceHost' : Pservers[0].getHostname(),
4865N/A 'dsInstancePort' : Pservers[0].getPort(),
4865N/A 'dsInstanceDn' : Pservers[0].getRootDn(),
4865N/A 'dsInstancePswd' : Pservers[0].getRootPwd(),
4865N/A 'dsBaseDN' : 'uid=user.0,ou=A,ou=masterModifyDN,o=example',
4865N/A 'dsFilter' : 'objectclass=*',
4865N/A 'extraParams' : '-s base' }
4865N/A <
call function="'ldapsearchVerifyFrac'">
4865N/A 'keptAttributes' : keptAttributes
4865N/A <!-- modify the RDN and delete old one --> 4865N/A <
call function="'modifyDn'">
4865N/A { 'location' : Pservers[0].getHostname(),
4865N/A 'dsPath' : '%s/%s' % (Pservers[0].getDir(),OPENDSNAME),
4865N/A 'dsInstanceHost' : Pservers[0].getHostname(),
4865N/A 'dsInstancePort' : Pservers[0].getPort(),
4865N/A 'dsInstanceDn' : Pservers[0].getRootDn(),
4865N/A 'dsInstancePswd' : Pservers[0].getRootPwd(),
4865N/A 'DNToModify' : 'uid=user.0,ou=A,ou=masterModifyDN,o=example',
4865N/A 'newRDN' : 'uid=newUser.0',
4865N/A <
call function="'ldapsearchVerifyFrac'">
4865N/A 'keptAttributes' : keptAttributes
4865N/A <!-- modify the RDN and keep old one --> 4865N/A <
call function="'modifyDn'">
4865N/A { 'location' : Pservers[0].getHostname(),
4865N/A 'dsPath' : '%s/%s' % (Pservers[0].getDir(),OPENDSNAME),
4865N/A 'dsInstanceHost' : Pservers[0].getHostname(),
4865N/A 'dsInstancePort' : Pservers[0].getPort(),
4865N/A 'dsInstanceDn' : Pservers[0].getRootDn(),
4865N/A 'dsInstancePswd' : Pservers[0].getRootPwd(),
4865N/A 'DNToModify' : 'uid=user.1,ou=A,ou=masterModifyDN,o=example',
4865N/A 'newRDN' : 'uid=newUser.1',
4865N/A <
call function="'ldapsearchVerifyFrac'">
4865N/A 'keptAttributes' : keptAttributes
4865N/A <
call function="'modifyDn'">
4865N/A { 'location' : Pservers[0].getHostname(),
4865N/A 'dsPath' : '%s/%s' % (Pservers[0].getDir(),OPENDSNAME),
4865N/A 'dsInstanceHost' : Pservers[0].getHostname(),
4865N/A 'dsInstancePort' : Pservers[0].getPort(),
4865N/A 'dsInstanceDn' : Pservers[0].getRootDn(),
4865N/A 'dsInstancePswd' : Pservers[0].getRootPwd(),
4865N/A 'DNToModify' : 'uid=user.2,ou=A,ou=masterModifyDN,o=example',
4865N/A 'newRDN' : 'uid=newUser.2',
4865N/A 'newSuperior' : 'ou=B,ou=masterModifyDN,o=example',
4865N/A <
call function="'ldapsearchVerifyFrac'">
4865N/A 'keptAttributes' : keptAttributes
4865N/A <
call function="'SearchObject'">
4865N/A { 'location' : Pservers[0].getHostname(),
4865N/A 'dsPath' : '%s/%s' % (Pservers[0].getDir(),OPENDSNAME),
4865N/A 'dsInstanceHost' : Pservers[0].getHostname(),
4865N/A 'dsInstancePort' : Pservers[0].getPort(),
4865N/A 'dsInstanceDn' : Pservers[0].getRootDn(),
4865N/A 'dsInstancePswd' : Pservers[0].getRootPwd(),
4865N/A 'dsBaseDN' : 'ou=masterModifyDN,o=example',
4865N/A 'dsFilter' : 'objectclass=*',
4865N/A <
call function="'testPassed'"/>
4865N/A <
call function="'testFailed'"/>
4865N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4865N/A <
message log="1" level="'fatal'">
4865N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4865N/A <
call function="'DeleteEntry'">
4865N/A { 'location' : Pservers[1].getHostname(),
4865N/A 'dsPath' : '%s/%s' % (Pservers[1].getDir(),OPENDSNAME),
4865N/A 'dsInstanceHost' : Pservers[1].getHostname(),
4865N/A 'dsInstancePort' : Pservers[1].getPort(),
4865N/A 'dsInstanceDn' : Pservers[1].getRootDn(),
4865N/A 'dsInstancePswd' : Pservers[1].getRootPwd(),
4865N/A 'dsBaseDN' : 'ou=masterModifyDN,o=example',
4865N/A <
call function="'testCase_Postamble'"/>