From dc3db9a969eccac31c4f1f5aa3e0cefbca632189 Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Fri, 04 Jan 2008 10:24:16 +0000
Subject: [PATCH] Enable back some test that were disabled

---
 opends/tests/unit-tests-testng/src/server/org/opends/server/replication/UpdateOperationTest.java          |    2 +-
 opends/tests/unit-tests-testng/src/server/org/opends/server/replication/ProtocolWindowTest.java           |    4 ++--
 opends/src/server/org/opends/server/replication/server/ServerHandler.java                                 |    4 ++--
 opends/tests/unit-tests-testng/src/server/org/opends/server/replication/server/ReplicationServerTest.java |    2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/opends/src/server/org/opends/server/replication/server/ServerHandler.java b/opends/src/server/org/opends/server/replication/server/ServerHandler.java
index fb71b78..3d9c0ec 100644
--- a/opends/src/server/org/opends/server/replication/server/ServerHandler.java
+++ b/opends/src/server/org/opends/server/replication/server/ServerHandler.java
@@ -1504,8 +1504,8 @@
     }
 
     // Deprecated
-    // attributes.add(new Attribute("max-waiting-changes",
-    //                              String.valueOf(maxQueueSize)));
+    attributes.add(new Attribute("max-waiting-changes",
+                                  String.valueOf(maxQueueSize)));
     attributes.add(new Attribute("update-sent",
                                  String.valueOf(getOutCount())));
     attributes.add(new Attribute("update-received",
diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/ProtocolWindowTest.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/ProtocolWindowTest.java
index 3aace68..fcfeb5c 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/ProtocolWindowTest.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/ProtocolWindowTest.java
@@ -90,7 +90,7 @@
    *  - receive all messages from the ReplicationBroker, check that
    *    the client receives the correct number of operations.
    */
-  @Test(enabled=false, groups="slow")
+  @Test(enabled=true, groups="slow")
   public void saturateQueueAndRestart() throws Exception
   {
     logError(Message.raw(
@@ -221,7 +221,7 @@
     op = connection.processSearch(
         new ASN1OctetString("cn=monitor"),
         SearchScope.WHOLE_SUBTREE,
-        LDAPFilter.decode("(waiting-changes=" +
+        LDAPFilter.decode("(missing-changes=" +
             (REPLICATION_QUEUE_SIZE + WINDOW_SIZE) + ")"));
     assertEquals(op.getResultCode(), ResultCode.SUCCESS);
 
diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/UpdateOperationTest.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/UpdateOperationTest.java
index 58395af..4593095 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/UpdateOperationTest.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/UpdateOperationTest.java
@@ -1253,7 +1253,7 @@
   /**
    * Tests done using directly the ReplicationBroker interface.
    */
-  @Test(enabled=false, dataProvider="assured")
+  @Test(enabled=true, dataProvider="assured")
   public void updateOperations(boolean assured) throws Exception
   {
     logError(Message.raw(
diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/server/ReplicationServerTest.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/server/ReplicationServerTest.java
index db8651e..210d849 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/server/ReplicationServerTest.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/server/ReplicationServerTest.java
@@ -145,7 +145,7 @@
    * This method is used to make sure that this order is always respected.
    * (Using testng dependency does not work)
    */
-  @Test(enabled=false)
+  @Test(enabled=true)
   public void replicationServerTest() throws Exception
   {
     replicationServer.clearDb();

--
Gitblit v1.10.0