mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

ugaston
13.24.2008 d30a17a9758c606dc79750d1880424f5c22d2998
New userpassword replace testcase + basic testsuite style pass
3 files modified
1058 ■■■■■ changed files
opends/tests/functional-tests/testcases/replication/basic/basic.xml 982 ●●●● patch | view | raw | blame | history
opends/tests/functional-tests/testcases/replication/basic/replication_basic_setup.xml 12 ●●●●● patch | view | raw | blame | history
opends/tests/functional-tests/testcases/replication/totalupdate/totalupdate.xml 64 ●●●● patch | view | raw | blame | history
opends/tests/functional-tests/testcases/replication/basic/basic.xml
@@ -47,7 +47,8 @@
          <!--- Test Suite information
          #@TestSuiteName       Replication Basic Tests
          #@TestSuitePurpose    Verify that the basic operations are replicated correctly between two serrvers.
          #@TestSuitePurpose    Verify that the basic operations are replicated
                                correctly between two serrvers.
          #@TestSuiteID         Basic Tests
          #@TestSuiteGroup      Basic
          #@TestGroup           Replication
@@ -57,28 +58,33 @@
            
                                                                        
          <import machine="STAF_LOCAL_HOSTNAME"
            file="'%s/testcases/replication/replication_setup.xml' % (TESTS_DIR)"/>
            file="'%s/testcases/replication/replication_setup.xml'
              % (TESTS_DIR)"/>
          <call function="'replication_setup'" />
    
          <import machine="STAF_LOCAL_HOSTNAME"
            file="'%s/testcases/replication/basic/replication_basic_setup.xml' % (TESTS_DIR)"/>
            file="'%s/testcases/replication/basic/replication_basic_setup.xml'
              % (TESTS_DIR)"/>
          <call function="'replication_basic_setup'" />
                              
          <!--- Test Case information
          #@TestMarker          Replication Basic Tests
          #@TestName            Replication: Basic: Add Entry
          #@TestID                  Add Entry
          #@TestPurpose         Check that an entry add is well propagated by replication.
          #@TestPurpose         Check that an entry add is well propagated by
                                replication.
          #@TestPreamble
          #@TestSteps
          #@TestSteps           Add root suffix entry
          #@TestPostamble
          #@TestResult
          #@TestResult          Success if trees synchronised over the topology
          -->                  
          <testcase name="getTestCaseName('Add Entry')">
            <sequence>
              <call function="'testCase_Preamble'"/>
              <message>
                 'Replication: Basic: Add Entry. Check that an added entry is well propagated by replication.'
                'Replication: Basic: Add Entry. Check that an added entry is \
                well propagated by replication.'
              </message>
 
              <!-- Modify "master" server -->   
@@ -89,23 +95,14 @@
                  'dsInstancePort' : master.getPort(), 
                  'dsInstanceDn'   : master.getRootDn(),
                  'dsInstancePswd' : master.getRootPwd(),
                  'entryToBeAdded' : '%s/replication_add_root_suffix.ldif' % clientDataDir }
              </call>
              <!-- Check modify worked on "master" server -->
              <call function="'ldapSearchWithScript'">
                { 'location'         : clientHost,
                  'dsPath'           : clientPath,
                  'dsInstanceHost'   : masterHost ,
                  'dsInstancePort'   : master.getPort() ,
                  'dsInstanceDn'     : master.getRootDn() ,
                  'dsInstancePswd'   : master.getRootPwd() ,
                  'dsBaseDN'         : synchroSuffix ,
                  'dsFilter'         : 'objectclass=*' }
                  'entryToBeAdded' : '%s/replication_add_root_suffix.ldif' \
                                     % clientDataDir
                }
              </call>
                
              <!-- Verify the synchronization of the trees among the servers in the topology -->
              <!-- Verify the synchronization of the trees among the servers in
                the topology -->
              <call function="'verifyTrees'">
                [ clientHost, clientPath, master, consumerList, synchroSuffix ]
              </call>              
@@ -120,17 +117,22 @@
          #@TestMarker          Replication Basic Tests
          #@TestName            Replication: Basic: Modify Entry
          #@TestID                  Modify Entry
          #@TestPurpose         Check that an entry modify is well propagated by replication.
          #@TestPurpose         Check that an entry modify is well propagated by
                                replication.
          #@TestPreamble
          #@TestSteps
          #@TestSteps           Add entry on server
          #@TestSteps           Modify entry
          #@TestSteps           Check modify worked on server
          #@TestPostamble
          #@TestResult
          #@TestResult          Success if modify worked and trees synchronised
                                over the topology
          -->                      
          <testcase name="getTestCaseName('Modify Entry')">
            <sequence>
              <call function="'testCase_Preamble'"/>
              <message>
                 'Replication: Basic: Modify Entry. Check that an entry modify is well propagated by replication.'
                'Replication: Basic: Modify Entry. Check that an entry modify \
                is well propagated by replication.'
              </message>
 
@@ -142,7 +144,9 @@
                  'dsInstancePort'  : master.getPort() ,
                  'dsInstanceDn'    : master.getRootDn() ,
                  'dsInstancePswd'  : master.getRootPwd() ,
                  'entryToBeAdded'  : '%s/replication_add_single.ldif' % clientDataDir }
                  'entryToBeAdded' : '%s/replication_add_single.ldif' \
                                     % clientDataDir
                }
              </call>
              <call function="'ldapModifyWithScript'">
                { 'location'          : clientHost,
@@ -151,7 +155,9 @@
                  'dsInstancePort'    : master.getPort() ,
                  'dsInstanceDn'      : master.getRootDn() ,
                  'dsInstancePswd'    : master.getRootPwd() ,
                  'dsFilename' : '%s/replication_mod.ldif' % clientDataDir }
                  'dsFilename'     : '%s/replication_mod.ldif' \
                                     % clientDataDir
                }
              </call>
              <!-- Check modify worked on "master" server -->                              
@@ -163,7 +169,8 @@
                  'dsInstanceDn'     : master.getRootDn() ,
                  'dsInstancePswd'   : master.getRootPwd() ,
                  'dsBaseDN'         : entryDn,
                  'dsFilter'         :  '%s=%s' % (attr_type,attr_value) }
                  'dsFilter'       : '%s=%s' % (attr_type,attr_value)
                }
              </call>
              <script>
                searchRC = STAXResult[0][0]
@@ -173,11 +180,13 @@
              <call function="'checktestRC'">
                  { 'returncode' : resultLength ,
                    'result'     : searchResult ,
                    'expected'   : 1 }
                  'expected'   : 1
                }
              </call>                       
                
              <!-- Verify the synchronization of the trees among the servers in the topology -->
              <!-- Verify the synchronization of the trees among the servers in
                the topology -->
              <call function="'verifyTrees'">
                [ clientHost, clientPath, master, consumerList, synchroSuffix ]
              </call>                                                 
@@ -191,17 +200,21 @@
          #@TestMarker          Replication Basic Tests
          #@TestName            Replication: Basic: Delete Entry
          #@TestID                  Delete Entry
          #@TestPurpose         Check that an entry delete is well propagated by replication.
          #@TestPurpose         Check that an entry delete is well propagated by
                                replication.
          #@TestPreamble
          #@TestSteps
          #@TestSteps           Delete entry
          #@TestSteps           Check delete worked on server
          #@TestPostamble
          #@TestResult
          #@TestResult          Success if delete worked and trees synchronised
                                over the topology
          -->                      
          <testcase name="getTestCaseName('Delete Entry')">
            <sequence>
              <call function="'testCase_Preamble'"/>
              <message>
                 'Replication: Basic: Delete Entry. Check that an entry delete is well propagated by replication.'
                'Replication: Basic: Delete Entry. Check that an entry delete \
                is well propagated by replication.'
              </message>
@@ -213,7 +226,8 @@
                  'dsInstancePort'   : master.getPort() ,
                  'dsInstanceDn'     : master.getRootDn() ,
                  'dsInstancePswd'   : master.getRootPwd() ,
                  'dsBaseDN'         : entryDn }
                  'dsBaseDN'       : entryDn
                }
              </call>
              <!-- Check modify worked on "master" server -->                              
@@ -226,11 +240,13 @@
                  'dsInstancePswd'   : master.getRootPwd() ,
                  'dsBaseDN'         : entryDn,
                  'dsFilter'         : 'objectclass=*' ,
                  'expectedRC'  : 32 }
                  'expectedRC'       : 32
                }
              </call>                      
                
              <!-- Verify the synchronization of the trees among the servers in the topology -->
              <!-- Verify the synchronization of the trees among the servers in
                the topology -->
              <call function="'verifyTrees'">
                [ clientHost, clientPath, master, consumerList, synchroSuffix ]
              </call>                                 
@@ -244,20 +260,23 @@
          #@TestMarker          Replication Basic Tests
          #@TestName            Replication: Basic: Add Multiple Entries
          #@TestID                  Add Multiple Entries
          #@TestPurpose         Check that a multiple-entry add is well propagated by replication.
          #@TestPreamble
          #@TestSteps
          #@TestPurpose         Check that a multiple-entry add is well
                                propagated by replication.
          #@TestPreamble        Delete root suffix entry
          #@TestSteps           Add multiple entries
          #@TestPostamble
          #@TestResult
          #@TestResult          Success if trees synchronised over the topology
          -->                  
          <testcase name="getTestCaseName('Add Multiple Entries')">
            <sequence>
              <call function="'testCase_Preamble'"/>
              <message>
                 'Replication: Basic: Add Multiple Entries. Check that a multiple-entry add is well propagated by replication.'
                'Replication: Basic: Add Multiple Entries. Check that a \
                multiple-entry add is well propagated by replication.'
              </message>
              <!-- Delete the root entry, as it is already present in Example.ldif file -->
              <!-- Delete the root entry, as it is already present in
                Example.ldif file -->
              <call function="'DeleteEntry'">
                { 'location'         : clientHost,
                  'dsPath'           : clientPath,
@@ -265,7 +284,8 @@
                  'dsInstancePort'   : master.getPort() ,
                  'dsInstanceDn'     : master.getRootDn() ,
                  'dsInstancePswd'   : master.getRootPwd() ,
                  'dsBaseDN'         : synchroSuffix }
                  'dsBaseDN'       : synchroSuffix
                }
              </call>
              <!-- Modify "master" server -->                                
