Skip to content
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

Fixes and improvements for port forwarding tests #6

Merged
merged 4 commits into from
Apr 8, 2022

Conversation

drieseng
Copy link
Member

@drieseng drieseng commented Mar 26, 2022

  • Support configuration of PrintMotd and AllowTcpForwarding options.
  • Fix and extend public key authentication tests.
  • Fix port forwarding tests.
  • Add intermittend output test for ShellStream.
  • Add few tests for SftpClient.Open(...).

@drieseng drieseng requested a review from IgorMilavec March 26, 2022 07:45
@IgorMilavec
Copy link
Collaborator

IgorMilavec commented Mar 26, 2022

Can you please push updated TestTools? PrintMotd and AllowTcpForwarding are missing in SshdConfig.

@drieseng
Copy link
Member Author

Can you please push updated TestTools? PrintMotd and AllowTcpForwarding are missing in SshdConfig.

Done

@@ -642,7 +661,7 @@ public void Ssh_RemotePortForwarding()
using (var s = client.CreateShellStream("a", 80, 25, 800, 600, 200))
{
s.WriteLine($"telnet {forwardedPort1.BoundHost} {forwardedPort1.BoundPort}");
s.Expect("Escape character is '^]'.");
s.Expect($"Connected to {forwardedPort1.BoundHost}\r\n");
Copy link
Collaborator

Choose a reason for hiding this comment

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

The tests hang here. Expect() should be called with timeout (5 seconds should do it).

Copy link
Collaborator

Choose a reason for hiding this comment

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

We have a different issue open for this, so maybe we should leave this for later.
This PR definitely improved stability, so I think you can merge it.

@drieseng drieseng merged commit a31325e into main Apr 8, 2022
@drieseng drieseng deleted the feature/port-forwarding-etc branch November 20, 2022 10:30
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.

2 participants