[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:
Lutz Justen
2022-12-08 15:12:14 +01:00
committed by GitHub
parent 668c2ca8df
commit f0ef34db2f
10 changed files with 1357 additions and 21 deletions

View File

@@ -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(