@@ -276,23 +296,14 @@
                  'dsInstancePort' : master.getPort(), 
                  'dsInstanceDn'   : master.getRootDn(),
                  'dsInstancePswd' : master.getRootPwd(),
                  'entryToBeAdded' : '%s/replication/Example.ldif' % clientDataDir }
              </call>
              <!-- Check modify worked on "master" server -->
              <call function="'ldapSearchWithScript'">
                { 'location'         : clientHost,
                  'dsPath'           : clientPath,
                  'dsInstanceHost'   : masterHost ,
                  'dsInstancePort'   : master.getPort() ,
                  'dsInstanceDn'     : master.getRootDn() ,
                  'dsInstancePswd'   : master.getRootPwd() ,
                  'dsBaseDN'         : 'uid=scarter,ou=People,%s' % synchroSuffix,
                  'dsFilter'         : 'objectclass=*' }
                  'entryToBeAdded' : '%s/replication/Example.ldif' \
                                     % clientDataDir
                }
              </call>
                
              <!-- Verify the synchronization of the trees among the servers in the topology -->
              <!-- Verify the synchronization of the trees among the servers in
                the topology -->
              <call function="'verifyTrees'">
                [ clientHost, clientPath, master, consumerList, synchroSuffix ]
              </call>
@@ -307,19 +318,25 @@
          <!--- Test Case information
          #@TestMarker          Replication Basic Tests
          #@TestName            Replication: Basic: Modify Entry - add single attribute
          #@TestName            Replication: Basic: Modify Entry - add single
                                attribute
          #@TestID                  Modify Entry - add single attribute
          #@TestPurpose         Check that an entry modify is well propagated by replication.
          #@TestPurpose         Check that an entry modify is well propagated by
                                replication.
          #@TestPreamble
          #@TestSteps
          #@TestSteps           Add description attribute to entry
          #@TestSteps           Check modify worked
          #@TestPostamble
          #@TestResult
          #@TestResult          Success if modify worked and trees synchronised
                                over the topology
          -->                      
          <testcase name="getTestCaseName('Modify Entry - add single attribute')">
          <testcase name="getTestCaseName
                          ('Modify Entry - add single attribute')">
            <sequence>
              <call function="'testCase_Preamble'"/>
              <message>
                 'Replication: Basic: Modify Entry - add single attribute. Check that an entry modify is well propagated by replication.'
                'Replication: Basic: Modify Entry - add single attribute. \
                Check that an entry modify is well propagated by replication.'
              </message>
               <!-- Modify "master" server -->
@@ -329,10 +346,12 @@
                  'dsInstancePort'    : master.getPort(),
                  'dsInstanceDn'  : master.getRootDn(),
                  'dsInstancePswd'    : master.getRootPwd(),
                  'DNToModify'    : 'uid=tmorris, ou=People,%s' % synchroSuffix,
                  'DNToModify'        : 'uid=tmorris, ou=People,%s' \
                                        % synchroSuffix,
                  'attributeName' : 'description',
                  'newAttributeValue' : ' ',
                  'changetype' : 'add' }
                  'changetype'        : 'add'
                }
              </call>       
              <!-- Check modify worked on "master" server -->                              
@@ -343,8 +362,10 @@
                  'dsInstancePort'   : master.getPort() ,
                  'dsInstanceDn'     : master.getRootDn() ,
                  'dsInstancePswd'   : master.getRootPwd() ,
                  'dsBaseDN'         : 'uid=tmorris, ou=People,%s' % synchroSuffix,
                  'dsFilter'         : 'description=*' }
                  'dsBaseDN'       : 'uid=tmorris, ou=People,%s' \
                                     % synchroSuffix,
                  'dsFilter'       : 'description=*'
                }
              </call>
              <script>
                searchRC = STAXResult[0][0]
@@ -354,11 +375,13 @@
              <call function="'checktestRC'">
                  { 'returncode' : resultLength ,
                    'result'     : searchResult ,
                    'expected'   : 1 }
                  'expected'   : 1
                }
              </call>                       
                
              <!-- Verify the synchronization of the trees among the servers in the topology -->
              <!-- Verify the synchronization of the trees among the servers in
                the topology -->
              <call function="'verifyTrees'">
                [ clientHost, clientPath, master, consumerList, synchroSuffix ]
              </call> 
@@ -373,19 +396,24 @@
          <!--- Test Case information
          #@TestMarker          Replication Basic Tests
          #@TestName            Replication: Basic: Modify Entry - add single value
          #@TestName            Replication: Basic: Modify Entry - add single
                                value
          #@TestID                  Modify Entry - add single value
          #@TestPurpose         Check that an entry modify is well propagated by replication.
          #@TestPurpose         Check that an entry modify is well propagated by
                                replication.
          #@TestPreamble
          #@TestSteps
          #@TestSteps           Add single-valued attribute to entry
          #@TestSteps           Check modify worked
          #@TestPostamble
          #@TestResult
          #@TestResult          Success if modify worked and trees synchronised
                                over the topology
          -->                      
          <testcase name="getTestCaseName('Modify Entry - add single value')">
            <sequence>
              <call function="'testCase_Preamble'"/>
              <message>
                 'Replication: Basic: Modify Entry - add single value. Check that an entry modify is well propagated by replication.'
                'Replication: Basic: Modify Entry - add single value. Check \
                that an entry modify is well propagated by replication.'
              </message>
              <!-- Modify "master" server -->
@@ -395,10 +423,12 @@
                  'dsInstancePort'    : master.getPort(),
                  'dsInstanceDn'  : master.getRootDn(),
                  'dsInstancePswd'    : master.getRootPwd(),
                  'DNToModify'    : 'uid=tmorris, ou=People,%s' % synchroSuffix,
                  'DNToModify'        : 'uid=tmorris, ou=People,%s' \
                                        % synchroSuffix,
                  'attributeName' : 'departmentnumber',
                  'newAttributeValue' : '5203214400',
                  'changetype' : 'add' }
                  'changetype'        : 'add'
                }
              </call>
              <!-- Check modify worked on "master" server -->
@@ -409,8 +439,10 @@
                  'dsInstancePort'   : master.getPort() ,
                  'dsInstanceDn'     : master.getRootDn() ,
                  'dsInstancePswd'   : master.getRootPwd() ,
                  'dsBaseDN'         : 'uid=tmorris, ou=People,%s' % synchroSuffix,
                  'dsFilter'         : 'departmentnumber=5203214400' }
                  'dsBaseDN'       : 'uid=tmorris, ou=People,%s' \
                                     % synchroSuffix,
                  'dsFilter'       : 'departmentnumber=5203214400'
                }
              </call>
              <script>
                searchRC = STAXResult[0][0]
@@ -420,11 +452,13 @@
              <call function="'checktestRC'">
                  { 'returncode' : resultLength ,
                    'result'     : searchResult ,
                    'expected'   : 1 }
                  'expected'   : 1
                }
              </call>                       
                                
              <!-- Verify the synchronization of the trees among the servers in the topology -->
              <!-- Verify the synchronization of the trees among the servers in
                the topology -->
              <call function="'verifyTrees'">
                [ clientHost, clientPath, master, consumerList, synchroSuffix ]
              </call> 
@@ -437,19 +471,25 @@
          <!--- Test Case information
          #@TestMarker          Replication Basic Tests
          #@TestName            Replication: Basic: Modify Entry - delete single attribute
          #@TestName            Replication: Basic: Modify Entry - delete single
                                attribute
          #@TestID                  Modify Entry - delete single attribute
          #@TestPurpose         Check that an entry modify is well propagated by replication.
          #@TestPurpose         Check that an entry modify is well propagated by
                                replication.
          #@TestPreamble
          #@TestSteps
          #@TestSteps           Delete attribute in entry
          #@TestSteps           Check delete worked
          #@TestPostamble
          #@TestResult
          #@TestResult          Success if delete worked and trees synchronised
                                over the topology
          -->                      
          <testcase name="getTestCaseName('Modify Entry - delete single attribute')">
          <testcase name="getTestCaseName
                          ('Modify Entry - delete single attribute')">
            <sequence>
              <call function="'testCase_Preamble'"/>
              <message>
                 'Replication: Basic: Modify Entry - delete single attribute. Check that an entry modify is well propagated by replication.'
                'Replication: Basic: Modify Entry - delete single attribute. \
                Check that an entry modify is well propagated by replication.'
              </message>
@@ -460,17 +500,20 @@
                modif = 'delete'
                attrType = 'roomNumber'
                attrValue = None
                write_replication_mod_ldif_file(filePath, dn, modif, attrType, attrValue)
                write_replication_mod_ldif_file(filePath, dn, modif, attrType,
                                                attrValue)
              </script>
              <!-- Copy the replication_mod ldif to client host -->
              <message>
                'Copy %s file from %s to %s' % (filename,logsTestDataDir,clientDataDir)
                'Copy %s file from %s to %s' \
                % (filename,logsTestDataDir,clientDataDir)
              </message>
              <call function="'copyFile'">
                { 'srcfile'    : filePath,
                  'destfile'   : '%s/%s' % (clientDataDir,filename),
                  'remotehost' : client.getHostname() }
                  'remotehost' : client.getHostname()
                }
              </call>                    
              <!-- Modify "master" server -->                                
@@ -481,7 +524,8 @@
                  'dsInstancePort'    : master.getPort() ,
                  'dsInstanceDn'      : master.getRootDn() ,
                  'dsInstancePswd'    : master.getRootPwd() ,
                  'dsFilename' : '%s/%s' % (clientDataDir, filename) }
                  'dsFilename'     : '%s/%s' % (clientDataDir, filename)
                }
              </call>        
                                
              <!-- Check modify worked on "master" server -->      
@@ -493,8 +537,8 @@
                  'dsInstanceDn'     : master.getRootDn() ,
                  'dsInstancePswd'   : master.getRootPwd() ,
                  'dsBaseDN'         : 'uid=smason, ou=People,%s' % synchroSuffix,
                  'dsFilter'         : 'roomNumber=*',
                  'expectedRC'  : 0 }
                  'dsFilter'       : 'roomNumber=*'
                }
              </call>
              <script>
                searchRC = STAXResult[0][0]
