mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
13.46.2008 ed1b9a16cd979ba719aba6f60d867b6a5e84d7e2
Re-commit fix for issue 3330 with updated unit tests.
2 files modified
16 ■■■■ changed files
opends/resource/config/config.ldif 2 ●●● patch | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/LDIFConnectionHandlerTestCase.java 14 ●●●● patch | view | raw | blame | history
opends/resource/config/config.ldif
@@ -469,7 +469,7 @@
objectClass: ds-cfg-ldif-connection-handler
cn: LDIF Connection Handler
ds-cfg-java-class: org.opends.server.protocols.LDIFConnectionHandler
ds-cfg-enabled: true
ds-cfg-enabled: false
ds-cfg-ldif-directory: config/auto-process-ldif
ds-cfg-poll-interval: 5 seconds
opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/LDIFConnectionHandlerTestCase.java
@@ -82,7 +82,8 @@
    TestCaseUtils.dsconfig(
      "set-connection-handler-prop",
      "--handler-name", "LDIF Connection Handler",
      "--set", "ldif-directory:" + tempDir.getAbsolutePath());
      "--set", "ldif-directory:" + tempDir.getAbsolutePath(),
      "--set", "enabled:true");
    try
    {
@@ -186,7 +187,8 @@
    TestCaseUtils.dsconfig(
      "set-connection-handler-prop",
      "--handler-name", "LDIF Connection Handler",
      "--set", "ldif-directory:" + tempDir.getAbsolutePath());
      "--set", "ldif-directory:" + tempDir.getAbsolutePath(),
      "--set", "enabled:true");
    try
    {
@@ -270,7 +272,8 @@
    TestCaseUtils.dsconfig(
      "set-connection-handler-prop",
      "--handler-name", "LDIF Connection Handler",
      "--set", "ldif-directory:" + tempDir.getAbsolutePath());
      "--set", "ldif-directory:" + tempDir.getAbsolutePath(),
      "--set", "enabled:true");
    try
    {
@@ -349,6 +352,11 @@
  public void testGenericConnectionHandlerMethods()
         throws Exception
  {
    TestCaseUtils.dsconfig(
        "set-connection-handler-prop",
        "--handler-name", "LDIF Connection Handler",
        "--set", "enabled:true");
    // Get the connection handler from the server.
    LDIFConnectionHandler connHandler = null;
    for (ConnectionHandler handler : DirectoryServer.getConnectionHandlers())