Allow the integration tests to run on .NET Framework#1286
Merged
WojciechNagorski merged 5 commits intosshnet:developfrom Feb 6, 2024
Merged
Allow the integration tests to run on .NET Framework#1286WojciechNagorski merged 5 commits intosshnet:developfrom
WojciechNagorski merged 5 commits intosshnet:developfrom
Conversation
WojciechNagorski
approved these changes
Feb 6, 2024
Collaborator
Author
|
Thanks! |
Rob-Hague
added a commit
to realvizu/SSH.NET
that referenced
this pull request
Feb 6, 2024
WojciechNagorski
added a commit
that referenced
this pull request
Feb 6, 2024
…1293) * Making all unit tests pass locally. Excluded MD5 tests on net462 because I get System.InvalidOperationException: 'This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.' SshdConfig: do not throw for "Include", just do nothing. Modified failing dos2unix parameters in Dockerfile.TestServer. Forceing LF line ending for key files used by integration tests, otherwise using them causes error. SftpClientTest.Test_Sftp_Multiple_Async_Upload_And_Download_10Files_5MB_Each times out for maxFiles=10, decreasing to 2 to make the test pass. * Added SshCommand.InputStream. * Added an integration test for SshCommand.InputStream. * Reverting changes made to unit tests unrelated to this PR. * Moved ChannelInputStream's EOF sending from Write to Dispose. Replace SshCommand.InputStream with CreateInputStream to emphasise that a (disposable) resource is created here. EndExecute also closes the _inputStream to make sure that EOF is sent (in case the user forgot to dispose the input stream). Added more unit tests: sending the input one byte at a time, not disposing the input stream, calling CreateInputStream before BeginExecute or AfterEndExecute throws exception. * Fixing review comments. * Fix build error after #1286 --------- Co-authored-by: ferenc.vizkeleti <ferenc.vizkeleti@innopay.hu> Co-authored-by: Wojciech Nagórski <wojtpl2@gmail.com> Co-authored-by: Rob Hague <rob.hague00@gmail.com>
Collaborator
|
This issue has been fixed in the 2024.0.0 version. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For local testing (it is challenging to do in CI: #1220 (comment))