@@ -504,11 +548,13 @@
              <call function="'checktestRC'">
                  { 'returncode' : resultLength ,
                    'result'     : searchResult ,
                    'expected'   : 0 }
                  'expected'   : 0
                }
              </call>                       
              <!-- Verify the synchronization of the trees among the servers in the topology -->
              <!-- Verify the synchronization of the trees among the servers in
                the topology -->
              <call function="'verifyTrees'">
                [ clientHost, clientPath, master, consumerList, synchroSuffix ]
              </call> 
@@ -521,19 +567,25 @@
          <!--- Test Case information
          #@TestMarker          Replication Basic Tests
          #@TestName            Replication: Basic: Modify Entry - delete single value
          #@TestName            Replication: Basic: Modify Entry - delete single
                                value
          #@TestID                  Modify Entry - delete single value
          #@TestPurpose         Check that an entry modify is well propagated by replication.
          #@TestPurpose         Check that an entry modify is well propagated by
                                replication.
          #@TestPreamble
          #@TestSteps
          #@TestSteps           Delete single attribute value in entry
          #@TestSteps           Check delete worked
          #@TestPostamble
          #@TestResult
          #@TestResult          Success if delete worked and trees synchronised
                                over the topology
          -->                      
          <testcase name="getTestCaseName('Modify Entry - delete single value')">
          <testcase name="getTestCaseName
                          ('Modify Entry - delete single value')">
            <sequence>
              <call function="'testCase_Preamble'"/>
              <message>
                 'Replication: Basic: Modify Entry - delete single value. Check that an entry modify is well propagated by replication.'
                'Replication: Basic: Modify Entry - delete single value. \
                Check that an entry modify is well propagated by replication.'
              </message>
              <!-- Modify "master" server -->
@@ -543,10 +595,12 @@
                  'dsInstancePort'    : master.getPort(),
                  'dsInstanceDn'  : master.getRootDn(),
                  'dsInstancePswd'    : master.getRootPwd(),
                  'DNToModify'    : 'uid=jwalker, ou=People,%s' % synchroSuffix,
                  'DNToModify'        : 'uid=jwalker, ou=People,%s' \
                                        % synchroSuffix,
                  'attributeName' : 'roomNumber',
                  'newAttributeValue' : '3915',
                  'changetype' : 'delete' }
                  'changetype'        : 'delete'
                }
              </call>
              <!-- Check modify worked on "master" server -->
@@ -557,9 +611,10 @@
                  'dsInstancePort'   : master.getPort() ,
                  'dsInstanceDn'     : master.getRootDn() ,
                  'dsInstancePswd'   : master.getRootPwd() ,
                  'dsBaseDN'         : 'uid=jwalker, ou=People,%s' % synchroSuffix,
                  'dsFilter'         : 'roomNumber=3915' ,
                  'expectedRC'  : 0 }
                  'dsBaseDN'       : 'uid=jwalker, ou=People,%s' \
                                     % synchroSuffix,
                  'dsFilter'       : 'roomNumber=3915'
                }
              </call>
              <script>
                searchRC = STAXResult[0][0]
@@ -569,11 +624,13 @@
              <call function="'checktestRC'">
                  { 'returncode' : resultLength ,
                    'result'     : searchResult ,
                    'expected'   : 0 }
                  'expected'   : 0
                }
              </call>       
                
                    
              <!-- Verify the synchronization of the trees among the servers in the topology -->
              <!-- Verify the synchronization of the trees among the servers in
                the topology -->
              <call function="'verifyTrees'">
                [ clientHost, clientPath, master, consumerList, synchroSuffix ]
              </call> 
@@ -587,19 +644,25 @@
          <!--- Test Case information
          #@TestMarker          Replication Basic Tests
          #@TestName            Replication: Basic: Modify Entry - add multiple values
          #@TestName            Replication: Basic: Modify Entry - add multiple
                                values
          #@TestID                  Modify Entry - add multiple values
          #@TestPurpose         Check that an entry modify is well propagated by replication.
          #@TestPurpose         Check that an entry modify is well propagated by
                                replication.
          #@TestPreamble
          #@TestSteps
          #@TestSteps           Add multiple-valued attribute to entry
          #@TestSteps           Check add worked
          #@TestPostamble
          #@TestResult
          #@TestResult          Success if add worked and trees synchronised
                                over the topology
          -->                      
          <testcase name="getTestCaseName('Modify Entry - add multiple values')">
          <testcase name="getTestCaseName
                          ('Modify Entry - add multiple values')">
            <sequence>
              <call function="'testCase_Preamble'"/>
              <message>
                 'Replication: Basic: Modify Entry - add multiple values. Check that an entry modify is well propagated by replication.'
                'Replication: Basic: Modify Entry - add multiple values. \
                Check that an entry modify is well propagated by replication.'
              </message>
                
              <script>
@@ -617,11 +680,19 @@
                  'dsInstancePort'  : master.getPort(),
                  'dsInstanceDn'  : master.getRootDn(),
                  'dsInstancePswd'  : master.getRootPwd(),
                  'DNToModify'  : 'uid=jwallace, ou=People,%s' % synchroSuffix,
                  'DNToModify'     : 'uid=jwallace, ou=People,%s' \
                                     % synchroSuffix,
                  'listAttributes'  : valuesToAdd,
                  'changetype'  : 'add' }
                  'changetype'     : 'add'
                }
              </call>
              <script>
                filter1 = '(postaladdress=Residence Parc Europe)'
                filter2 = '(postaladdress=Appartement #6)'
                filter3 = '(postaladdress=31 Rue General Mangin)'
                filter4 = '(postaladdress=38100 Grenoble)'
              </script>
              <!-- Check modify worked on "master" server -->
              <call function="'ldapSearchWithScript'">
                { 'location'         : clientHost,
@@ -630,8 +701,11 @@
                  'dsInstancePort'   : master.getPort() ,
                  'dsInstanceDn'     : master.getRootDn() ,
                  'dsInstancePswd'   : master.getRootPwd() ,
                  'dsBaseDN'    : 'uid=jwallace, ou=People,%s' % synchroSuffix,
                  'dsFilter'  : '&amp;(postaladdress=Residence Parc Europe)(postaladdress=Appartement #6)(postaladdress=31 Rue General Mangin)(postaladdress=38100 Grenoble)' }
                  'dsBaseDN'       : 'uid=jwallace, ou=People,%s' \
                                     % synchroSuffix,
                  'dsFilter'       : '&amp;%s%s%s%s' \
                                     % (filter1, filter2, filter3, filter4)
                }
              </call>
              <script>
                searchRC = STAXResult[0][0]
@@ -641,11 +715,13 @@
              <call function="'checktestRC'">
                  { 'returncode' : resultLength ,
                    'result'     : searchResult ,
                    'expected'   : 1 }
                  'expected'   : 1
                }
              </call>                       
    
                
              <!-- Verify the synchronization of the trees among the servers in the topology -->
              <!-- Verify the synchronization of the trees among the servers in
                the topology -->
              <call function="'verifyTrees'">
                [ clientHost, clientPath, master, consumerList, synchroSuffix ]
              </call> 
@@ -659,19 +735,25 @@
          <!--- Test Case information
          #@TestMarker          Replication Basic Tests
          #@TestName            Replication: Basic: Modify Entry - delete multiple values
          #@TestName            Replication: Basic: Modify Entry - delete
                                multiple values
          #@TestID                  Modify Entry - delete multiple values
          #@TestPurpose         Check that an entry modify is well propagated by replication.
          #@TestPurpose         Check that an entry modify is well propagated by
                                replication.
          #@TestPreamble
          #@TestSteps
          #@TestSteps           Delete multiple values in same attribute
          #@TestSteps           Check delete worked
          #@TestPostamble
          #@TestResult
          #@TestResult          Success if delete worked and trees synchronised
                                over the topology
          -->                      
          <testcase name="getTestCaseName('Modify Entry - delete multiple values')">
          <testcase name="getTestCaseName
                          ('Modify Entry - delete multiple values')">
            <sequence>
              <call function="'testCase_Preamble'"/>
              <message>
                 'Replication: Basic: Modify Entry - delete multiple values. Check that an entry modify is well propagated by replication.'
                'Replication: Basic: Modify Entry - delete multiple values. \
                Check that an entry modify is well propagated by replication.'
              </message>
                
@@ -688,11 +770,17 @@
                  'dsInstancePort'    : master.getPort(),
                  'dsInstanceDn'  : master.getRootDn(),
                  'dsInstancePswd'    : master.getRootPwd(),
                  'DNToModify'    : 'uid=jwallace, ou=People,%s' % synchroSuffix,
                  'DNToModify'     : 'uid=jwallace, ou=People,%s' \
                                     % synchroSuffix,
                  'listAttributes' : valuesToDelete,
                  'changetype' : 'delete' }
                  'changetype'     : 'delete'
                }
              </call>
              <script>
                filter1 = '(postaladdress=Appartement #6)'
                filter2 = '(postaladdress=38100 Grenoble)'
              </script>
              <!-- Check modify worked on "master" server -->        
              <call function="'ldapSearchWithScript'">
                { 'location'         : clientHost,
@@ -701,9 +789,10 @@
                  'dsInstancePort'   : master.getPort() ,
                  'dsInstanceDn'     : master.getRootDn() ,
                  'dsInstancePswd'   : master.getRootPwd() ,
                  'dsBaseDN'    : 'uid=jwallace, ou=People,%s' % synchroSuffix,
                  'dsFilter'  : '|(postaladdress=Appartement #6)(postaladdress=38100 Grenoble)',
                  'expectedRC'  : 0 }
                  'dsBaseDN'       : 'uid=jwallace, ou=People,%s' \
                                     % synchroSuffix,
                  'dsFilter'       : '|%s%s' % (filter1, filter2)
                }
              </call>
              <script>
                searchRC = STAXResult[0][0]
@@ -713,11 +802,13 @@
              <call function="'checktestRC'">
                  { 'returncode' : resultLength ,
                    'result'     : searchResult ,
                    'expected'   : 0 }
                  'expected'   : 0
                }
              </call>                 
              <!-- Verify the synchronization of the trees among the servers in the topology -->
              <!-- Verify the synchronization of the trees among the servers in
                the topology -->
              <call function="'verifyTrees'">
                [ clientHost, clientPath, master, consumerList, synchroSuffix ]
              </call> 
