mirror of
https://github.com/nestriness/cdc-file-transfer.git
synced 2026-01-30 14:35:37 +02:00
[cdc_stream] Add integration tests (#44)
This CL adds Python integration tests for cdc_stream. To run the tests, you need to supply a Linux host and proper configuration for cdc_stream to work: set CDC_SSH_COMMAND=C:\path\to\ssh.exe <args> set CDC_SCP_COMMAND=C:\path\to\scp.exe <args> C:\python38\python.exe -m integration_tests.cdc_stream.all_tests --binary_path=C:\full\path\to\cdc_stream.exe --user_host=user@host Ran the tests and made sure they worked.
This commit is contained in:
@@ -39,7 +39,8 @@ class CdcRsyncTest(unittest.TestCase):
|
||||
super(CdcRsyncTest, self).setUp()
|
||||
logging.debug('CdcRsyncTest -> setUp')
|
||||
|
||||
utils.initialize(test_base.Flags.binary_path, test_base.Flags.user_host)
|
||||
utils.initialize(test_base.Flags.binary_path, None,
|
||||
test_base.Flags.user_host)
|
||||
|
||||
now_str = datetime.datetime.now().strftime('%Y%m%d-%H%M%S')
|
||||
self.tmp_dir = tempfile.TemporaryDirectory(
|
||||
|
||||
Reference in New Issue
Block a user