class documentation
class ForwardingMixin(ConchServerSetupMixin): (source)
Known subclasses: twisted.conch.test.test_conch.CmdLineClientTests
, twisted.conch.test.test_conch.OpenSSHClientForwardingTests
Template class for tests of the Conch server's ability to forward arbitrary protocols over SSH.
These tests are integration tests, not unit tests. They launch a Conch server, a custom TCP server (just an EchoProtocol
) and then call execute
.
execute
is implemented by subclasses of ForwardingMixin
. It should cause an SSH client to connect to the Conch server, asking it to forward data to the custom TCP server.
Method | test |
Test that we can use whatever client to send the command "echo goodbye" to the Conch server. Make sure we receive "goodbye" back from the server. |
Method | test_local |
Test that we can use whatever client to forward a local port to a specified port on the server. |
Method | test_remote |
Test that we can use whatever client to forward a port from the server to a port locally. |
Inherited from ConchServerSetupMixin
:
Static Method | realm |
Undocumented |
Method | set |
Undocumented |
Method | tear |
Undocumented |
Class Variable | skip |
Undocumented |
Instance Variable | conch |
Undocumented |
Instance Variable | conch |
Undocumented |
Instance Variable | echo |
Undocumented |
Instance Variable | echo |
Undocumented |
Instance Variable | echo |
Undocumented |
Instance Variable | echo |
Undocumented |
Method | _create |
Undocumented |
Method | _get |
Undocumented |
Method | _make |
Make a ConchTestServerFactory , which allows us to start a ConchTestServer -- i.e. an actually listening conch. |