@@ -733,19 +824,25 @@
            
          <!--- Test Case information
          #@TestMarker          Replication Basic Tests
          #@TestName            Replication: Basic: Modify Entry - replace multiple values
          #@TestName            Replication: Basic: Modify Entry - replace
                                multiple values
          #@TestID                  Modify Entry - replace multiple values
          #@TestPurpose         Check that an entry modify is well propagated by replication.
          #@TestPurpose         Check that an entry modify is well propagated by
                                replication.
          #@TestPreamble
          #@TestSteps
          #@TestSteps           Replace multiple values in same attribute
          #@TestSteps           Check replace worked
          #@TestPostamble
          #@TestResult
          #@TestResult          Success if replace worked and trees synchronised
                                over the topology
          -->                      
          <testcase name="getTestCaseName('Modify Entry - replace multiple values')">
          <testcase name="getTestCaseName
                          ('Modify Entry - replace multiple values')">
            <sequence>
              <call function="'testCase_Preamble'"/>
              <message>
                 'Replication: Basic: Modify Entry - replace multiple values. Check that an entry modify is well propagated by replication.'
                'Replication: Basic: Modify Entry - replace multiple values. \
                Check that an entry modify is well propagated by replication.'
              </message>
                
@@ -762,11 +859,17 @@
                  'dsInstancePort'    : master.getPort(),
                  'dsInstanceDn'  : master.getRootDn(),
                  'dsInstancePswd'    : master.getRootPwd(),
                  'DNToModify'    : 'uid=jwallace, ou=People,%s' % synchroSuffix,
                  'DNToModify'     : 'uid=jwallace, ou=People,%s' \
                                     % synchroSuffix,
                  'listAttributes' : valuesToReplace,
                  'changetype' : 'replace' }
                  'changetype'     : 'replace'
                }
              </call>
              <script>
                filter1 = '(postaladdress=Residence Letilleuil)'
                filter2 = '(postaladdress=18 rue Nicolas Chorier)'
              </script>
              <!-- Check modify worked on "master" server -->        
              <call function="'ldapSearchWithScript'">
                { 'location'         : clientHost,
@@ -775,9 +878,10 @@
                  'dsInstancePort'   : master.getPort() ,
                  'dsInstanceDn'     : master.getRootDn() ,
                  'dsInstancePswd'   : master.getRootPwd() ,
                  'dsBaseDN'    : 'uid=jwallace, ou=People,%s' % synchroSuffix,
                  'dsFilter'  : '&amp;(postaladdress=Residence Letilleuil)(postaladdress=18 rue Nicolas Chorier)',
                  'expectedRC'  : 0 }
                  'dsBaseDN'       : 'uid=jwallace, ou=People,%s' \
                                     % synchroSuffix,
                  'dsFilter'       : '&amp;%s%s' % (filter1, filter2)
                }
              </call>
              <script>
                searchRC = STAXResult[0][0]
@@ -787,11 +891,13 @@
              <call function="'checktestRC'">
                  { 'returncode' : resultLength ,
                    'result'     : searchResult ,
                    'expected'   : 1 }
                  'expected'   : 1
                }
              </call>                 
              <!-- Verify the synchronization of the trees among the servers in the topology -->
              <!-- Verify the synchronization of the trees among the servers in
                the topology -->
              <call function="'verifyTrees'">
                [ clientHost, clientPath, master, consumerList, synchroSuffix ]
              </call> 
@@ -806,19 +912,27 @@
          <!--- Test Case information
          #@TestMarker          Replication Basic Tests
          #@TestName            Replication: Basic: Modify Entry - add single value to multiple valued attribute
          #@TestID                  Modify Entry - add single value to multiple valued attribute
          #@TestPurpose         Check that an entry modify is well propagated by replication.
          #@TestName            Replication: Basic: Modify Entry - add single
                                value to multiple valued attribute
          #@TestID              Modify Entry - add single value to multiple
                                valued attribute
          #@TestPurpose         Check that an entry modify is well propagated by
                                replication.
          #@TestPreamble
          #@TestSteps
          #@TestSteps           Add single value to multiple-valued attribute
          #@TestSteps           Check value add worked
          #@TestPostamble
          #@TestResult
          #@TestResult          Success if value add worked and trees
                                synchronised over the topology
          -->                      
          <testcase name="getTestCaseName('Modify Entry - add single value to multiple valued attribute')">
          <testcase name="getTestCaseName
              ('Modify Entry - add single value to multiple valued attribute')">
            <sequence>
              <call function="'testCase_Preamble'"/>
              <message>
                 'Replication: Basic: Modify Entry - add single value to multiple valued attribute. Check that an entry modify is well propagated by replication.'
                'Replication: Basic: Modify Entry - add single value to \
                multiple valued attribute. Check that an entry modify is well \
                propagated by replication.'
              </message>
                
@@ -834,9 +948,11 @@
                  'dsInstancePort'    : master.getPort(),
                  'dsInstanceDn'  : master.getRootDn(),
                  'dsInstancePswd'    : master.getRootPwd(),
                  'DNToModify'    : 'uid=jwallace, ou=People,%s' % synchroSuffix,
                  'DNToModify'     : 'uid=jwallace, ou=People,%s' \
                                     % synchroSuffix,
                  'listAttributes' : valuesToAdd,
                  'changetype' : 'add' }
                  'changetype'     : 'add'
                }
              </call>
              <!-- Check modify worked on "master" server -->        
@@ -847,9 +963,10 @@
                  'dsInstancePort'   : master.getPort() ,
                  'dsInstanceDn'     : master.getRootDn() ,
                  'dsInstancePswd'   : master.getRootPwd() ,
                  'dsBaseDN'    : 'uid=jwallace, ou=People,%s' % synchroSuffix,
                  'dsFilter'  : 'postaladdress=38000 Grenoble',
                  'expectedRC'  : 0 }
                  'dsBaseDN'       : 'uid=jwallace, ou=People,%s' \
                                     % synchroSuffix,
                  'dsFilter'       : 'postaladdress=38000 Grenoble'
                }
              </call>
              <script>
                searchRC = STAXResult[0][0]
@@ -859,11 +976,13 @@
              <call function="'checktestRC'">
                  { 'returncode' : resultLength ,
                    'result'     : searchResult ,
                    'expected'   : 1 }
                  'expected'   : 1
                }
              </call>                 
              <!-- Verify the synchronization of the trees among the servers in the topology -->
              <!-- Verify the synchronization of the trees among the servers in
                the topology -->
              <call function="'verifyTrees'">
                [ clientHost, clientPath, master, consumerList, synchroSuffix ]
              </call> 
@@ -878,19 +997,28 @@
          <!--- Test Case information
          #@TestMarker          Replication Basic Tests
          #@TestName            Replication: Basic: Modify Entry - delete single value from multiple valued attribute
          #@TestID                  Modify Entry - delete single value from multiple valued attribute
          #@TestPurpose         Check that an entry modify is well propagated by replication.
          #@TestName            Replication: Basic: Modify Entry - delete single
                                value from multiple valued attribute
          #@TestID              Modify Entry - delete single value from multiple
                                valued attribute
          #@TestPurpose         Check that an entry modify is well propagated by
                                replication.
          #@TestPreamble
          #@TestSteps
          #@TestSteps           Delete single value from multiple-valued
                                attribute
          #@TestSteps           Check value delete worked
          #@TestPostamble
          #@TestResult
          #@TestResult          Success if value delete worked and trees
                                synchronised over the topology
          -->                      
          <testcase name="getTestCaseName('Modify Entry - delete single value from multiple valued attribute')">
          <testcase name="getTestCaseName
           ('Modify Entry - delete single value from multiple valued attribute')">
            <sequence>
              <call function="'testCase_Preamble'"/>
              <message>
                 'Replication: Basic: Modify Entry - delete single value from multiple valued attribute. Check that an entry modify is well propagated by replication.'
                'Replication: Basic: Modify Entry - delete single value from \
                multiple valued attribute. Check that an entry modify is well \
                propagated by replication.'
              </message>
                      
@@ -906,9 +1034,11 @@
                  'dsInstancePort'    : master.getPort(),
                  'dsInstanceDn'  : master.getRootDn(),
                  'dsInstancePswd'    : master.getRootPwd(),
                  'DNToModify'    : 'uid=jwallace, ou=People,%s' % synchroSuffix,
                  'DNToModify'     : 'uid=jwallace, ou=People,%s' \
                                     % synchroSuffix,
                  'listAttributes' : valuesToDelete,
                  'changetype' : 'delete' }
                  'changetype'     : 'delete'
                }
              </call>
              <!-- Check modify worked on "master" server -->        
@@ -919,9 +1049,10 @@
                  'dsInstancePort'   : master.getPort() ,
                  'dsInstanceDn'     : master.getRootDn() ,
                  'dsInstancePswd'   : master.getRootPwd() ,
                  'dsBaseDN'    : 'uid=jwallace, ou=People,%s' % synchroSuffix,
                  'dsFilter'  : 'postaladdress=Residence Letilleuil',
                  'expectedRC'  : 0 }
                  'dsBaseDN'       : 'uid=jwallace, ou=People,%s' \
                                     % synchroSuffix,
                  'dsFilter'       : 'postaladdress=Residence Letilleuil'
                }
              </call>
              <script>
                searchRC = STAXResult[0][0]
@@ -931,11 +1062,13 @@
              <call function="'checktestRC'">
                  { 'returncode' : resultLength ,
                    'result'     : searchResult ,
                    'expected'   : 0 }
                  'expected'   : 0
                }
              </call>                 
              <!-- Verify the synchronization of the trees among the servers in the topology -->
              <!-- Verify the synchronization of the trees among the servers in
                the topology -->
              <call function="'verifyTrees'">
                [ clientHost, clientPath, master, consumerList, synchroSuffix ]
              </call> 
