Move the ConfigFileHandler from the config package to the extensions package.
This is more in-line with the rest of the code conventions that we use, and it
makes it easier to include the config package in what we consider to be our
public API.
OpenDS Issue Number: 805
1 files renamed
41 files modified
| | |
| | | |
| | | cd %DIR_HOME% |
| | | |
| | | %JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.BackUpDB --configClass org.opends.server.config.ConfigFileHandler --configFile "%DIR_HOME%\config\config.ldif" %* |
| | | %JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.BackUpDB --configClass org.opends.server.extensions.ConfigFileHandler --configFile "%DIR_HOME%\config\config.ldif" %* |
| | | |
| | | |
| | | :end |
| | |
| | | |
| | | |
| | | ${JAVA_BIN} ${JAVA_ARGS} org.opends.server.tools.BackUpDB \ |
| | | --configClass org.opends.server.config.ConfigFileHandler \ |
| | | --configClass org.opends.server.extensions.ConfigFileHandler \ |
| | | --configFile ${INSTANCE_ROOT}/config/config.ldif "${@}" |
| | |
| | | |
| | | cd %DIR_HOME% |
| | | |
| | | %JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.ConfigureDS --configClass org.opends.server.config.ConfigFileHandler --configFile "%DIR_HOME%\config\config.ldif" %* |
| | | %JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.ConfigureDS --configClass org.opends.server.extensions.ConfigFileHandler --configFile "%DIR_HOME%\config\config.ldif" %* |
| | | |
| | | |
| | | :end |
| | |
| | | |
| | | |
| | | ${JAVA_BIN} ${JAVA_ARGS} org.opends.server.tools.ConfigureDS \ |
| | | --configClass org.opends.server.config.ConfigFileHandler \ |
| | | --configClass org.opends.server.extensions.ConfigFileHandler \ |
| | | --configFile ${INSTANCE_ROOT}/config/config.ldif "${@}" |
| | |
| | | |
| | | cd %DIR_HOME% |
| | | |
| | | %JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.EncodePassword --configClass org.opends.server.config.ConfigFileHandler --configFile "%DIR_HOME%\config\config.ldif" %* |
| | | %JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.EncodePassword --configClass org.opends.server.extensions.ConfigFileHandler --configFile "%DIR_HOME%\config\config.ldif" %* |
| | | |
| | | |
| | | :end |
| | |
| | | |
| | | |
| | | ${JAVA_BIN} ${JAVA_ARGS} org.opends.server.tools.EncodePassword \ |
| | | --configClass org.opends.server.config.ConfigFileHandler \ |
| | | --configClass org.opends.server.extensions.ConfigFileHandler \ |
| | | --configFile ${INSTANCE_ROOT}/config/config.ldif "${@}" |
| | |
| | | |
| | | cd %DIR_HOME% |
| | | |
| | | %JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.ExportLDIF --configClass org.opends.server.config.ConfigFileHandler --configFile "%DIR_HOME%\config\config.ldif" %* |
| | | %JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.ExportLDIF --configClass org.opends.server.extensions.ConfigFileHandler --configFile "%DIR_HOME%\config\config.ldif" %* |
| | | |
| | | |
| | | :end |
| | |
| | | |
| | | |
| | | ${JAVA_BIN} ${JAVA_ARGS} org.opends.server.tools.ExportLDIF \ |
| | | --configClass org.opends.server.config.ConfigFileHandler \ |
| | | --configClass org.opends.server.extensions.ConfigFileHandler \ |
| | | --configFile ${INSTANCE_ROOT}/config/config.ldif "${@}" |
| | |
| | | |
| | | cd %DIR_HOME% |
| | | |
| | | %JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.ImportLDIF --configClass org.opends.server.config.ConfigFileHandler --configFile "%DIR_HOME%\config\config.ldif" %* |
| | | %JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.ImportLDIF --configClass org.opends.server.extensions.ConfigFileHandler --configFile "%DIR_HOME%\config\config.ldif" %* |
| | | |
| | | |
| | | :end |
| | |
| | | |
| | | |
| | | ${JAVA_BIN} ${JAVA_ARGS} org.opends.server.tools.ImportLDIF \ |
| | | --configClass org.opends.server.config.ConfigFileHandler \ |
| | | --configClass org.opends.server.extensions.ConfigFileHandler \ |
| | | --configFile ${INSTANCE_ROOT}/config/config.ldif "${@}" |
| | |
| | | |
| | | cd %DIR_HOME% |
| | | |
| | | %JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.makeldif.MakeLDIF --configClass org.opends.server.config.ConfigFileHandler --configFile "%DIR_HOME%\config\config.ldif" --resourcePath "%DIR_HOME%\config\MakeLDIF" %* |
| | | %JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.makeldif.MakeLDIF --configClass org.opends.server.extensions.ConfigFileHandler --configFile "%DIR_HOME%\config\config.ldif" --resourcePath "%DIR_HOME%\config\MakeLDIF" %* |
| | | |
| | | |
| | | :end |
| | |
| | | |
| | | |
| | | ${JAVA_BIN} ${JAVA_ARGS} org.opends.server.tools.makeldif.MakeLDIF \ |
| | | --configClass org.opends.server.config.ConfigFileHandler \ |
| | | --configClass org.opends.server.extensions.ConfigFileHandler \ |
| | | --configFile ${INSTANCE_ROOT}/config/config.ldif \ |
| | | --resourcePath ${INSTANCE_ROOT}/config/MakeLDIF "${@}" |
| | |
| | | |
| | | cd %DIR_HOME% |
| | | |
| | | %JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.RestoreDB --configClass org.opends.server.config.ConfigFileHandler --configFile "%DIR_HOME%\config\config.ldif" %* |
| | | %JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.RestoreDB --configClass org.opends.server.extensions.ConfigFileHandler --configFile "%DIR_HOME%\config\config.ldif" %* |
| | | |
| | | |
| | | :end |
| | |
| | | |
| | | |
| | | ${JAVA_BIN} ${JAVA_ARGS} org.opends.server.tools.RestoreDB \ |
| | | --configClass org.opends.server.config.ConfigFileHandler \ |
| | | --configClass org.opends.server.extensions.ConfigFileHandler \ |
| | | --configFile ${INSTANCE_ROOT}/config/config.ldif "${@}" |
| | |
| | | |
| | | cd %DIR_HOME% |
| | | |
| | | %JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.core.DirectoryServer --configClass org.opends.server.config.ConfigFileHandler --configFile "%DIR_HOME%\config\config.ldif" %* |
| | | %JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.core.DirectoryServer --configClass org.opends.server.extensions.ConfigFileHandler --configFile "%DIR_HOME%\config\config.ldif" %* |
| | | |
| | | |
| | | :end |
| | |
| | | shift |
| | | ${JAVA_BIN} ${JAVA_ARGS} \ |
| | | org.opends.server.core.DirectoryServer \ |
| | | --configClass org.opends.server.config.ConfigFileHandler \ |
| | | --configClass org.opends.server.extensions.ConfigFileHandler \ |
| | | --configFile ${INSTANCE_ROOT}/config/config.ldif \ |
| | | "$@" 2>&1 | tee -i -a ${INSTANCE_ROOT}/logs/server.out |
| | | else |
| | | nohup ${JAVA_BIN} ${JAVA_ARGS} \ |
| | | org.opends.server.core.DirectoryServer \ |
| | | --configClass org.opends.server.config.ConfigFileHandler \ |
| | | --configClass org.opends.server.extensions.ConfigFileHandler \ |
| | | --configFile ${INSTANCE_ROOT}/config/config.ldif \ |
| | | "$@" >> ${INSTANCE_ROOT}/logs/server.out 2>&1 & |
| | | fi |
| | |
| | | |
| | | cd %DIR_HOME% |
| | | |
| | | %JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.VerifyIndex --configClass org.opends.server.config.ConfigFileHandler --configFile "%DIR_HOME%\config\config.ldif" %* |
| | | %JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.VerifyIndex --configClass org.opends.server.extensions.ConfigFileHandler --configFile "%DIR_HOME%\config\config.ldif" %* |
| | | |
| | | |
| | | :end |
| | |
| | | |
| | | |
| | | ${JAVA_BIN} ${JAVA_ARGS} org.opends.server.tools.VerifyIndex \ |
| | | --configClass org.opends.server.config.ConfigFileHandler \ |
| | | --configClass org.opends.server.extensions.ConfigFileHandler \ |
| | | --configFile ${INSTANCE_ROOT}/config/config.ldif "${@}" |
| | |
| | | objectClass: top |
| | | objectClass: ds-cfg-backend |
| | | ds-cfg-backend-enabled: true |
| | | ds-cfg-backend-class: org.opends.server.config.ConfigFileHandler |
| | | ds-cfg-backend-class: org.opends.server.extensions.ConfigFileHandler |
| | | ds-cfg-backend-id: config |
| | | ds-cfg-backend-writability-mode: enabled |
| | | ds-cfg-backend-base-dn: cn=config |
| | |
| | | |
| | | |
| | | :setClassPath |
| | | FOR %%x in (%DIR_HOME%\lib\*.jar) DO call "%DIR_HOME%\bin\setcp.bat" %%x |
| | | FOR %%x in ("%DIR_HOME%\lib\*.jar") DO call "%DIR_HOME%\bin\setcp.bat" %%x |
| | | |
| | | cd %DIR_HOME% |
| | | |
| | | %JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.InstallDS --configClass org.opends.server.config.ConfigFileHandler --configFile %DIR_HOME%\config\config.ldif -P setup.bat %* |
| | | %JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.InstallDS --configClass org.opends.server.extensions.ConfigFileHandler --configFile "%DIR_HOME%\config\config.ldif" -P setup.bat %* |
| | | |
| | | |
| | | :end |
| | |
| | | |
| | | |
| | | ${JAVA_BIN} ${JAVA_ARGS} org.opends.server.tools.InstallDS \ |
| | | --configClass org.opends.server.config.ConfigFileHandler \ |
| | | --configClass org.opends.server.extensions.ConfigFileHandler \ |
| | | --configFile ${INSTANCE_ROOT}/config/config.ldif -P ${0} "${@}" |
| | | |
| | |
| | | import org.opends.server.backends.RootDSEBackend; |
| | | import org.opends.server.config.ConfigEntry; |
| | | import org.opends.server.config.ConfigException; |
| | | import org.opends.server.config.ConfigFileHandler; |
| | | import org.opends.server.config.StringConfigAttribute; |
| | | import org.opends.server.config.JMXMBean; |
| | | import org.opends.server.extensions.ConfigFileHandler; |
| | | import org.opends.server.extensions.JMXAlertHandler; |
| | | import org.opends.server.loggers.StartupDebugLogger; |
| | | import org.opends.server.loggers.StartupErrorLogger; |
| File was renamed from opends/src/server/org/opends/server/config/ConfigFileHandler.java |
| | |
| | | * |
| | | * Portions Copyright 2006 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.config; |
| | | package org.opends.server.extensions; |
| | | |
| | | |
| | | |
| | |
| | | import org.opends.server.api.ConfigDeleteListener; |
| | | import org.opends.server.api.ConfigHandler; |
| | | import org.opends.server.api.ConfigurableComponent; |
| | | import org.opends.server.config.ConfigEntry; |
| | | import org.opends.server.config.ConfigException; |
| | | import org.opends.server.config.JMXMBean; |
| | | import org.opends.server.core.AddOperation; |
| | | import org.opends.server.core.DeleteOperation; |
| | | import org.opends.server.core.DirectoryServer; |
| | |
| | | * The fully-qualified name of this class for debugging purposes. |
| | | */ |
| | | private static final String CLASS_NAME = |
| | | "org.opends.server.config.ConfigFileHandler"; |
| | | "org.opends.server.extensions.ConfigFileHandler"; |
| | | |
| | | |
| | | |
| | |
| | | |
| | | |
| | | |
| | | import org.opends.server.config.ConfigFileHandler; |
| | | import org.opends.server.extensions.ConfigFileHandler; |
| | | |
| | | import static org.opends.server.messages.MessageHandler.*; |
| | | import static org.opends.server.tools.ToolConstants.*; |
| | |
| | | import org.opends.server.api.Backend; |
| | | import org.opends.server.config.ConfigEntry; |
| | | import org.opends.server.config.ConfigException; |
| | | import org.opends.server.config.ConfigFileHandler; |
| | | import org.opends.server.config.DNConfigAttribute; |
| | | import org.opends.server.config.StringConfigAttribute; |
| | | import org.opends.server.core.CoreConfigManager; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.core.LockFileManager; |
| | | import org.opends.server.extensions.ConfigFileHandler; |
| | | import org.opends.server.loggers.StartupErrorLogger; |
| | | import org.opends.server.types.BackupConfig; |
| | | import org.opends.server.types.BackupDirectory; |
| | |
| | | |
| | | import org.opends.server.api.ConfigHandler; |
| | | import org.opends.server.config.ConfigEntry; |
| | | import org.opends.server.config.ConfigFileHandler; |
| | | import org.opends.server.config.DNConfigAttribute; |
| | | import org.opends.server.config.IntegerConfigAttribute; |
| | | import org.opends.server.config.StringConfigAttribute; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.core.LockFileManager; |
| | | import org.opends.server.extensions.ConfigFileHandler; |
| | | import org.opends.server.extensions.SaltedSHA512PasswordStorageScheme; |
| | | import org.opends.server.protocols.ldap.LDAPResultCode; |
| | | import org.opends.server.types.DirectoryException; |
| | |
| | | |
| | | import org.opends.server.api.PasswordStorageScheme; |
| | | import org.opends.server.config.ConfigException; |
| | | import org.opends.server.config.ConfigFileHandler; |
| | | import org.opends.server.core.CoreConfigManager; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.core.PasswordStorageSchemeConfigManager; |
| | | import org.opends.server.extensions.ConfigFileHandler; |
| | | import org.opends.server.protocols.asn1.ASN1OctetString; |
| | | import org.opends.server.schema.AuthPasswordSyntax; |
| | | import org.opends.server.types.ByteString; |
| | |
| | | import org.opends.server.api.plugin.PluginType; |
| | | import org.opends.server.config.ConfigEntry; |
| | | import org.opends.server.config.ConfigException; |
| | | import org.opends.server.config.ConfigFileHandler; |
| | | import org.opends.server.config.DNConfigAttribute; |
| | | import org.opends.server.config.StringConfigAttribute; |
| | | import org.opends.server.core.CoreConfigManager; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.core.LockFileManager; |
| | | import org.opends.server.extensions.ConfigFileHandler; |
| | | import org.opends.server.loggers.StartupErrorLogger; |
| | | import org.opends.server.types.AttributeType; |
| | | import org.opends.server.types.DirectoryException; |
| | |
| | | import org.opends.server.api.plugin.PluginType; |
| | | import org.opends.server.config.ConfigEntry; |
| | | import org.opends.server.config.ConfigException; |
| | | import org.opends.server.config.ConfigFileHandler; |
| | | import org.opends.server.config.DNConfigAttribute; |
| | | import org.opends.server.config.StringConfigAttribute; |
| | | import org.opends.server.core.CoreConfigManager; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.core.LockFileManager; |
| | | import org.opends.server.extensions.ConfigFileHandler; |
| | | import org.opends.server.loggers.StartupErrorLogger; |
| | | import org.opends.server.tools.makeldif.TemplateFile; |
| | | import org.opends.server.types.AttributeType; |
| | |
| | | import java.util.Arrays; |
| | | import java.util.LinkedList; |
| | | |
| | | import org.opends.server.config.ConfigFileHandler; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.extensions.ConfigFileHandler; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.ExistingFileBehavior; |
| | | import org.opends.server.types.LDIFExportConfig; |
| | |
| | | import java.util.List; |
| | | import java.util.TreeMap; |
| | | |
| | | import org.opends.server.config.ConfigFileHandler; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.extensions.ConfigFileHandler; |
| | | import org.opends.server.protocols.ldap.LDAPResultCode; |
| | | import org.opends.server.types.Attribute; |
| | | import org.opends.server.types.AttributeType; |
| | |
| | | import java.util.Map; |
| | | import java.util.TreeMap; |
| | | |
| | | import org.opends.server.config.ConfigFileHandler; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.extensions.ConfigFileHandler; |
| | | import org.opends.server.protocols.ldap.LDAPException; |
| | | import org.opends.server.protocols.ldap.LDAPModification; |
| | | import org.opends.server.protocols.ldap.LDAPResultCode; |
| | |
| | | import java.util.LinkedHashSet; |
| | | import java.util.LinkedList; |
| | | |
| | | import org.opends.server.config.ConfigFileHandler; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.extensions.ConfigFileHandler; |
| | | import org.opends.server.protocols.ldap.LDAPResultCode; |
| | | import org.opends.server.types.AttributeType; |
| | | import org.opends.server.types.DN; |
| | |
| | | import org.opends.server.api.Backend; |
| | | import org.opends.server.config.ConfigEntry; |
| | | import org.opends.server.config.ConfigException; |
| | | import org.opends.server.config.ConfigFileHandler; |
| | | import org.opends.server.config.DNConfigAttribute; |
| | | import org.opends.server.config.StringConfigAttribute; |
| | | import org.opends.server.core.CoreConfigManager; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.core.LockFileManager; |
| | | import org.opends.server.extensions.ConfigFileHandler; |
| | | import org.opends.server.loggers.StartupErrorLogger; |
| | | import org.opends.server.types.BackupDirectory; |
| | | import org.opends.server.types.BackupInfo; |
| | |
| | | import org.opends.server.backends.jeb.VerifyConfig; |
| | | import org.opends.server.config.ConfigEntry; |
| | | import org.opends.server.config.ConfigException; |
| | | import org.opends.server.config.ConfigFileHandler; |
| | | import org.opends.server.config.DNConfigAttribute; |
| | | import org.opends.server.config.StringConfigAttribute; |
| | | import org.opends.server.core.CoreConfigManager; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.core.LockFileManager; |
| | | import org.opends.server.extensions.ConfigFileHandler; |
| | | import org.opends.server.loggers.StartupErrorLogger; |
| | | import org.opends.server.types.DirectoryException; |
| | | import org.opends.server.types.DN; |
| | |
| | | |
| | | <!-- provide the arguments here --> |
| | | <arg value="--configClass" /> |
| | | <arg value="org.opends.server.config.ConfigFileHandler" /> |
| | | <arg value="org.opends.server.extensions.ConfigFileHandler" /> |
| | | <arg value="--configFile" /> |
| | | <arg value="${full.install.dir}/config/config.ldif" /> |
| | | <arg line="-p ${port.ldap}" /> |
| | |
| | | System.out.println("*********************************************"); |
| | | System.out.println("Backend Startup test 1"); |
| | | String datafile = integration_test_home + "/backend/data/backend_start.ldif"; |
| | | String import_args[] = {"--configClass", "org.opends.server.config.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", datafile}; |
| | | String import_args[] = {"--configClass", "org.opends.server.extensions.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", datafile}; |
| | | |
| | | stopOpenDS(dsee_home, port); |
| | | |
| | |
| | | System.out.println("*********************************************"); |
| | | System.out.println("Backup Test 1"); |
| | | String datafile = backupDir + "/backup1"; |
| | | String backup_args[] = {"--configClass", "org.opends.server.config.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--backupDirectory", datafile}; |
| | | String backup_args[] = {"--configClass", "org.opends.server.extensions.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--backupDirectory", datafile}; |
| | | |
| | | ds_output.redirectOutput(logDir, "BackupTest1.txt"); |
| | | int retCode = BackUpDB.mainBackUpDB(backup_args); |
| | |
| | | ds_output.resetOutput(); |
| | | |
| | | datafile = backupDir + "/backup1"; |
| | | String backup_args[] = {"--configClass", "org.opends.server.config.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--backupDirectory", datafile, "--incremental"}; |
| | | String backup_args[] = {"--configClass", "org.opends.server.extensions.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--backupDirectory", datafile, "--incremental"}; |
| | | |
| | | ds_output.redirectOutput(logDir, "BackupTest2.txt"); |
| | | int retCode = BackUpDB.mainBackUpDB(backup_args); |
| | |
| | | GregorianCalendar cal = new GregorianCalendar(); |
| | | backup_id = Integer.toString(cal.get(Calendar.MILLISECOND)); |
| | | String datafile = backupDir + "/backup2"; |
| | | String backup_args[] = {"--configClass", "org.opends.server.config.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--backupDirectory", datafile, "--backupID", backup_id}; |
| | | String backup_args[] = {"--configClass", "org.opends.server.extensions.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--backupDirectory", datafile, "--backupID", backup_id}; |
| | | |
| | | ds_output.redirectOutput(logDir, "BackupTest3.txt"); |
| | | int retCode = BackUpDB.mainBackUpDB(backup_args); |
| | |
| | | ds_output.resetOutput(); |
| | | |
| | | datafile = backupDir + "/backup2"; |
| | | String backup_args[] = {"--configClass", "org.opends.server.config.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--backupDirectory", datafile, "--incremental", "--incrementalBaseID", backup_id}; |
| | | String backup_args[] = {"--configClass", "org.opends.server.extensions.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--backupDirectory", datafile, "--incremental", "--incrementalBaseID", backup_id}; |
| | | |
| | | ds_output.redirectOutput(logDir, "BackupTest4.txt"); |
| | | int retCode = BackUpDB.mainBackUpDB(backup_args); |
| | |
| | | System.out.println("*********************************************"); |
| | | System.out.println("Backup Test 5"); |
| | | String datafile = backupDir + "/backup1"; |
| | | String backup_args[] = {"--configClass", "org.opends.server.config.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--backupDirectory", datafile, "--compress"}; |
| | | String backup_args[] = {"--configClass", "org.opends.server.extensions.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--backupDirectory", datafile, "--compress"}; |
| | | |
| | | ds_output.redirectOutput(logDir, "BackupTest5.txt"); |
| | | int retCode = BackUpDB.mainBackUpDB(backup_args); |
| | |
| | | { |
| | | System.out.println("*********************************************"); |
| | | System.out.println("Export Test 1"); |
| | | String export_args[] = {"--configClass", "org.opends.server.config.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", exportDir + "/export_test_1_and_2.out"}; |
| | | String export_args[] = {"--configClass", "org.opends.server.extensions.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", exportDir + "/export_test_1_and_2.out"}; |
| | | |
| | | ds_output.redirectOutput(logDir, "ExportTest1.txt"); |
| | | int retCode = ExportLDIF.mainExportLDIF(export_args); |
| | |
| | | { |
| | | System.out.println("*********************************************"); |
| | | System.out.println("Export Test 2"); |
| | | String export_args[] = {"--configClass", "org.opends.server.config.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", exportDir + "/export_test_1_and_2.out", "--appendToLDIF"}; |
| | | String export_args[] = {"--configClass", "org.opends.server.extensions.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", exportDir + "/export_test_1_and_2.out", "--appendToLDIF"}; |
| | | |
| | | ds_output.redirectOutput(logDir, "ExportTest2.txt"); |
| | | int retCode = ExportLDIF.mainExportLDIF(export_args); |
| | |
| | | { |
| | | System.out.println("*********************************************"); |
| | | System.out.println("Export Test 3"); |
| | | String export_args[] = {"--configClass", "org.opends.server.config.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", exportDir + "/export_test_3.out", "--includeAttribute", "telephoneNumber"}; |
| | | String export_args[] = {"--configClass", "org.opends.server.extensions.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", exportDir + "/export_test_3.out", "--includeAttribute", "telephoneNumber"}; |
| | | |
| | | ds_output.redirectOutput(logDir, "ExportTest3.txt"); |
| | | int retCode = ExportLDIF.mainExportLDIF(export_args); |
| | |
| | | { |
| | | System.out.println("*********************************************"); |
| | | System.out.println("Export Test 4"); |
| | | String export_args[] = {"--configClass", "org.opends.server.config.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", exportDir + "/export_test_4.out", "--includeAttribute", "telephonenumber", "--includeAttribute", "mail", "--includeAttribute", "roomnumber"}; |
| | | String export_args[] = {"--configClass", "org.opends.server.extensions.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", exportDir + "/export_test_4.out", "--includeAttribute", "telephonenumber", "--includeAttribute", "mail", "--includeAttribute", "roomnumber"}; |
| | | |
| | | ds_output.redirectOutput(logDir, "ExportTest4.txt"); |
| | | int retCode = ExportLDIF.mainExportLDIF(export_args); |
| | |
| | | { |
| | | System.out.println("*********************************************"); |
| | | System.out.println("Export Test 5"); |
| | | String export_args[] = {"--configClass", "org.opends.server.config.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", exportDir + "/export_test_5.out", "--excludeAttribute", "telephonenumber"}; |
| | | String export_args[] = {"--configClass", "org.opends.server.extensions.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", exportDir + "/export_test_5.out", "--excludeAttribute", "telephonenumber"}; |
| | | |
| | | ds_output.redirectOutput(logDir, "ExportTest5.txt"); |
| | | int retCode = ExportLDIF.mainExportLDIF(export_args); |
| | |
| | | { |
| | | System.out.println("*********************************************"); |
| | | System.out.println("Export Test 6"); |
| | | String export_args[] = {"--configClass", "org.opends.server.config.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", exportDir + "/export_test_6.out", "--excludeAttribute", "telephonenumber", "--excludeAttribute", "mail", "--excludeAttribute", "roomnumber"}; |
| | | String export_args[] = {"--configClass", "org.opends.server.extensions.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", exportDir + "/export_test_6.out", "--excludeAttribute", "telephonenumber", "--excludeAttribute", "mail", "--excludeAttribute", "roomnumber"}; |
| | | |
| | | ds_output.redirectOutput(logDir, "ExportTest6.txt"); |
| | | int retCode = ExportLDIF.mainExportLDIF(export_args); |
| | |
| | | { |
| | | System.out.println("*********************************************"); |
| | | System.out.println("Export Test 7"); |
| | | String export_args[] = {"--configClass", "org.opends.server.config.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", exportDir + "/export_test_7.out", "--includeFilter", "(&(uid=jwalker)(roomnumber=*))"}; |
| | | String export_args[] = {"--configClass", "org.opends.server.extensions.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", exportDir + "/export_test_7.out", "--includeFilter", "(&(uid=jwalker)(roomnumber=*))"}; |
| | | |
| | | ds_output.redirectOutput(logDir, "ExportTest7.txt"); |
| | | int retCode = ExportLDIF.mainExportLDIF(export_args); |
| | |
| | | { |
| | | System.out.println("*********************************************"); |
| | | System.out.println("Export Test 8"); |
| | | String export_args[] = {"--configClass", "org.opends.server.config.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", exportDir + "/export_test_8.out", "--includeFilter", "(&(uid=jwalker)(roomnumber=*))", "--includeFilter", "(&(uid=jwalker)(l=Cupertino))", "--includeFilter", "(&(uid=jwallace)(roomnumber=*))"}; |
| | | String export_args[] = {"--configClass", "org.opends.server.extensions.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", exportDir + "/export_test_8.out", "--includeFilter", "(&(uid=jwalker)(roomnumber=*))", "--includeFilter", "(&(uid=jwalker)(l=Cupertino))", "--includeFilter", "(&(uid=jwallace)(roomnumber=*))"}; |
| | | |
| | | ds_output.redirectOutput(logDir, "ExportTest8.txt"); |
| | | int retCode = ExportLDIF.mainExportLDIF(export_args); |
| | |
| | | { |
| | | System.out.println("*********************************************"); |
| | | System.out.println("Export Test 9"); |
| | | String export_args[] = {"--configClass", "org.opends.server.config.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", exportDir + "/export_test_9.out", "--excludeFilter", "(&(uid=jwalker)(roomnumber=*))"}; |
| | | String export_args[] = {"--configClass", "org.opends.server.extensions.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", exportDir + "/export_test_9.out", "--excludeFilter", "(&(uid=jwalker)(roomnumber=*))"}; |
| | | |
| | | ds_output.redirectOutput(logDir, "ExportTest9.txt"); |
| | | int retCode = ExportLDIF.mainExportLDIF(export_args); |
| | |
| | | { |
| | | System.out.println("*********************************************"); |
| | | System.out.println("Export Test 10"); |
| | | String export_args[] = {"--configClass", "org.opends.server.config.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", exportDir + "//export_test_10.out", "--excludeFilter", "(&(uid=jwalker)(roomnumber=*))", "--excludeFilter", "(&(uid=jwalker)(l=Cupertino))", "--excludeFilter", "(&(uid=jwallace)(roomnumber=*))"}; |
| | | String export_args[] = {"--configClass", "org.opends.server.extensions.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", exportDir + "//export_test_10.out", "--excludeFilter", "(&(uid=jwalker)(roomnumber=*))", "--excludeFilter", "(&(uid=jwalker)(l=Cupertino))", "--excludeFilter", "(&(uid=jwallace)(roomnumber=*))"}; |
| | | |
| | | ds_output.redirectOutput(logDir, "ExportTest10.txt"); |
| | | int retCode = ExportLDIF.mainExportLDIF(export_args); |
| | |
| | | { |
| | | System.out.println("*********************************************"); |
| | | System.out.println("Export Test 11"); |
| | | String export_args[] = {"--configClass", "org.opends.server.config.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", exportDir + "/export_test_11.out", "--includeBranch", "o=backend tests,dc=example,dc=com"}; |
| | | String export_args[] = {"--configClass", "org.opends.server.extensions.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", exportDir + "/export_test_11.out", "--includeBranch", "o=backend tests,dc=example,dc=com"}; |
| | | |
| | | ds_output.redirectOutput(logDir, "ExportTest11.txt"); |
| | | int retCode = ExportLDIF.mainExportLDIF(export_args); |
| | |
| | | { |
| | | System.out.println("*********************************************"); |
| | | System.out.println("Export Test 12"); |
| | | String export_args[] = {"--configClass", "org.opends.server.config.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", exportDir + "/export_test_12.out", "--excludeBranch", "ou=People,o=backend tests,dc=example,dc=com"}; |
| | | String export_args[] = {"--configClass", "org.opends.server.extensions.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", exportDir + "/export_test_12.out", "--excludeBranch", "ou=People,o=backend tests,dc=example,dc=com"}; |
| | | |
| | | ds_output.redirectOutput(logDir, "ExportTest12.txt"); |
| | | int retCode = ExportLDIF.mainExportLDIF(export_args); |
| | |
| | | { |
| | | System.out.println("*********************************************"); |
| | | System.out.println("Export Test 13"); |
| | | String export_args[] = {"--configClass", "org.opends.server.config.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", exportDir + "/export_test_13.out", "--excludeFilter", "(&(uid=jwalker)(roomnumber=*))", "--includeAttribute", "telephonenumber", "--includeBranch", "o=backend tests,dc=example,dc=com"}; |
| | | String export_args[] = {"--configClass", "org.opends.server.extensions.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", exportDir + "/export_test_13.out", "--excludeFilter", "(&(uid=jwalker)(roomnumber=*))", "--includeAttribute", "telephonenumber", "--includeBranch", "o=backend tests,dc=example,dc=com"}; |
| | | |
| | | ds_output.redirectOutput(logDir, "ExportTest13.txt"); |
| | | int retCode = ExportLDIF.mainExportLDIF(export_args); |
| | |
| | | { |
| | | System.out.println("*********************************************"); |
| | | System.out.println("Export Test 14"); |
| | | String export_args[] = {"--configClass", "org.opends.server.config.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", exportDir + "/export_test_14.out", "--includeFilter", "(&(uid=jwalker)(roomnumber=*))", "--excludeAttribute", "telephonenumber", "--excludeBranch", "ou=groups,o=backend tests,dc=example,dc=com"}; |
| | | String export_args[] = {"--configClass", "org.opends.server.extensions.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", exportDir + "/export_test_14.out", "--includeFilter", "(&(uid=jwalker)(roomnumber=*))", "--excludeAttribute", "telephonenumber", "--excludeBranch", "ou=groups,o=backend tests,dc=example,dc=com"}; |
| | | |
| | | ds_output.redirectOutput(logDir, "ExportTest14.txt"); |
| | | int retCode = ExportLDIF.mainExportLDIF(export_args); |
| | |
| | | { |
| | | System.out.println("*********************************************"); |
| | | System.out.println("Export Test 15"); |
| | | String export_args[] = {"--configClass", "org.opends.server.config.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", exportDir + "/export_test_15.out", "--compressLDIF"}; |
| | | String export_args[] = {"--configClass", "org.opends.server.extensions.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", exportDir + "/export_test_15.out", "--compressLDIF"}; |
| | | |
| | | ds_output.redirectOutput(logDir, "ExportTest15.txt"); |
| | | int retCode = ExportLDIF.mainExportLDIF(export_args); |
| | |
| | | System.out.println("*********************************************"); |
| | | System.out.println("Import Test 1"); |
| | | String datafile = integration_test_home + "/backend/data/import.ldif.01"; |
| | | String import_args[] = {"--configClass", "org.opends.server.config.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", datafile}; |
| | | String import_args[] = {"--configClass", "org.opends.server.extensions.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", datafile}; |
| | | |
| | | stopOpenDS(dsee_home, port); |
| | | |
| | |
| | | System.out.println("*********************************************"); |
| | | System.out.println("Import Test 2"); |
| | | String datafile = integration_test_home + "/backend/data/import.ldif.02"; |
| | | String import_args[] = {"--configClass", "org.opends.server.config.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", datafile, "--append"}; |
| | | String import_args[] = {"--configClass", "org.opends.server.extensions.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", datafile, "--append"}; |
| | | stopOpenDS(dsee_home, port); |
| | | |
| | | ds_output.redirectOutput(logDir, "ImportTest2.txt"); |
| | |
| | | System.out.println("*********************************************"); |
| | | System.out.println("Import Test 3"); |
| | | String datafile = integration_test_home + "/backend/data/import.ldif.03"; |
| | | String import_args[] = {"--configClass", "org.opends.server.config.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", datafile, "--includeAttribute", "sn", "--includeAttribute", "cn", "--includeAttribute", "ou", "--append"}; |
| | | String import_args[] = {"--configClass", "org.opends.server.extensions.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", datafile, "--includeAttribute", "sn", "--includeAttribute", "cn", "--includeAttribute", "ou", "--append"}; |
| | | |
| | | stopOpenDS(dsee_home, port); |
| | | |
| | |
| | | System.out.println("*********************************************"); |
| | | System.out.println("Import Test 4"); |
| | | String datafile = integration_test_home + "/backend/data/import.ldif.04"; |
| | | String import_args[] = {"--configClass", "org.opends.server.config.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", datafile, "--excludeAttribute", "telephonenumber", "--append"}; |
| | | String import_args[] = {"--configClass", "org.opends.server.extensions.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", datafile, "--excludeAttribute", "telephonenumber", "--append"}; |
| | | |
| | | stopOpenDS(dsee_home, port); |
| | | |
| | |
| | | System.out.println("*********************************************"); |
| | | System.out.println("Import Test 5"); |
| | | String datafile = integration_test_home + "/backend/data/import.ldif.05"; |
| | | String import_args[] = {"--configClass", "org.opends.server.config.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", datafile, "--excludeAttribute", "telephonenumber", "--excludeAttribute", "mail", "--excludeAttribute", "roomnumber", "--append"}; |
| | | String import_args[] = {"--configClass", "org.opends.server.extensions.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", datafile, "--excludeAttribute", "telephonenumber", "--excludeAttribute", "mail", "--excludeAttribute", "roomnumber", "--append"}; |
| | | |
| | | stopOpenDS(dsee_home, port); |
| | | |
| | |
| | | System.out.println("*********************************************"); |
| | | System.out.println("Import Test 6"); |
| | | String datafile = integration_test_home + "/backend/data/import.ldif.06"; |
| | | String import_args[] = {"--configClass", "org.opends.server.config.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", datafile, "--includeFilter", "(&(uid=prigden6)(telephonenumber=*))", "--append"}; |
| | | String import_args[] = {"--configClass", "org.opends.server.extensions.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", datafile, "--includeFilter", "(&(uid=prigden6)(telephonenumber=*))", "--append"}; |
| | | |
| | | stopOpenDS(dsee_home, port); |
| | | |
| | |
| | | System.out.println("*********************************************"); |
| | | System.out.println("Import Test 7"); |
| | | String datafile = integration_test_home + "/backend/data/import.ldif.07"; |
| | | String import_args[] = {"--configClass", "org.opends.server.config.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", datafile, "--includeFilter", "(&(uid=prigden7)(telephonenumber=*))", "--includeFilter", "(&(uid=prigden7)(l=Sunnyvale))", "--includeFilter", "(&(uid=brigden7)(roomnumber=*))", "--append"}; |
| | | String import_args[] = {"--configClass", "org.opends.server.extensions.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", datafile, "--includeFilter", "(&(uid=prigden7)(telephonenumber=*))", "--includeFilter", "(&(uid=prigden7)(l=Sunnyvale))", "--includeFilter", "(&(uid=brigden7)(roomnumber=*))", "--append"}; |
| | | |
| | | stopOpenDS(dsee_home, port); |
| | | |
| | |
| | | System.out.println("*********************************************"); |
| | | System.out.println("Import Test 8"); |
| | | String datafile = integration_test_home + "/backend/data/import.ldif.08"; |
| | | String import_args[] = {"--configClass", "org.opends.server.config.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", datafile, "--excludeFilter", "(&(uid=prigden8)(telephonenumber=*))", "--append"}; |
| | | String import_args[] = {"--configClass", "org.opends.server.extensions.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", datafile, "--excludeFilter", "(&(uid=prigden8)(telephonenumber=*))", "--append"}; |
| | | |
| | | stopOpenDS(dsee_home, port); |
| | | |
| | |
| | | System.out.println("*********************************************"); |
| | | System.out.println("Import Test 9"); |
| | | String datafile = integration_test_home + "/backend/data/import.ldif.09"; |
| | | String import_args[] = {"--configClass", "org.opends.server.config.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", datafile, "--excludeFilter", "(&(uid=prigden9)(telephonenumber=*))", "--excludeFilter", "(&(uid=prigden9)(l=Sunnyvale))", "--excludeFilter", "(&(uid=brigden9)(roomnumber=*))", "--append"}; |
| | | String import_args[] = {"--configClass", "org.opends.server.extensions.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", datafile, "--excludeFilter", "(&(uid=prigden9)(telephonenumber=*))", "--excludeFilter", "(&(uid=prigden9)(l=Sunnyvale))", "--excludeFilter", "(&(uid=brigden9)(roomnumber=*))", "--append"}; |
| | | |
| | | stopOpenDS(dsee_home, port); |
| | | |
| | |
| | | System.out.println("Import Test 10"); |
| | | String datafile = integration_test_home + "/backend/data/import.ldif.10"; |
| | | String branch = "o=branch test two, o=import tests, dc=example,dc=com"; |
| | | String import_args[] = {"--configClass", "org.opends.server.config.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", datafile, "--includeBranch", branch, "--append"}; |
| | | String import_args[] = {"--configClass", "org.opends.server.extensions.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", datafile, "--includeBranch", branch, "--append"}; |
| | | |
| | | stopOpenDS(dsee_home, port); |
| | | |
| | |
| | | System.out.println("Import Test 11"); |
| | | String datafile = integration_test_home + "/backend/data/import.ldif.11"; |
| | | String branch = "o=branch test four, o=import tests, dc=example,dc=com"; |
| | | String import_args[] = {"--configClass", "org.opends.server.config.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", datafile, "--excludeBranch", branch, "--append"}; |
| | | String import_args[] = {"--configClass", "org.opends.server.extensions.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", datafile, "--excludeBranch", branch, "--append"}; |
| | | |
| | | stopOpenDS(dsee_home, port); |
| | | |
| | |
| | | System.out.println("Import Test 12"); |
| | | String datafile = integration_test_home + "/backend/data/import.ldif.12"; |
| | | String branch = "o=branch test six, o=import tests, dc=example,dc=com"; |
| | | String import_args[] = {"--configClass", "org.opends.server.config.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", datafile, "--excludeFilter", "(&(uid=prigden)(roomnumber=*))", "--excludeAttribute", "telephonenumber", "--includeBranch", branch, "--append"}; |
| | | String import_args[] = {"--configClass", "org.opends.server.extensions.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", datafile, "--excludeFilter", "(&(uid=prigden)(roomnumber=*))", "--excludeAttribute", "telephonenumber", "--includeBranch", branch, "--append"}; |
| | | |
| | | stopOpenDS(dsee_home, port); |
| | | |
| | |
| | | |
| | | datafile = integration_test_home + "/backend/data/import.ldif.13"; |
| | | String branch = "o=branch test eight, o=import tests, dc=example,dc=com"; |
| | | String import_args[] = {"--configClass", "org.opends.server.config.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", datafile, "--includeFilter", "(&(uid=prigden)(roomnumber=*))", "--excludeAttribute", "telephonenumber", "--excludeBranch", branch, "--append"}; |
| | | String import_args[] = {"--configClass", "org.opends.server.extensions.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", datafile, "--includeFilter", "(&(uid=prigden)(roomnumber=*))", "--excludeAttribute", "telephonenumber", "--excludeBranch", branch, "--append"}; |
| | | stopOpenDS(dsee_home, port); |
| | | |
| | | ds_output.redirectOutput(logDir, "ImportTest13.txt"); |
| | |
| | | System.out.println("*********************************************"); |
| | | System.out.println("Import Test 14"); |
| | | String datafile = integration_test_home + "/backend/data/import.compressed.ldif"; |
| | | String import_args[] = {"--configClass", "org.opends.server.config.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", datafile, "--isCompressed", "--append"}; |
| | | String import_args[] = {"--configClass", "org.opends.server.extensions.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backendID", "userRoot", "--ldifFile", datafile, "--isCompressed", "--append"}; |
| | | |
| | | stopOpenDS(dsee_home, port); |
| | | |
| | |
| | | System.out.println("*********************************************"); |
| | | System.out.println("Restore Test 1"); |
| | | String datafile = integration_test_home + "/backend/data/restore"; |
| | | String restore_args[] = {"--configClass", "org.opends.server.config.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backupDirectory", datafile}; |
| | | String restore_args[] = {"--configClass", "org.opends.server.extensions.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backupDirectory", datafile}; |
| | | |
| | | stopOpenDS(dsee_home, port); |
| | | |
| | |
| | | System.out.println("*********************************************"); |
| | | System.out.println("Restore Test 2"); |
| | | String datafile = integration_test_home + "/backend/data/restore.compressed"; |
| | | String restore_args[] = {"--configClass", "org.opends.server.config.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backupDirectory", datafile}; |
| | | String restore_args[] = {"--configClass", "org.opends.server.extensions.ConfigFileHandler", "--configFile", dsee_home + "/config/config.ldif", "--backupDirectory", datafile}; |
| | | |
| | | stopOpenDS(dsee_home, port); |
| | | |
| | |
| | | import org.opends.server.backends.MemoryBackend; |
| | | import org.opends.server.backends.jeb.BackendImpl; |
| | | import org.opends.server.config.ConfigException; |
| | | import org.opends.server.config.ConfigFileHandler; |
| | | import org.opends.server.config.ConfigEntry; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.core.LockFileManager; |
| | | import org.opends.server.extensions.ConfigFileHandler; |
| | | import org.opends.server.loggers.Error; |
| | | import org.opends.server.loggers.Debug; |
| | | import org.opends.server.plugins.InvocationCounterPlugin; |