Skip to content

SSH implementation and test upgrade #570

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 14, 2023
Merged

SSH implementation and test upgrade #570

merged 3 commits into from
Dec 14, 2023

Conversation

mih
Copy link
Member

@mih mih commented Dec 13, 2023

Closes #563
Closes #571

TODO:

  • The current SSHUrlOperation implementation neither deals with users nor ports in URL. Given ssh://sshuser@datalad-test-sshd:2222//usr/local/apache2/htdocs/myfile it runs ssh datalad-test-sshd. The lack of support comes from _SshCat.

Copy link

codecov bot commented Dec 14, 2023

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (69db927) 91.57% compared to head (ca7a715) 92.68%.

Files Patch % Lines
datalad_next/tests/utils.py 80.00% 0 Missing and 3 partials ⚠️
datalad_next/tests/fixtures.py 92.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #570      +/-   ##
==========================================
+ Coverage   91.57%   92.68%   +1.10%     
==========================================
  Files         142      142              
  Lines       10421    10465      +44     
  Branches     1549     1556       +7     
==========================================
+ Hits         9543     9699     +156     
+ Misses        711      597     -114     
- Partials      167      169       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mih mih force-pushed the appveyor branch 8 times, most recently from 1fa9be9 to 3f3a10e Compare December 14, 2023 10:00
mih added 3 commits December 14, 2023 11:59
This pulls out a logic implementation that comes from the internals
of datalad-core's SSH manager.

Closes #571
This allows for flexible setups. The fixtures obey `DATALAD_TESTS_SSH`,
and aim at `localhost` by default. However, alternative targets can be
configured.
This adopts the setup prepared for `datalad-ria`. On Linux and
Windows an SSH-accessible server is deployed via Docker. On Mac
ssh-to-self is employed.

Closes #563
@mih mih changed the title SSHTMP SSH implementation and test upgrade Dec 14, 2023
@mih mih marked this pull request as ready for review December 14, 2023 11:09
Copy link
Contributor

@christian-monch christian-monch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming that the type errors would be fixed in #566, this looks good to me.

@mih
Copy link
Member Author

mih commented Dec 14, 2023

Thanks!

@mih mih merged commit 8a40cd5 into main Dec 14, 2023
@mih mih deleted the appveyor branch December 14, 2023 12:47
@mih mih added this to the 1.1 milestone Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SshUrlOperations cannot handle non-default port/user/id Enable SSH testing on appveyor
2 participants