@@ -949,19 +1082,27 @@
            
          <!--- Test Case information
          #@TestMarker          Replication Basic Tests
          #@TestName            Replication: Basic: Modify Entry - replace case sensitive attribute
          #@TestName            Replication: Basic: Modify Entry - replace case
                                sensitive attribute
          #@TestID                  Modify Entry - replace case sensitive attribute
          #@TestPurpose         Check that case sensitive attribute modifications are replicated.
          #@TestPurpose         Check that case sensitive attribute
                                modifications are replicated.
          #@TestPreamble
          #@TestSteps
          #@TestSteps           Add entry
          #@TestSteps           Replace description attribute in entry
          #@TestSteps           Check replace worked
          #@TestPostamble
          #@TestResult
          #@TestResult          Success if replace worked and trees synchronised
                                over the topology
          -->                      
          <testcase name="getTestCaseName('Modify Entry - replace case sensitive attribute')">
          <testcase name="getTestCaseName
                          ('Modify Entry - replace case sensitive attribute')">
            <sequence>
              <call function="'testCase_Preamble'"/>
              <message>
                 'Replication: Basic: Modify Entry - replace case sensitive attribute. Check that case sensitive attribute modifications are replicated.'
                'Replication: Basic: Modify Entry - replace case sensitive \
                attribute. Check that case sensitive attribute modifications \
                are replicated.'
              </message>
                                
@@ -973,12 +1114,15 @@
                  'dsInstancePort' : master.getPort(), 
                  'dsInstanceDn'   : master.getRootDn(),
                  'dsInstancePswd' : master.getRootPwd(),
                  'entryToBeAdded' : '%s/replication/tfitter.ldif' % clientDataDir }
                  'entryToBeAdded' : '%s/replication/tfitter.ldif' \
                                     % clientDataDir
                }
              </call>                         
            
              <script>    
                value = 'Profession Tap Fitter and Plumber'
                valuesToReplace = []
                valuesToReplace.append('description: Profession Tap Fitter and Plumber')
                valuesToReplace.append('description: %s' % value)
              </script>
                
              <call function="'modifyAnAttribute'">
@@ -987,11 +1131,16 @@
                  'dsInstancePort'    : master.getPort(),
                  'dsInstanceDn'  : master.getRootDn(),
                  'dsInstancePswd'    : master.getRootPwd(),
                  'DNToModify'    : 'uid=tfitter, ou=People,%s' % synchroSuffix,
                  'DNToModify'     : 'uid=tfitter, ou=People,%s' \
                                     % synchroSuffix,
                  'listAttributes' : valuesToReplace,
                  'changetype' : 'replace' }
                  'changetype'     : 'replace'
                }
              </call>
              <script>
                filter = 'description=%s' % value
              </script>
              <!-- Check modify worked on "master" server -->        
              <call function="'ldapSearchWithScript'">
                { 'location'         : clientHost,
@@ -1000,9 +1149,10 @@
                  'dsInstancePort'   : master.getPort() ,
                  'dsInstanceDn'     : master.getRootDn() ,
                  'dsInstancePswd'   : master.getRootPwd() ,
                  'dsBaseDN'    : 'uid=tfitter, ou=People,%s' % synchroSuffix,
                  'dsFilter'  : 'description=Profession Tap Fitter and Plumber',
                  'expectedRC'  : 0 }
                  'dsBaseDN'       : 'uid=tfitter, ou=People,%s' \
                                     % synchroSuffix,
                  'dsFilter'       : filter
                }
              </call>
              <script>
                searchRC = STAXResult[0][0]
@@ -1012,11 +1162,13 @@
              <call function="'checktestRC'">
                  { 'returncode' : resultLength ,
                    'result'     : searchResult ,
                    'expected'   : 1 }
                  'expected'   : 1
                }
              </call>                 
              <!-- Verify the synchronization of the trees among the servers in the topology -->
              <!-- Verify the synchronization of the trees among the servers in
                the topology -->
              <call function="'verifyTrees'">
                [ clientHost, clientPath, master, consumerList, synchroSuffix ]
              </call> 
@@ -1027,22 +1179,198 @@
          <!--- Test Case information
          #@TestMarker          Replication Basic Tests
          #@TestName            Replication: Basic: Modify Entry - add binary attribute
          #@TestID                  Modify Entry - add binary attribute
          #@TestPurpose         Check that an entry modify is well propagated by replication.
          #@TestName            Replication: Basic: Modify Entry - replace
                                userpassword
          #@TestID              Modify Entry - replace userpassword
          #@TestPurpose         Check replaced userpasswords are replicated.
          #@TestPreamble
          #@TestSteps
          #@TestSteps           Add user entry on server A
          #@TestSteps           Bind as user with userpassword to server A
          #@TestSteps           Replace user's userpassword
          #@TestSteps           Bind as user with old userpassword to server B
          #@TestSteps           Bind as user with new userpassword to server B
          #@TestPostamble
          #@TestResult
          #@TestResult          Success if bind with old userpassword fails with
                                LDAP_INVALID_CREDENTIALS error and bind with new
                                user password suceeds and trees are synchronised
                                over the topology
          -->                      
          <testcase name="getTestCaseName('Modify Entry - add binary attribute')">
          <testcase name="getTestCaseName
                          ('Modify Entry - replace userpassword')">
            <sequence>
              <call function="'testCase_Preamble'"/>
              <message>
                 'Replication: Basic: Modify Entry - add binary attribute. Check that an entry modify is well propagated by replication.'
                'Replication: Basic: Modify Entry - replace userpassword. \
                Check replaced userpasswords are replicated.'
              </message>
              <!-- Add entry to "master" server -->
              <script>
                userDn = 'uid=pmoriarty, ou=People, %s' % synchroSuffix
                oldPassword = 'jajejijoju'
                newPassword = 'JUAJUAJUA'
                listAttr = []
                listAttr.append('objectclass:top')
                listAttr.append('objectclass:organizationalperson')
                listAttr.append('objectclass:inetorgperson')
                listAttr.append('objectclass:person')
                listAttr.append('givenname:Professor')
                listAttr.append('sn:Moriarty')
                listAttr.append('cn:Professor Moriarty')
                listAttr.append('l:London')
                listAttr.append('userpassword:%s' % oldPassword)
              </script>
              <message>
                'replace userpassword: add user entry %s' % userDn
              </message>
              <call function="'addAnEntry'">
                { 'location'       : masterHost,
                  'dsPath'         : masterPath,
                  'dsInstanceHost' : masterHost,
                  'dsInstancePort' : master.getPort(),
                  'dsInstanceDn'   : master.getRootDn(),
                  'dsInstancePswd' : master.getRootPwd(),
                  'DNToAdd'        : userDn,
                  'listAttributes' : listAttr
                }
              </call>
              <!-- Check userDn can bind with oldPassword on "master" server -->
              <message>
                'replace userpassword: bind on master using password %s' \
                % oldPassword
              </message>
              <call function="'ldapSearchWithScript'">
                { 'location'       : clientHost,
                  'dsPath'         : clientPath,
                  'dsInstanceHost' : masterHost,
                  'dsInstancePort' : master.getPort(),
                  'dsInstanceDn'   : userDn,
                  'dsInstancePswd' : oldPassword,
                  'dsBaseDN'       : synchroSuffix,
                  'dsFilter'       : 'objectclass=*'
                }
              </call>
              <!-- Replace userDn's oldPassword with newPassword on "master"
                server -->
              <message>
                'replace userpassword: replace user password %s with %s' \
                % (oldPassword, newPassword)
              </message>
              <call function="'modifyAnAttribute'">
                { 'location'          : masterHost,
                  'dsPath'            : masterPath,
                  'dsInstanceHost'    : masterHost,
                  'dsInstancePort'    : master.getPort(),
                  'dsInstanceDn'      : master.getRootDn(),
                  'dsInstancePswd'    : master.getRootPwd(),
                  'DNToModify'        : userDn,
                  'attributeName'     : 'userpassword',
                  'newAttributeValue' : 'JUAJUAJUA',
                  'changetype'        : 'replace'
                }
              </call>
              <script>
                consumer = consumerList[0]
              </script>
              <!-- Try binding as userDn with oldPassword on "consumer" server:
                ==> should fail with LDAP_INVALID_CREDENTIALS (49) error -->
              <message>
                'replace userpassword: bind on consumer using old password %s :\
                should fail with error LDAP_INVALID_CREDENTIALS (49)' \
                % oldPassword
              </message>
              <call function="'ldapSearchWithScript'">
                { 'location'       : clientHost,
                  'dsPath'         : clientPath,
                  'dsInstanceHost' : consumer.getHostname(),
                  'dsInstancePort' : consumer.getPort(),
                  'dsInstanceDn'   : userDn,
                  'dsInstancePswd' : oldPassword,
                  'dsBaseDN'       : synchroSuffix,
                  'dsFilter'       : 'objectclass=*',
                  'expectedRC'     : 49
                }
              </call>
              <!-- Check userDn can bind with newPassword on "consumer"
                server -->
              <message>
                'replace userpassword: bind on consumer using new password %s :\
                should pass' % newPassword
              </message>
              <call function="'ldapSearchWithScript'">
                { 'location'       : clientHost,
                  'dsPath'         : clientPath,
                  'dsInstanceHost' : consumer.getHostname(),
                  'dsInstancePort' : consumer.getPort(),
                  'dsInstanceDn'   : userDn,
                  'dsInstancePswd' : newPassword,
                  'dsBaseDN'       : synchroSuffix,
                  'dsFilter'       : 'objectclass=*'
                }
              </call>
              <!-- Delete added entry as clean-up measure -->
              <message>
                'replace userpassword: delete user entry %s on master' \
                % userDn
              </message>
              <call function="'DeleteEntry'">
                { 'location'       : clientHost,
                  'dsPath'         : clientPath,
                  'dsInstanceHost' : masterHost,
                  'dsInstancePort' : master.getPort(),
                  'dsInstanceDn'   : master.getRootDn(),
                  'dsInstancePswd' : master.getRootPwd(),
                  'dsBaseDN'       : userDn
                }
              </call>
              <!-- Verify the synchronization of the trees among the servers in
                the topology -->
              <call function="'verifyTrees'">
                [ clientHost, clientPath, master, consumerList, synchroSuffix ]
              </call>
              <script>
                knownIssue(3006)
              </script>
              <call function="'testCase_Postamble'"/>
            </sequence>
          </testcase>
          <!--- Test Case information
          #@TestMarker          Replication Basic Tests
          #@TestName            Replication: Basic: Modify Entry - add binary
                                attribute
          #@TestID              Modify Entry - add binary attribute
          #@TestPurpose         Check that an entry modify is well propagated by
                                replication.
          #@TestPreamble
          #@TestSteps           Add jpegPhoto attribute to entry with binary
                                value
          #@TestSteps           Check add worked
          #@TestPostamble
          #@TestResult          Success if add worked and trees synchronised
                                over the topology
          -->
          <testcase name="getTestCaseName
                          ('Modify Entry - add binary attribute')">
            <sequence>
              <call function="'testCase_Preamble'"/>
              <message>
                'Replication: Basic: Modify Entry - add binary attribute. \
                Check that an entry modify is well propagated by replication.'
              </message>
               
              <script>
