mirror of
https://github.com/nestriness/cdc-file-transfer.git
synced 2026-05-02 08:13:08 +03:00
[cdc_rsync] Add initial support for Windows (#51)
Adds a ServerArch class whose job it is to encapsulate differences between Windows and Linux cdc_rsync_servers. It detects the type based on a heuristic in the destination path. This is not fool proof and will probably require further work, like falling back to the other type if the detected one doesn't work. Uses the ServerArch class to determine the different commands to start the server and to deploy the server. Note that the functionality is not well tested on Windows yet, but copying plain files works.
This commit is contained in:
@@ -216,7 +216,7 @@ class ConsistencyTest(test_base.CdcStreamTest):
|
||||
return files, dirs
|
||||
|
||||
def _recreate_data(self, files, dirs):
|
||||
"""Recreate test data and check that it can be read on a gamelet.
|
||||
"""Recreate test data and check that it can be read on the remote instance.
|
||||
|
||||
Args:
|
||||
files (list of strings): List of relative file paths.
|
||||
@@ -396,7 +396,7 @@ class ConsistencyTest(test_base.CdcStreamTest):
|
||||
return sha1sum_local
|
||||
|
||||
def sha1sum_remote_batch(self):
|
||||
"""Calculate sha1sum of files in the streamed directory on the gamelet.
|
||||
"""Calculate sha1sum of files in the remote streamed directory.
|
||||
|
||||
Returns:
|
||||
string: Concatenated sha1 hashes with relative posix file names.
|
||||
@@ -413,7 +413,7 @@ class ConsistencyTest(test_base.CdcStreamTest):
|
||||
return sha1sum_remote
|
||||
|
||||
def _test_random_dir_content(self, files, dirs):
|
||||
"""Check the streamed randomly generated directory's content on gamelet.
|
||||
"""Check the streamed randomly generated remote directory's content.
|
||||
|
||||
Args:
|
||||
files (list of strings): List of relative file paths to check.
|
||||
@@ -460,7 +460,7 @@ class ConsistencyTest(test_base.CdcStreamTest):
|
||||
"""
|
||||
self._mount_with_data(files, dirs)
|
||||
|
||||
# Remove directory on workstation => empty directory on gamelet.
|
||||
# Remove directory on workstation => empty remote directory.
|
||||
utils.get_ssh_command_output(self.ls_cmd)
|
||||
utils.remove_test_directory(self.local_base_dir)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user