Skip to content

Comments

Fixes and improvements for port forwarding tests#6

Merged
drieseng merged 4 commits intomainfrom
feature/port-forwarding-etc
Apr 8, 2022
Merged

Fixes and improvements for port forwarding tests#6
drieseng merged 4 commits intomainfrom
feature/port-forwarding-etc

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

{
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