Merge "Modified restore path directory to avoid sudo"
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
@@ -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")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user