From 9333c8dfd72d2ad28be57c8471dd8cac4a0044ff Mon Sep 17 00:00:00 2001
From: ugaston <ugaston@localhost>
Date: Mon, 22 Oct 2007 15:32:20 +0000
Subject: [PATCH] New totalupdate testcases + mark some known issues

---
 opends/tests/functional-tests/testcases/replication/replication_setup.xml |   38 ++++++++++++++++++++++++++++++++++++--
 1 files changed, 36 insertions(+), 2 deletions(-)

diff --git a/opends/tests/functional-tests/testcases/replication/replication_setup.xml b/opends/tests/functional-tests/testcases/replication/replication_setup.xml
index 14fd9e8..d2727fe 100644
--- a/opends/tests/functional-tests/testcases/replication/replication_setup.xml
+++ b/opends/tests/functional-tests/testcases/replication/replication_setup.xml
@@ -90,8 +90,42 @@
           <call function="'startServers'">
             [_topologyServerList]
           </call>            
-            
-          
+
+          <!-- Special setup for testcase:   Replication: Total Update: Schema total update
+            Modify schema in one server before replication is enabled.  -->        
+          <if expr="CurrentTestPath['suite'] == 'main.replication.total-update'">
+            <sequence>
+              <script>
+                newObjectclass = '( testobjectclass1-oid NAME \'testobjectclass-1\' SUP person MAY ( street $ testattribute-1 $ c ) X-ORIGIN \'user defined\' )'
+                newAttributetype = '( testattribute1-oid NAME \'testattribute-1\' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 X-ORIGIN \'user defined\' )'
+              </script>
+                
+              <!-- Modify schema  in "master" server -->
+              <call function="'modifyAnAttribute'">
+                { 'dsPath' : masterPath,
+                  'dsInstanceHost'   : masterHost ,
+                  'dsInstancePort'    : master.getPort(),
+                  'dsInstanceDn'  : master.getRootDn(),
+                  'dsInstancePswd'    : master.getRootPwd(),
+                  'DNToModify'    : 'cn=schema',
+                  'attributeName' : 'attributeTypes',
+                  'newAttributeValue' : newAttributetype, 
+                  'changetype' : 'add' }
+              </call>                
+              <call function="'modifyAnAttribute'">
+                { 'dsPath' : masterPath,
+                  'dsInstanceHost'   : masterHost ,
+                  'dsInstancePort'    : master.getPort(),
+                  'dsInstanceDn'  : master.getRootDn(),
+                  'dsInstancePswd'    : master.getRootPwd(),
+                  'DNToModify'    : 'cn=schema',
+                  'attributeName' : 'objectClasses',
+                  'newAttributeValue' : newObjectclass, 
+                  'changetype' : 'add' }
+              </call>                
+            </sequence>
+          </if>
+              
           <iterate var="server" in="consumerList">
             <sequence>
               <!-- Configure replication if required so by the server

--
Gitblit v1.10.0