Merge "Modified restore path directory to avoid sudo"

This commit is contained in:
Zuul
2025-08-07 16:50:28 +00:00
committed by Gerrit Code Review
2 changed files with 2 additions and 3 deletions

View File

@@ -38,7 +38,6 @@ class RestoreFilesUploadKeywords(BaseKeyword):
if "backup" in file_name: if "backup" in file_name:
local_path = os.path.join(local_backup_folder_path, file_name) local_path = os.path.join(local_backup_folder_path, file_name)
remote_path = os.path.join(remote_backup_dir, file_name) remote_path = os.path.join(remote_backup_dir, file_name)
upload_status = FileKeywords(self.ssh_connection).upload_file(local_path, remote_path) upload_status = FileKeywords(self.ssh_connection).upload_file(local_path, remote_path)
return upload_status return upload_status

View File

@@ -20,7 +20,7 @@ def test_restore():
- Validate restore completion - Validate restore completion
""" """
backup_dir = "/opt/platform-backup/localhost" backup_dir = "/home/sysadmin"
local_backup_folder_path = "/tmp/bnr" local_backup_folder_path = "/tmp/bnr"
ssh_connection = LabConnectionKeywords().get_ssh_for_hostname("controller-0") ssh_connection = LabConnectionKeywords().get_ssh_for_hostname("controller-0")