@@ -1052,17 +1380,20 @@
                dn = 'uid=hmiller, ou=People,%s' % synchroSuffix
                modif = 'add'
                attrType = 'jpegPhoto'
                write_replication_mod_binary_ldif_file(filePath, dn, modif, attrType, binaryFilePath)
                write_replication_mod_binary_ldif_file(filePath, dn, modif,
                                                       attrType, binaryFilePath)
              </script>
              <!-- Copy the replication_mod ldif to client host -->
              <message>
                'Copy %s file from %s to %s' % (filename,logsTestDataDir,clientDataDir)
                'Copy %s file from %s to %s' \
                % (filename,logsTestDataDir,clientDataDir)
              </message>
              <call function="'copyFile'">
                { 'srcfile'    : filePath,
                  'destfile'   : '%s/%s' % (clientDataDir,filename),
                  'remotehost' : client.getHostname() }
                  'remotehost' : client.getHostname()
                }
              </call>                    
              <!-- Modify "master" server -->                                
@@ -1073,7 +1404,8 @@
                  'dsInstancePort'    : master.getPort() ,
                  'dsInstanceDn'      : master.getRootDn() ,
                  'dsInstancePswd'    : master.getRootPwd() ,
                  'dsFilename' : '%s/%s' % (clientDataDir, filename) }
                  'dsFilename'     : '%s/%s' % (clientDataDir, filename)
                }
              </call>                            
        
@@ -1085,9 +1417,10 @@
                  'dsInstancePort'   : master.getPort() ,
                  'dsInstanceDn'     : master.getRootDn() ,
                  'dsInstancePswd'   : master.getRootPwd() ,
                  'dsBaseDN'    : 'uid=hmiller, ou=People,%s' % synchroSuffix,
                  'dsFilter'  : 'jpegPhoto=*',
                  'expectedRC'  :  0 }
                  'dsBaseDN'       : 'uid=hmiller, ou=People,%s' \
                                     % synchroSuffix,
                  'dsFilter'       : 'jpegPhoto=*'
                }
              </call>                
              <script>
                searchRC = STAXResult[0][0]
@@ -1097,11 +1430,13 @@
              <call function="'checktestRC'">
                  { 'returncode' : resultLength ,
                    'result'     : searchResult ,
                    'expected'   : 1 }
                  'expected'   : 1
                }
              </call>    
            
              <!-- Verify the synchronization of the trees among the servers in the topology -->
              <!-- Verify the synchronization of the trees among the servers in
                the topology -->
              <call function="'verifyTrees'">
                [ clientHost, clientPath, master, consumerList, synchroSuffix ]
              </call>               
@@ -1115,19 +1450,25 @@
          <!--- Test Case information
          #@TestMarker          Replication Basic Tests
          #@TestName            Replication: Basic: Modify Entry - replace binary attribute
          #@TestName            Replication: Basic: Modify Entry - replace
                                binary attribute
          #@TestID                  Modify Entry - replace binary attribute
          #@TestPurpose         Check that an entry modify is well propagated by replication.
          #@TestPurpose         Check that an entry modify is well propagated by
                                replication.
          #@TestPreamble
          #@TestSteps
          #@TestSteps           Replace jpegPhoto (binary) attribute value
          #@TestSteps           Check replace worked
          #@TestPostamble
          #@TestResult
          #@TestResult          Success if replace worked and trees synchronised
                                over the topology
          -->                      
          <testcase name="getTestCaseName('Modify Entry - replace binary attribute')">
          <testcase name="getTestCaseName
                          ('Modify Entry - replace binary attribute')">
            <sequence>
              <call function="'testCase_Preamble'"/>
              <message>
                 'Replication: Basic: Modify Entry - replace binary attribute. Check that an entry modify is well propagated by replication.'
                'Replication: Basic: Modify Entry - replace binary attribute. \
                Check that an entry modify is well propagated by replication.'
              </message>
               
              <script>
@@ -1137,17 +1478,20 @@
                dn = 'uid=hmiller, ou=People,%s' % synchroSuffix
                modif = 'replace'
                attrType = 'jpegPhoto'
                write_replication_mod_binary_ldif_file(filePath, dn, modif, attrType, binaryFilePath)
                write_replication_mod_binary_ldif_file(filePath, dn, modif,
                                                       attrType, binaryFilePath)
              </script>
              <!-- Copy the replication_mod ldif to client host -->
              <message>
                'Copy %s file from %s to %s' % (filename,logsTestDataDir,clientDataDir)
                'Copy %s file from %s to %s' \
                % (filename,logsTestDataDir,clientDataDir)
              </message>
              <call function="'copyFile'">
                { 'srcfile'    : filePath,
                  'destfile'   : '%s/%s' % (clientDataDir,filename),
                  'remotehost' : client.getHostname() }
                  'remotehost' : client.getHostname()
                }
              </call>                    
              <!-- Modify "master" server -->                                
@@ -1158,7 +1502,8 @@
                  'dsInstancePort'    : master.getPort() ,
                  'dsInstanceDn'      : master.getRootDn() ,
                  'dsInstancePswd'    : master.getRootPwd() ,
                  'dsFilename' : '%s/%s' % (clientDataDir, filename) }
                  'dsFilename'     : '%s/%s' % (clientDataDir, filename)
                }
              </call>                            
        
@@ -1170,9 +1515,10 @@
                  'dsInstancePort'   : master.getPort() ,
                  'dsInstanceDn'     : master.getRootDn() ,
                  'dsInstancePswd'   : master.getRootPwd() ,
                  'dsBaseDN'    : 'uid=hmiller, ou=People,%s' % synchroSuffix,
                  'dsFilter'  : 'jpegPhoto=*',
                  'expectedRC'  :  0 }
                  'dsBaseDN'       : 'uid=hmiller, ou=People,%s' \
                                     % synchroSuffix,
                  'dsFilter'       : 'jpegPhoto=*'
                }
              </call>                
              <script>
                searchRC = STAXResult[0][0]
@@ -1182,11 +1528,13 @@
              <call function="'checktestRC'">
                  { 'returncode' : resultLength ,
                    'result'     : searchResult ,
                    'expected'   : 1 }
                  'expected'   : 1
                }
              </call>    
            
              <!-- Verify the synchronization of the trees among the servers in the topology -->
              <!-- Verify the synchronization of the trees among the servers in
                the topology -->
              <call function="'verifyTrees'">
                [ clientHost, clientPath, master, consumerList, synchroSuffix ]
              </call>               
@@ -1200,19 +1548,25 @@
          <!--- Test Case information
          #@TestMarker          Replication Basic Tests
          #@TestName            Replication: Basic: Modify Entry - delete binary attribute
          #@TestName            Replication: Basic: Modify Entry - delete binary
                                attribute
          #@TestID                  Modify Entry - delete binary attribute
          #@TestPurpose         Check that an entry modify is well propagated by replication.
          #@TestPurpose         Check that an entry modify is well propagated by
                                replication.
          #@TestPreamble
          #@TestSteps
          #@TestSteps           Delete binary attribute jpegPhoto
          #@TestSteps           Check delete worked
          #@TestPostamble
          #@TestResult
          #@TestResult          Success if delete worked and trees synchronised
                                over the topology
          -->                      
          <testcase name="getTestCaseName('Modify Entry - delete binary attribute')">
          <testcase name="getTestCaseName
                          ('Modify Entry - delete binary attribute')">
            <sequence>
              <call function="'testCase_Preamble'"/>
              <message>
                 'Replication: Basic: Modify Entry - delete binary attribute. Check that an entry modify is well propagated by replication.'
                'Replication: Basic: Modify Entry - delete binary attribute. \
                Check that an entry modify is well propagated by replication.'
              </message>
               
                    
@@ -1223,17 +1577,20 @@
                modif = 'delete'
                attrType = 'jpegPhoto'
                attrValue = None
                write_replication_mod_ldif_file(filePath, dn, modif, attrType, attrValue)
                write_replication_mod_ldif_file(filePath, dn, modif, attrType,
                                                attrValue)
              </script>
              <!-- Copy the replication_mod ldif to client host -->
              <message>
                'Copy %s file from %s to %s' % (filename,logsTestDataDir,clientDataDir)
                'Copy %s file from %s to %s' \
                % (filename,logsTestDataDir,clientDataDir)
              </message>
              <call function="'copyFile'">
                { 'srcfile'    : filePath,
                  'destfile'   : '%s/%s' % (clientDataDir,filename),
                  'remotehost' : client.getHostname() }
                  'remotehost' : client.getHostname()
                }
              </call>                    
              <!-- Modify "master" server -->                                
@@ -1244,7 +1601,8 @@
                  'dsInstancePort'    : master.getPort() ,
                  'dsInstanceDn'      : master.getRootDn() ,
                  'dsInstancePswd'    : master.getRootPwd() ,
                  'dsFilename' : '%s/%s' % (clientDataDir, filename) }
                  'dsFilename'     : '%s/%s' % (clientDataDir, filename)
                }
              </call>        
                
              <!-- Check modify worked on "master" server -->
@@ -1255,9 +1613,10 @@
                  'dsInstancePort'   : master.getPort() ,
                  'dsInstanceDn'     : master.getRootDn() ,
                  'dsInstancePswd'   : master.getRootPwd() ,
                  'dsBaseDN'    : 'uid=hmiller, ou=People,%s' % synchroSuffix,
                  'dsFilter'  : 'jpegPhoto=*',
                  'expectedRC'  :  0 }
                  'dsBaseDN'       : 'uid=hmiller, ou=People,%s' \
                                     % synchroSuffix,
                  'dsFilter'       : 'jpegPhoto=*'
                }
              </call>                
              <script>
                searchRC = STAXResult[0][0]
