From 34512854b1716fff8cd71c55c1e37922f8aaf80c Mon Sep 17 00:00:00 2001 From: Sankalp Sanand Date: Thu, 14 Sep 2023 08:50:54 -0400 Subject: [PATCH] fixed tests --- .../file_transfer/strategies/rsync_strategy_test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/covalent_tests/file_transfer/strategies/rsync_strategy_test.py b/tests/covalent_tests/file_transfer/strategies/rsync_strategy_test.py index d1cb035c4..9bdd88e9e 100644 --- a/tests/covalent_tests/file_transfer/strategies/rsync_strategy_test.py +++ b/tests/covalent_tests/file_transfer/strategies/rsync_strategy_test.py @@ -141,18 +141,18 @@ def test_get_ssh_rsync_cmd_with_ssh_key(self, mocker): # commands take the form of rsync -s ssh ... [source] [destination] assert ( upload_cmd_with_key - == f'rsync -e "ssh -i {private_key_path}" {self.MOCK_LOCAL_FILEPATH} {self.MOCK_USER}@{self.MOCK_HOST}:{self.MOCK_REMOTE_FILEPATH}' + == f'rsync -ae "ssh -i {private_key_path}" {self.MOCK_LOCAL_FILEPATH} {self.MOCK_USER}@{self.MOCK_HOST}:{self.MOCK_REMOTE_FILEPATH}' ) assert ( download_cmd_with_key - == f'rsync -e "ssh -i {private_key_path}" {self.MOCK_USER}@{self.MOCK_HOST}:{self.MOCK_REMOTE_FILEPATH} {self.MOCK_LOCAL_FILEPATH}' + == f'rsync -ae "ssh -i {private_key_path}" {self.MOCK_USER}@{self.MOCK_HOST}:{self.MOCK_REMOTE_FILEPATH} {self.MOCK_LOCAL_FILEPATH}' ) assert ( upload_cmd_without_key - == f"rsync -e ssh {self.MOCK_LOCAL_FILEPATH} {self.MOCK_USER}@{self.MOCK_HOST}:{self.MOCK_REMOTE_FILEPATH}" + == f"rsync -ae ssh {self.MOCK_LOCAL_FILEPATH} {self.MOCK_USER}@{self.MOCK_HOST}:{self.MOCK_REMOTE_FILEPATH}" ) assert ( download_cmd_without_key - == f"rsync -e ssh {self.MOCK_USER}@{self.MOCK_HOST}:{self.MOCK_REMOTE_FILEPATH} {self.MOCK_LOCAL_FILEPATH}" + == f"rsync -ae ssh {self.MOCK_USER}@{self.MOCK_HOST}:{self.MOCK_REMOTE_FILEPATH} {self.MOCK_LOCAL_FILEPATH}" )