1 files deleted
4 files modified
| | |
| | | output_str += "ds-task-backup-backend-id: userRoot\n"; |
| | | output_str += "ds-backup-directory-path: " + exportDir + "/backup_task\n"; |
| | | |
| | | String backup_task_file = integration_test_home + "/backend/data/add_task_backup.ldif"; |
| | | String backup_task_file = logDir + "/add_task_backup.ldif"; |
| | | output = new BufferedWriter(new FileWriter(backup_task_file)); |
| | | output.write(output_str); |
| | | } |
| | |
| | | output.close(); |
| | | } |
| | | |
| | | String datafile = integration_test_home + "/backend/data/add_task_backup.ldif"; |
| | | String datafile = logDir + "/add_task_backup.ldif"; |
| | | String mod_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile}; |
| | | |
| | | ds_output.redirectOutput(logDir, "BackupTasksTests1.txt"); |
| | |
| | | output_str += "ds-task-export-backend-id: userRoot\n"; |
| | | output_str += "ds-task-export-include-branch: o=backend tests,dc=example,dc=com\n"; |
| | | |
| | | String export_task_file = integration_test_home + "/backend/data/add_task_export.ldif"; |
| | | String export_task_file = logDir + "/add_task_export.ldif"; |
| | | output = new BufferedWriter(new FileWriter(export_task_file)); |
| | | output.write(output_str); |
| | | } |
| | |
| | | output.close(); |
| | | } |
| | | |
| | | String datafile = integration_test_home + "/backend/data/add_task_export.ldif"; |
| | | String datafile = logDir + "/add_task_export.ldif"; |
| | | String mod_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile}; |
| | | |
| | | ds_output.redirectOutput(logDir, "ExportTasksTests1.txt"); |
| | |
| | | output_str += "ds-task-import-backend-id: userRoot\n"; |
| | | output_str += "ds-task-import-skip-schema-validation: FALSE\n"; |
| | | |
| | | String import_task_file = integration_test_home + "/backend/data/add_task_import.ldif"; |
| | | String import_task_file = logDir + "/add_task_import.ldif"; |
| | | output = new BufferedWriter(new FileWriter(import_task_file)); |
| | | output.write(output_str); |
| | | } |
| | |
| | | output.close(); |
| | | } |
| | | |
| | | String datafile = integration_test_home + "/backend/data/add_task_import.ldif"; |
| | | String datafile = logDir + "/add_task_import.ldif"; |
| | | String mod_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile}; |
| | | |
| | | ds_output.redirectOutput(logDir, "ImportTasksTests1.txt"); |
| | |
| | | output_str += "ds-task-class-name: org.opends.server.tasks.RestoreTask\n"; |
| | | output_str += "ds-backup-directory-path: " + integration_test_home + "/backend/data/restore.task\n"; |
| | | |
| | | String restore_task_file = integration_test_home + "/backend/data/add_task_restore.ldif"; |
| | | String restore_task_file = logDir + "/add_task_restore.ldif"; |
| | | output = new BufferedWriter(new FileWriter(restore_task_file)); |
| | | output.write(output_str); |
| | | } |
| | |
| | | output.close(); |
| | | } |
| | | |
| | | String datafile = integration_test_home + "/backend/data/add_task_restore.ldif"; |
| | | String datafile = logDir + "/add_task_restore.ldif"; |
| | | String mod_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile}; |
| | | ds_output.redirectOutput(logDir, "RestoreTasksTests1.txt"); |
| | | int retCode = LDAPModify.mainModify(mod_args); |