@@ -1267,11 +1626,13 @@
              <call function="'checktestRC'">
                  { 'returncode' : resultLength ,
                    'result'     : searchResult ,
                    'expected'   : 0 }
                  'expected'   : 0
                }
              </call>    
            
              <!-- Verify the synchronization of the trees among the servers in the topology -->
              <!-- Verify the synchronization of the trees among the servers in
                the topology -->
              <call function="'verifyTrees'">
                [ clientHost, clientPath, master, consumerList, synchroSuffix ]
              </call>               
@@ -1287,17 +1648,22 @@
          #@TestMarker          Replication Basic Tests
          #@TestName            Replication: Basic: Rename Entry
          #@TestID                  Rename Entry
          #@TestPurpose         Check that a rename (modrdn) operation is well propagated by replication.
          #@TestPurpose         Check that a rename (modrdn) operation is well
                                propagated by replication.
          #@TestPreamble
          #@TestSteps
          #@TestSteps           Rename entry
          #@TestSteps           Check old dn entry no longer exists
          #@TestSteps           Check new dn entry exists
          #@TestPostamble
          #@TestResult
          #@TestResult          Success if rename worked and trees synchronised
                                over the topology
          -->                  
          <testcase name="getTestCaseName('Rename Entry')">
            <sequence>
              <call function="'testCase_Preamble'"/>
              <message>
                 'Replication: Basic: Rename Entry. Check that a rename (modrdn) operation is well propagated by replication.'
                'Replication: Basic: Rename Entry. Check that a rename \
                (modrdn) operation is well propagated by replication.'
              </message>
               
              <script>
@@ -1307,17 +1673,20 @@
                newrdn = 'uid=kvaughan2'
                newsuperior = None
                deleteoldrdn = 1
                write_replication_moddn_ldif_file(filePath, dn, newrdn, newsuperior, deleteoldrdn)
                write_replication_moddn_ldif_file(filePath, dn, newrdn,
                                                  newsuperior, deleteoldrdn)
              </script>
              <!-- Copy the replication_mod ldif to client host -->
              <message>
                'Copy %s file from %s to %s' % (filename,logsTestDataDir,clientDataDir)
                'Copy %s file from %s to %s' \
                % (filename,logsTestDataDir,clientDataDir)
              </message>
              <call function="'copyFile'">
                { 'srcfile'    : filePath,
                  'destfile'   : '%s/%s' % (clientDataDir,filename),
                  'remotehost' : client.getHostname() }
                  'remotehost' : client.getHostname()
                }
              </call>                    
              <!-- Modify "master" server -->                                
@@ -1328,12 +1697,14 @@
                  'dsInstancePort'    : master.getPort() ,
                  'dsInstanceDn'      : master.getRootDn() ,
                  'dsInstancePswd'    : master.getRootPwd() ,
                  'dsFilename' : '%s/%s' % (clientDataDir, filename) }
                  'dsFilename'     : '%s/%s' % (clientDataDir, filename)
                }
              </call>                            
        
              <!-- Check modify worked on "master" server -->                
              <!-- check that "uid=kvaughan, ou=People, ${DIRECTORY_BASE}" does NOT exist anymore -->
              <!-- check that "uid=kvaughan, ou=People, ${DIRECTORY_BASE}" does
                NOT exist anymore -->
              <call function="'ldapSearchWithScript'">
                { 'location'         : clientHost,
                  'dsPath'           : clientPath,
@@ -1341,12 +1712,15 @@
                  'dsInstancePort'   : master.getPort() ,
                  'dsInstanceDn'     : master.getRootDn() ,
                  'dsInstancePswd'   : master.getRootPwd() ,
                  'dsBaseDN'    : 'uid=kvaughan, ou=People,%s' % synchroSuffix,
                  'dsBaseDN'       : 'uid=kvaughan, ou=People,%s' \
                                     % synchroSuffix,
                  'dsFilter'  : 'objectclass=*',
                  'expectedRC'  : 32 }
                  'expectedRC'     : 32
                }
              </call>                
                
              <!-- check that new entry "uid=kvaughan2, ou=People, ${DIRECTORY_BASE}" exists -->
              <!-- check that new entry
                "uid=kvaughan2, ou=People, ${DIRECTORY_BASE}" exists -->
              <call function="'ldapSearchWithScript'">
                { 'location'         : clientHost,
                  'dsPath'           : clientPath,
@@ -1354,12 +1728,15 @@
                  'dsInstancePort'   : master.getPort() ,
                  'dsInstanceDn'     : master.getRootDn() ,
                  'dsInstancePswd'   : master.getRootPwd() ,
                  'dsBaseDN'    : 'uid=kvaughan2, ou=People,%s' % synchroSuffix,
                  'dsFilter'  : 'objectclass=*' }
                  'dsBaseDN'       : 'uid=kvaughan2, ou=People,%s' \
                                     % synchroSuffix,
                  'dsFilter'       : 'objectclass=*'
                }
              </call>
            
              <!-- Verify the synchronization of the trees among the servers in the topology -->
              <!-- Verify the synchronization of the trees among the servers in
                the topology -->
              <call function="'verifyTrees'">
                [ clientHost, clientPath, master, consumerList, synchroSuffix ]
              </call>               
@@ -1374,19 +1751,26 @@
          <!--- Test Case information
          #@TestMarker          Replication Basic Tests
          #@TestName            Replication: Basic: Rename Entry (preserving old rdn)
          #@TestName            Replication: Basic: Rename Entry (preserving old
                                rdn)
          #@TestID                  Rename Entry (preserving old rdn)
          #@TestPurpose         Check that a rename (modrdn) operation is well propagated by replication.
          #@TestPurpose         Check that a rename (modrdn) operation is well
                                propagated by replication.
          #@TestPreamble
          #@TestSteps
          #@TestSteps           Rename entry
          #@TestSteps           Check old dn entry no longer exists
          #@TestSteps           Check new dn entry exists and contains old rdn
          #@TestPostamble
          #@TestResult
          #@TestResult          Success if rename worked and trees synchronised
                                over the topology
          -->                  
          <testcase name="getTestCaseName('Rename Entry (preserving old rdn)')">
            <sequence>
              <call function="'testCase_Preamble'"/>
              <message>
                 'Replication: Basic: Rename Entry (preserving old rdn). Check that a rename (modrdn) operation is well propagated by replication.'
                'Replication: Basic: Rename Entry (preserving old rdn). \
                Check that a rename (modrdn) operation is well propagated by \
                replication.'
              </message>
               
              <script>
@@ -1396,17 +1780,20 @@
                newrdn = 'uid=igueye'
                newsuperior = None
                deleteoldrdn = 0
                write_replication_moddn_ldif_file(filePath, dn, newrdn, newsuperior, deleteoldrdn)
                write_replication_moddn_ldif_file(filePath, dn, newrdn,
                                                  newsuperior, deleteoldrdn)
              </script>
              <!-- Copy the replication_mod ldif to client host -->
              <message>
                'Copy %s file from %s to %s' % (filename,logsTestDataDir,clientDataDir)
                'Copy %s file from %s to %s' \
                % (filename,logsTestDataDir,clientDataDir)
              </message>
              <call function="'copyFile'">
                { 'srcfile'    : filePath,
                  'destfile'   : '%s/%s' % (clientDataDir,filename),
                  'remotehost' : client.getHostname() }
                  'remotehost' : client.getHostname()
                }
              </call>                    
              <!-- Modify "master" server -->                                
@@ -1417,12 +1804,14 @@
                  'dsInstancePort'    : master.getPort() ,
                  'dsInstanceDn'      : master.getRootDn() ,
                  'dsInstancePswd'    : master.getRootPwd() ,
                  'dsFilename' : '%s/%s' % (clientDataDir, filename) }
                  'dsFilename'     : '%s/%s' % (clientDataDir, filename)
                }
              </call>                            
        
              <!-- Check modify worked on "master" server -->                
              <!-- check that "uid=jwallace, ou=People, ${DIRECTORY_BASE}" does NOT exist anymore -->
              <!-- check that "uid=jwallace, ou=People, ${DIRECTORY_BASE}" does
                NOT exist anymore -->
              <call function="'ldapSearchWithScript'">
                { 'location'         : clientHost,
                  'dsPath'           : clientPath,
@@ -1430,12 +1819,15 @@
                  'dsInstancePort'   : master.getPort() ,
                  'dsInstanceDn'     : master.getRootDn() ,
                  'dsInstancePswd'   : master.getRootPwd() ,
                  'dsBaseDN'    : 'uid=jwallace, ou=People,%s' % synchroSuffix,
                  'dsBaseDN'       : 'uid=jwallace, ou=People,%s' \
                                     % synchroSuffix,
                  'dsFilter'  : 'objectclass=*',
                  'expectedRC'  : 32 }
                  'expectedRC'     : 32
                }
              </call>                
                
              <!-- check that new entry "uid=igueye, ou=People, ${DIRECTORY_BASE}" exists -->
              <!-- check that new entry
                "uid=igueye, ou=People, ${DIRECTORY_BASE}" exists -->
              <call function="'ldapSearchWithScript'">
                { 'location'         : clientHost,
                  'dsPath'           : clientPath,
@@ -1444,7 +1836,8 @@
                  'dsInstanceDn'     : master.getRootDn() ,
                  'dsInstancePswd'   : master.getRootPwd() ,
                  'dsBaseDN'    : 'uid=igueye, ou=People,%s' % synchroSuffix,
                  'dsFilter'  : 'uid=jwallace' }
                  'dsFilter'       : 'uid=jwallace'
                }
              </call>
              <script>
                searchRC = STAXResult[0][0]
@@ -1454,11 +1847,13 @@
              <call function="'checktestRC'">
                  { 'returncode' : resultLength ,
                    'result'     : searchResult ,
                    'expected'   : 1 }
                  'expected'   : 1
                }
              </call>       
                            
              <!-- Verify the synchronization of the trees among the servers in the topology -->
              <!-- Verify the synchronization of the trees among the servers in
                the topology -->
              <call function="'verifyTrees'">
                [ clientHost, clientPath, master, consumerList, synchroSuffix ]
              </call>               
