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

jvergara
26.41.2007 cb2184dd20f4eb568cebb8915315abe13568214f
Fix the unit tests and the dsconfig.xml to run in non-prompt mode.
Remove a duplicate message in admin_tools.properties.
3 files modified
8 ■■■■■ changed files
opends/src/messages/messages/admin_tool.properties 1 ●●●● patch | view | raw | blame | history
opends/tests/functional-tests/shared/functions/dsconfig.xml 2 ●●●●● patch | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/TestCaseUtils.java 5 ●●●●● patch | view | raw | blame | history
opends/src/messages/messages/admin_tool.properties
@@ -266,7 +266,6 @@
INFO_STATE_COLUMN=State
INFO_STATUS_CLI_USAGE_DESCRIPTION=This utility may be used to display basic \
 server information
INFO_CLI_INVALID_PORT=The provided value is not a valid port
SEVERE_ERR_STATUS_PANEL_LAUNCHER_GUI_LAUNCH_FAILED=Could not launch Status \
Panel.  Check that you have access to the display.
SEVERE_ERR_STATUS_PANEL_LAUNCHER_GUI_LAUNCH_FAILED_DETAILS=Could not launch \
opends/tests/functional-tests/shared/functions/dsconfig.xml
@@ -44,6 +44,8 @@
      
      if dsInstancePswd:
        STAFCmdParamsList.append('-w "%s"' % dsInstancePswd)
      STAFCmdParamsList.append('-n')
    </script>
  </function>
  
opends/tests/unit-tests-testng/src/server/org/opends/server/TestCaseUtils.java
@@ -1231,7 +1231,7 @@
   */
  public static void dsconfig(String... args)
  {
    String[] fullArgs = new String[args.length + 8];
    String[] fullArgs = new String[args.length + 9];
    fullArgs[0] = "-h";
    fullArgs[1] = "127.0.0.1";
    fullArgs[2] = "-p";
@@ -1240,8 +1240,9 @@
    fullArgs[5] = "cn=Directory Manager";
    fullArgs[6] = "-w";
    fullArgs[7] = "password";
    fullArgs[8] = "-n";
    System.arraycopy(args, 0, fullArgs, 8, args.length);
    System.arraycopy(args, 0, fullArgs, 9, args.length);
    assertEquals(DSConfig.main(fullArgs, false, System.out, System.err), 0);
  }