From f73b655466092169abac34833fb628fce1fcdebe Mon Sep 17 00:00:00 2001
From: jcduff <jcduff@localhost>
Date: Thu, 23 Oct 2008 14:04:24 +0000
Subject: [PATCH] The commit will bring the following features : - An updated version of the underlying database. BDB JE 3.3 is now used. - Attribute API refactoring providing a better abstraction and offering improved performances. - A new GUI called the Control-Panel to replace the Status-Panel: the specifications for this GUI are available on OpenDS Wiki and contains a link to a mockup. See <https://www.opends.org/wiki/page/ControlPanelUISpecification>. - Some changes in the replication protocol to implement "Assured Replication Mode". The specifications are on OpenDS Wiki at <https://www.opends.org/wiki/page/AssuredMode> and section 7 described some of the replication changes required to support this. Assured Replication is not finished, but the main replication protocol changes to support it are done. As explained by Gilles on an email on the Dev mailing list (http://markmail.org/message/46rgo3meq3vriy4a), with these changes the newer versions of OpenDS may not be able to replicate with OpenDS 1.0 instances. - Support for Service Tags on the platforms where the functionality is available and enabled. Specifications are published at <https://www.opends.org/wiki/page/OpenDSServiceTagEnabled>. For more information on Service Tags see <http://wikis.sun.com/display/ServiceTag/Sun+Service+Tag+FAQ>. - The Admin Connector service. In order to provide agentry of the OpenDS server at any time, a new service has been added, dedicated to the administration, configuration and monitoring of the server. An overview of the Admin Connector service and it's use is available on the OpenDS wiki <https://www.opends.org/wiki/page/ManagingAdministrationTrafficToTheServer> - Updates to the various command line tools to support the Admin Connector service. - Some internal re-architecting of the server to put the foundation of future developments such as virtual directory services. The new NetworkGroups and WorkFlow internal services which have been specified in <https://www.opends.org/wiki/page/BasicOperationRoutingThroughNetworkGroup> are now implemented. - Many bug fixes...
---
opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/jmx/JmxPrivilegeTestCase.java | 30 +++++++++++++++---------------
1 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/jmx/JmxPrivilegeTestCase.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/jmx/JmxPrivilegeTestCase.java
index 9351200..c06d885 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/jmx/JmxPrivilegeTestCase.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/jmx/JmxPrivilegeTestCase.java
@@ -65,7 +65,7 @@
import org.opends.server.protocols.ldap.LDAPFilter;
import org.opends.server.protocols.internal.InternalClientConnection;
import org.opends.server.protocols.internal.InternalSearchOperation;
-import org.opends.server.types.Attribute;
+import org.opends.server.types.Attributes;
import org.opends.server.types.AuthenticationInfo;
import org.opends.server.types.ByteStringFactory;
import org.opends.server.types.Control;
@@ -222,7 +222,7 @@
"uid: pwreset.target",
"userPassword: password");
- TestCaseUtils.applyModifications(
+ TestCaseUtils.applyModifications(false,
"dn: o=test",
"changetype: modify",
"add: aci",
@@ -432,8 +432,8 @@
InternalClientConnection rootConnection =
InternalClientConnection.getRootConnection();
ArrayList<Modification> mods = new ArrayList<Modification>();
- mods.add(new Modification(ModificationType.ADD,
- new Attribute("ds-privilege-name", "jmx-read")));
+ mods.add(new Modification(ModificationType.ADD, Attributes.create(
+ "ds-privilege-name", "jmx-read")));
ModifyOperation modifyOperation =
rootConnection.processModify(DN.decode(user), mods);
assertEquals(modifyOperation.getResultCode(), ResultCode.SUCCESS);
@@ -464,7 +464,7 @@
// remove JMX_READ privilege
mods = new ArrayList<Modification>();
mods.add(new Modification(ModificationType.DELETE,
- new Attribute("ds-privilege-name", "jmx-read")));
+ Attributes.create("ds-privilege-name", "jmx-read")));
modifyOperation =
rootConnection.processModify(DN.decode(user), mods);
assertEquals(modifyOperation.getResultCode(), ResultCode.SUCCESS);
@@ -648,7 +648,7 @@
ArrayList<Modification> mods = new ArrayList<Modification>();
mods.add(new Modification(ModificationType.REPLACE,
- new Attribute("ds-cfg-size-limit", "2000")));
+ Attributes.create("ds-cfg-size-limit", "2000")));
ModifyOperation modifyOperation =
conn.processModify(DN.decode("cn=config"), mods);
@@ -658,7 +658,7 @@
mods.clear();
mods.add(new Modification(ModificationType.REPLACE,
- new Attribute("ds-cfg-size-limit", "1000")));
+ Attributes.create("ds-cfg-size-limit", "1000")));
modifyOperation = conn.processModify(DN.decode("cn=config"), mods);
assertEquals(modifyOperation.getResultCode(), ResultCode.SUCCESS);
@@ -740,7 +740,7 @@
ArrayList<Modification> mods = new ArrayList<Modification>();
mods.add(new Modification(ModificationType.ADD,
- new Attribute("attributetypes", attrDefinition)));
+ Attributes.create("attributetypes", attrDefinition)));
ModifyOperation modifyOperation =
conn.processModify(DN.decode("cn=schema"), mods);
@@ -750,7 +750,7 @@
mods.clear();
mods.add(new Modification(ModificationType.DELETE,
- new Attribute("attributetypes", attrDefinition)));
+ Attributes.create("attributetypes", attrDefinition)));
modifyOperation = conn.processModify(DN.decode("cn=schema"), mods);
assertEquals(modifyOperation.getResultCode(), ResultCode.SUCCESS);
@@ -1172,7 +1172,7 @@
// Try to modify the entry to add a description.
ArrayList<Modification> mods = new ArrayList<Modification>(1);
mods.add(new Modification(ModificationType.REPLACE,
- new Attribute("description", "foo")));
+ Attributes.create("description", "foo")));
ModifyOperationBasis modifyOperation = new ModifyOperationBasis(conn,
conn.nextOperationID(), conn.nextMessageID(), controls, e.getDN(),
@@ -1371,7 +1371,7 @@
// Try to modify the entry to add a description.
ArrayList<Modification> mods = new ArrayList<Modification>(1);
mods.add(new Modification(ModificationType.REPLACE,
- new Attribute("description", "foo")));
+ Attributes.create("description", "foo")));
ModifyOperationBasis modifyOperation =
new ModifyOperationBasis(conn,
@@ -1556,7 +1556,7 @@
// the client connection reflects that.
ArrayList<Modification> mods = new ArrayList<Modification>();
mods.add(new Modification(ModificationType.ADD,
- new Attribute("ds-privilege-name", "jmx-read")));
+ Attributes.create("ds-privilege-name", "jmx-read")));
ModifyOperation modifyOperation =
rootConnection.processModify(DN.decode("cn=Test User,o=test"), mods);
assertEquals(modifyOperation.getResultCode(), ResultCode.SUCCESS);
@@ -1567,7 +1567,7 @@
// immediately.
mods.clear();
mods.add(new Modification(ModificationType.DELETE,
- new Attribute("ds-privilege-name", "jmx-read")));
+ Attributes.create("ds-privilege-name", "jmx-read")));
modifyOperation =
rootConnection.processModify(DN.decode("cn=Test User,o=test"), mods);
assertEquals(modifyOperation.getResultCode(), ResultCode.SUCCESS);
@@ -1608,7 +1608,7 @@
ArrayList<Modification> mods = new ArrayList<Modification>();
mods.add(new Modification(ModificationType.ADD,
- new Attribute("ds-cfg-default-root-privilege-name",
+ Attributes.create("ds-cfg-default-root-privilege-name",
"proxied-auth")));
ModifyOperation modifyOperation =
internalRootConn.processModify(DN.decode("cn=Root DNs,cn=config"),
@@ -1626,7 +1626,7 @@
// Update the set of root privileges to revoke proxied auth.
mods.clear();
mods.add(new Modification(ModificationType.DELETE,
- new Attribute("ds-cfg-default-root-privilege-name",
+ Attributes.create("ds-cfg-default-root-privilege-name",
"proxied-auth")));
modifyOperation =
internalRootConn.processModify(DN.decode("cn=Root DNs,cn=config"),
--
Gitblit v1.10.0