From f84fea130c1cf98d10f51efb5c1d91694d40bf0b Mon Sep 17 00:00:00 2001
From: el_kaboing <el_kaboing@localhost>
Date: Wed, 06 Sep 2006 21:12:24 +0000
Subject: [PATCH] Fixed a bug where the files for the backup tasks went to /tmp instead of the user define variable, exportDir.
---
opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/backend/BackupTasksTests.java | 6 +++---
opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/backend/data/add_task_backup.ldif | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/backend/BackupTasksTests.java b/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/backend/BackupTasksTests.java
index 6d15f39..f3cc0bb 100644
--- a/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/backend/BackupTasksTests.java
+++ b/opendj-sdk/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));
diff --git a/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/backend/data/add_task_backup.ldif b/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/backend/data/add_task_backup.ldif
index 202846f..ad1b11a 100644
--- a/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/backend/data/add_task_backup.ldif
+++ b/opendj-sdk/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
--
Gitblit v1.10.0