From 88e5620001d65afa8d0d8e07d1361fa44705743e Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Fri, 11 May 2007 13:19:28 +0000
Subject: [PATCH] This code allows the replication code to replay operation in the correct order when operation have dependencies (like adding child entry after parent)
---
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/ProtocolWindowTest.java | 26 --------------------------
1 files changed, 0 insertions(+), 26 deletions(-)
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 2aef96e..a6733f7 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
@@ -32,8 +32,6 @@
import java.net.ServerSocket;
import java.net.SocketTimeoutException;
-import java.util.ArrayList;
-import java.util.LinkedHashSet;
import java.util.List;
import org.opends.server.TestCaseUtils;
@@ -47,16 +45,12 @@
import org.opends.server.replication.plugin.ReplicationBroker;
import org.opends.server.replication.protocol.AddMsg;
import org.opends.server.replication.protocol.ReplicationMessage;
-import org.opends.server.types.Attribute;
-import org.opends.server.types.AttributeType;
-import org.opends.server.types.AttributeValue;
import org.opends.server.types.DN;
import org.opends.server.types.Entry;
import org.opends.server.types.ErrorLogCategory;
import org.opends.server.types.ErrorLogSeverity;
import org.opends.server.types.LDAPException;
import org.opends.server.types.Modification;
-import org.opends.server.types.ModificationType;
import org.opends.server.types.Operation;
import org.opends.server.types.OperationType;
import org.opends.server.types.ResultCode;
@@ -242,10 +236,6 @@
// This test suite depends on having the schema available.
TestCaseUtils.startServer();
- // Disable schema check
- schemaCheck = DirectoryServer.checkSchema();
- DirectoryServer.setCheckSchema(false);
-
// Create an internal connection
connection = InternalClientConnection.getRootConnection();
@@ -325,22 +315,6 @@
configureReplication();
}
- /**
- * @return
- */
- private List<Modification> generatemods(String attrName, String attrValue)
- {
- AttributeType attrType =
- DirectoryServer.getAttributeType(attrName.toLowerCase(), true);
- LinkedHashSet<AttributeValue> values = new LinkedHashSet<AttributeValue>();
- values.add(new AttributeValue(attrType, attrValue));
- Attribute attr = new Attribute(attrType, attrName, values);
- List<Modification> mods = new ArrayList<Modification>();
- Modification mod = new Modification(ModificationType.REPLACE, attr);
- mods.add(mod);
- return mods;
- }
-
private void processModify(int count)
{
while (count>0)
--
Gitblit v1.10.0