FIX: Restoring could fail due to missing path

This commit is contained in:
Gerhard Schlager
2021-02-09 16:20:11 +01:00
committed by Gerhard Schlager
parent 4f5ea4fbde
commit 0b05302cfe
3 changed files with 7 additions and 3 deletions

View File

@@ -19,7 +19,11 @@ describe BackupRestore::BackupFileHandler do
Dir.mktmpdir do |root_directory|
current_db = RailsMultisite::ConnectionManagement.current_db
file_handler = BackupRestore::BackupFileHandler.new(logger, backup_filename, current_db, root_directory, location)
file_handler = BackupRestore::BackupFileHandler.new(
logger, backup_filename, current_db,
root_tmp_directory: root_directory,
location: location
)
tmp_directory, db_dump_path = file_handler.decompress
expected_tmp_path = File.join(root_directory, "tmp/restores", current_db, "2019-12-24-143148")