@@ -1475,17 +1870,22 @@
          #@TestMarker          Replication Basic Tests
          #@TestName            Replication: Basic: Rename Subtree
          #@TestID                  Rename Subtree
          #@TestPurpose         Check that a subtree rename (moddn) operation is well propagated by replication.
          #@TestPurpose         Check that a subtree rename (moddn) operation is
                                well propagated by replication.
          #@TestPreamble
          #@TestSteps
          #@TestSteps           Rename subtree
          #@TestSteps           Check old subtree no longer exists
          #@TestSteps           Check new subree exists
          #@TestPostamble
          #@TestResult
          #@TestResult          Success if rename worked and trees synchronised
                                over the topology
          -->                  
          <testcase name="getTestCaseName('Rename Subtree')">
            <sequence>
              <call function="'testCase_Preamble'"/>
              <message>
                 'Replication: Basic: Rename Subtree. Check that a subtree rename (moddn) operation is well propagated by replication.'
                'Replication: Basic: Rename Subtree. Check that a subtree \
                rename (moddn) operation is well propagated by replication.'
              </message>
        
              <script>
@@ -1495,17 +1895,20 @@
                newrdn = 'ou=Special People'
                newsuperior = 'ou=Special Users,%s' % synchroSuffix
                deleteoldrdn = 0
                write_replication_moddn_ldif_file(filePath, dn, newrdn, newsuperior, deleteoldrdn)
                write_replication_moddn_ldif_file(filePath, dn, newrdn,
                                                  newsuperior, deleteoldrdn)
              </script>
              <!-- Copy the replication_mod ldif to client host -->
              <message>
                'Copy %s file from %s to %s' % (filename,logsTestDataDir,clientDataDir)
                'Copy %s file from %s to %s' \
                % (filename,logsTestDataDir,clientDataDir)
              </message>
              <call function="'copyFile'">
                { 'srcfile'    : filePath,
                  'destfile'   : '%s/%s' % (clientDataDir,filename),
                  'remotehost' : client.getHostname() }
                  'remotehost' : client.getHostname()
                }
              </call>                    
              <!-- Modify "master" server -->                                
@@ -1516,12 +1919,14 @@
                  'dsInstancePort'    : master.getPort() ,
                  'dsInstanceDn'      : master.getRootDn() ,
                  'dsInstancePswd'    : master.getRootPwd() ,
                  'dsFilename' : '%s/%s' % (clientDataDir, filename) }
                  'dsFilename'     : '%s/%s' % (clientDataDir, filename)
                }
              </call>                            
        
              <!-- Check modify worked on "master" server -->                
              <!-- check that "uid=gfarmer, ou=People, ${DIRECTORY_BASE}" does NOT exist anymore -->
              <!-- check that "uid=gfarmer, ou=People, ${DIRECTORY_BASE}" does
                NOT exist anymore -->
              <call function="'ldapSearchWithScript'">
                { 'location'         : clientHost,
                  'dsPath'           : clientPath,
@@ -1529,12 +1934,20 @@
                  'dsInstancePort'   : master.getPort() ,
                  'dsInstanceDn'     : master.getRootDn() ,
                  'dsInstancePswd'   : master.getRootPwd() ,
                  'dsBaseDN'    : 'uid=gfarmer, ou=People,%s' % synchroSuffix,
                  'dsBaseDN'       : 'uid=gfarmer, ou=People,%s' \
                                     % synchroSuffix,
                  'dsFilter'  : 'objectclass=*',
                  'expectedRC'  : 32 }
                  'expectedRC'     : 32
                }
              </call>                
                
              <!-- check that new entry "uid=gfarmer, ou=Special People, ou=Special Users, ${DIRECTORY_BASE}" exists -->
              <script>
                base = 'uid=gfarmer, ou=Special People, ou=Special Users,%s' \
                       % synchroSuffix
              </script>
              <!-- check that new entry
                "uid=gfarmer, ou=Special People, ou=Special Users,
                ${DIRECTORY_BASE}" exists -->
              <call function="'ldapSearchWithScript'">
                { 'location'         : clientHost,
                  'dsPath'           : clientPath,
@@ -1542,12 +1955,14 @@
                  'dsInstancePort'   : master.getPort() ,
                  'dsInstanceDn'     : master.getRootDn() ,
                  'dsInstancePswd'   : master.getRootPwd() ,
                  'dsBaseDN'    : 'uid=gfarmer, ou=Special People, ou=Special Users,%s' % synchroSuffix,
                  'dsFilter'  : 'objectclass=*' }
                  'dsBaseDN'       : base,
                  'dsFilter'       : 'objectclass=*'
                }
              </call>
            
              <!-- Verify the synchronization of the trees among the servers in the topology -->
              <!-- Verify the synchronization of the trees among the servers in
                the topology -->
              <call function="'verifyTrees'">
                [ clientHost, clientPath, master, consumerList, synchroSuffix ]
              </call>               
@@ -1563,7 +1978,8 @@
                        
                
          <import machine="STAF_LOCAL_HOSTNAME"
            file="'%s/testcases/replication/replication_cleanup.xml' % (TESTS_DIR)"/>
            file="'%s/testcases/replication/replication_cleanup.xml'
                  % (TESTS_DIR)"/>
          <call function="'replication_cleanup'" />
                          
          <call function="'testSuite_Postamble'"/>
opends/tests/functional-tests/testcases/replication/basic/replication_basic_setup.xml
@@ -41,7 +41,8 @@
      <script>
        synchroSuffix = master.getSynchronizedSuffixList()[0].getSuffixDn()
        entryDn = 'uid=scarter,%s' % synchroSuffix
        grandchildEntryDn = 'uid=scarter,ou=People,o=replication tests,%s' % synchroSuffix
        grandchildEntryDn = 'uid=scarter,ou=People,o=replication tests,%s' \
                            % synchroSuffix
        mod_type = 'replace'
        attr_type = 'roomnumber'
        attr_value = '1111'        
@@ -98,7 +99,8 @@
      <script>
        filename = 'replication_mod.ldif'
        filePath = '%s/%s' % (logsTestDataDir,filename)
        write_replication_mod_ldif_file(filePath, entryDn, mod_type, attr_type, attr_value)
        write_replication_mod_ldif_file(filePath, entryDn, mod_type, attr_type,
                                        attr_value)
      </script>
      <!-- Copy the replication_mod ldif to client host -->
@@ -108,13 +110,15 @@
      <call function="'copyFile'">
        { 'srcfile'    : filePath,
          'destfile'   : '%s/%s' % (clientDataDir,filename),
          'remotehost' : client.getHostname() }
          'remotehost' : client.getHostname()
        }
      </call>          
          
                    
      <call function="'checkRC'">
        { 'returncode' : RC ,
          'result'     : STAXResult }
          'result'     : STAXResult
        }
      </call>
                                  
    </sequence>
opends/tests/functional-tests/testcases/replication/totalupdate/totalupdate.xml
@@ -111,20 +111,6 @@
                }
              </call>
              
              <!-- Check some data was imported into Directory Server -->
              <call function="'checkImport'">
                { 'location'        : masterHost,
                  'dsPath'          : masterPath,
                  'dsHost'          : masterHost,
                  'dsPort'          : master.getPort(),
                  'dsDn'            : master.getRootDn(),
                  'dsPswd'          : master.getRootPwd(),
                  'expectedEntries' : ['uid=scarter,ou=People,o=example',
                                       'uid=dmiller, ou=People, o=example',
                                       'uid=rhunt, ou=People, o=example']
                }
              </call>
              <!-- Start the Directory Server -->
              <call function="'StartDsWithScript'">
                { 'location'  : masterHost,
@@ -145,6 +131,21 @@
                }
              </call>
              <!-- Check some data was imported into Directory Server -->
              <call function="'checkImport'">
                { 'location'        : masterHost,
                  'dsPath'          : masterPath,
                  'dsHost'          : masterHost,
                  'dsPort'          : master.getPort(),
                  'dsDn'            : master.getRootDn(),
                  'dsPswd'          : master.getRootPwd(),
                  'expectedEntries' : ['uid=scarter,ou=People,o=example',
                                       'uid=dmiller, ou=People, o=example',
                                       'uid=rhunt, ou=People, o=example'],
                  'startDS'         : 'no'
                }
              </call>
              <iterate var="server" in="consumerList">
                <sequence>                                                                            
@@ -199,8 +200,7 @@
                  'dsInstanceDn'   : master.getRootDn(),
                  'dsInstancePswd' : master.getRootPwd(),
                  'DNToAdd'        : 'uid=pmoriarty, ou=People, o=example',
                  'listAttributes' : listAttr,
                  'expectedRC'     :  0
                  'listAttributes' : listAttr
                }
              </call>
                                               
@@ -414,20 +414,6 @@
                }
              </call>
              
              <!-- Check some data was imported into Directory Server -->
              <call function="'checkImport'">
                { 'location'        : masterHost,
                  'dsPath'          : masterPath,
                  'dsHost'          : masterHost,
                  'dsPort'          : master.getPort(),
                  'dsDn'            : master.getRootDn(),
                  'dsPswd'          : master.getRootPwd(),
                  'expectedEntries' : ['uid=scarter,ou=People,o=example',
                                       'uid=dmiller, ou=People, o=example',
                                       'uid=sholmes, ou=People, o=example']
                }
              </call>
              <!-- Start the Directory Server -->
              <call function="'StartDsWithScript'">
                { 'location'  : masterHost,
@@ -448,6 +434,21 @@
                }
              </call>
              <!-- Check some data was imported into Directory Server -->
              <call function="'checkImport'">
                { 'location'        : masterHost,
                  'dsPath'          : masterPath,
                  'dsHost'          : masterHost,
                  'dsPort'          : master.getPort(),
                  'dsDn'            : master.getRootDn(),
                  'dsPswd'          : master.getRootPwd(),
                  'expectedEntries' : ['uid=scarter,ou=People,o=example',
                                       'uid=dmiller, ou=People, o=example',
                                       'uid=sholmes, ou=People, o=example'],
                  'startDS'         : 'no'
                }
              </call>
              <!-- Perform the total update -->
              <call function="'initializeReplication'">
@@ -501,8 +502,7 @@
                  'dsInstanceDn'   : master.getRootDn(),
                  'dsInstancePswd' : master.getRootPwd(),
                  'DNToAdd'        : 'uid=pmoriarty, ou=People, o=example',
                  'listAttributes' : listAttr,
                  'expectedRC'     : 0
                  'listAttributes' : listAttr
                }
              </call>