From 8aaa16f43f88550cbe7a8a2ddad12a917e845488 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Thu, 05 Jul 2007 05:56:48 +0000
Subject: [PATCH] Update the server processing for the LDAP no-op control so that it uses a nonzero result code. For now, we're using a result code of 16654 (0x410e, which is what OpenLDAP uses). If a new specification is released with an official OID and result code, then we'll use them.
---
opends/tests/unit-tests-testng/src/server/org/opends/server/tools/LDAPDeleteTestCase.java | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/tools/LDAPDeleteTestCase.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/tools/LDAPDeleteTestCase.java
index 0e142a3..c4369fb 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/tools/LDAPDeleteTestCase.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/tools/LDAPDeleteTestCase.java
@@ -40,6 +40,7 @@
import org.opends.server.core.AddOperation;
import org.opends.server.core.DirectoryServer;
import org.opends.server.protocols.internal.InternalClientConnection;
+import org.opends.server.protocols.ldap.LDAPResultCode;
import org.opends.server.types.Entry;
import org.opends.server.types.OperatingSystem;
import org.opends.server.types.ResultCode;
@@ -890,7 +891,8 @@
"o=test"
};
- assertEquals(LDAPDelete.mainDelete(args, false, null, System.err), 0);
+ assertEquals(LDAPDelete.mainDelete(args, false, null, System.err),
+ LDAPResultCode.NO_OPERATION);
}
@@ -917,7 +919,8 @@
"o=test"
};
- assertEquals(LDAPDelete.mainDelete(args, false, null, System.err), 0);
+ assertEquals(LDAPDelete.mainDelete(args, false, null, System.err),
+ LDAPResultCode.NO_OPERATION);
}
--
Gitblit v1.10.0