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

el_kaboing
06.12.2006 1fd14d363642cd184a569f764c26cc10c67246fc
Fixed a bug where the files for the backup tasks went to /tmp instead of the user define variable, exportDir.
2 files modified
8 ■■■■ changed files
opends/tests/integration-tests-testng/src/server/org/opends/server/integration/backend/BackupTasksTests.java 6 ●●●● patch | view | raw | blame | history
opends/tests/integration-tests-testng/src/server/org/opends/server/integration/backend/data/add_task_backup.ldif 2 ●●● patch | view | raw | blame | history
opends/tests/integration-tests-testng/src/server/org/opends/server/integration/backend/BackupTasksTests.java
@@ -36,9 +36,9 @@
 */
public class BackupTasksTests extends BackendTests
{
  @Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
  @Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir", "exportDir" })
  @Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.backend.BackupTests.testBackup5" })
  public void testBackupTasks1(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
  public void testBackupTasks1(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir, String exportDir) throws Exception
  {
    System.out.println("*********************************************");
    System.out.println("Backup Tasks Test 1");
@@ -53,7 +53,7 @@
      output_str += "ds-task-id: 3\n";
      output_str += "ds-task-class-name: org.opends.server.tasks.BackupTask\n";
      output_str += "ds-task-backup-backend-id: userRoot\n";
      output_str += "ds-backup-directory-path: /tmp/backup_task\n";
      output_str += "ds-backup-directory-path: " + exportDir + "/backup_task\n";
      String backup_task_file = integration_test_home + "/backend/data/add_task_backup.ldif";
      output = new BufferedWriter(new FileWriter(backup_task_file));
opends/tests/integration-tests-testng/src/server/org/opends/server/integration/backend/data/add_task_backup.ldif
@@ -5,4 +5,4 @@
ds-task-id: 3
ds-task-class-name: org.opends.server.tasks.BackupTask
ds-task-backup-backend-id: userRoot
ds-backup-directory-path: /tmp/backup_task
ds-backup-directory-path: /export00/dsee7/src/openDS/trunk/opends/tests/integration-tests-testng/opends/backup_task