Skip to content

Commit

Permalink
Host config (#215)
Browse files Browse the repository at this point in the history
* Added HostConfig class and tests. Added parallel client implementation for new host config type and tests.
* Added HostConfig documentation
* Updated paramiko client for new host config type.
* Updated changelog
* Added remote channel closing to scp recv/send.
* Re-did session init and authentication methods to avoid sharing session in threads.
* Moved thread pool to offload handshake for native client.
* Updated tunnel del
  • Loading branch information
pkittenis authored Sep 2, 2020
1 parent 0143982 commit a0b0967
Show file tree
Hide file tree
Showing 18 changed files with 379 additions and 609 deletions.
9 changes: 3 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ install:
script:
# For testing SSH agent related functionality
- eval `ssh-agent -s`
- pytest --cov-append --cov=pssh tests/test_imports.py tests/test_output.py tests/test_utils.py
- pytest --cov-append --cov=pssh tests/test_imports.py tests/test_output.py tests/test_utils.py tests/test_host_config.py
- pytest --reruns 5 --cov-append --cov=pssh tests/miko
- pytest --reruns 10 --cov-append --cov=pssh tests/native/test_tunnel.py tests/native/test_agent.py
- pytest --reruns 5 --cov-append --cov=pssh tests/native/test_*_client.py
Expand All @@ -46,9 +46,6 @@ jobs:
include:

- stage: test
if: (type = push OR \
(type = pull_request AND fork = true)) AND \
tag IS blank

- &osx-wheels
stage: build packages
Expand Down Expand Up @@ -96,5 +93,5 @@ jobs:
repo: ParallelSSH/parallel-ssh
tags: true
distributions: sdist
skip_upload_docs: true
skip_cleanup: true
upload_docs: false
cleanup: false
19 changes: 13 additions & 6 deletions Changelog.rst
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
Change Log
============

1.12.2 (unreleased)
+++++++++++++++++++
1.13.0 (unreleased)
++++++++++++++++++++

Changes
--------

* Added ``pssh.config.HostConfig`` for providing per-host configuration. Replaces dictionary ``host_config`` which is now deprecated. See `per-host configuration <https://parallel-ssh.readthedocs.io/en/latest/advanced.html#per-host-configuration>`_ documentation.
* ``ParallelSSHClient.scp_send`` and ``scp_recv`` with directory target path will now copy source file to directory keeping existing name instead of failing when recurse is off - #183.

Fixes
------

* `ParallelSSHClient.copy_file` with recurse enabled and absolute destination path would create empty directory in home directory of user - #197.
* `ParallelSSHClient.copy_file` and `scp_recv` with recurse enabled would not create remote directories when copying empty local directories.
* `ParallelSSHClient.scp_send` would require SFTP when recurse is off and remote destination path contains directory - #157.
* `ParallelSSHClient.scp_recv` could block infinitely on large - 200-300MB or more - files.
* ``ParallelSSHClient.copy_file`` with recurse enabled and absolute destination path would create empty directory in home directory of user - #197.
* ``ParallelSSHClient.copy_file`` and ``scp_recv`` with recurse enabled would not create remote directories when copying empty local directories.
* ``ParallelSSHClient.scp_send`` would require SFTP when recurse is off and remote destination path contains directory - #157.
* ``ParallelSSHClient.scp_recv`` could block infinitely on large - 200-300MB or more - files.


1.12.1
++++++
Expand Down
Loading

0 comments on commit a0b0967

Please sign in to comment.