twisted.conch.test.test_conch.ForwardingMixin(ConchServerSetupMixin)
class documentationtwisted.conch.test.test_conch
(View In Hierarchy)
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_exec | 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_localToRemoteForwarding | Test that we can use whatever client to forward a local port to a specified port on the server. |
Method | test_remoteToLocalForwarding | Test that we can use whatever client to forward a port from the server to a port locally. |
Inherited from ConchServerSetupMixin:
Method | setUp | Undocumented |
Method | tearDown | Undocumented |
Method | _createFiles | Undocumented |
Method | _getFreePort | Undocumented |
Method | _makeConchFactory | Make a ConchTestServerFactory ,
which allows us to start a ConchTestServer
-- i.e. an actually listening conch. |
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.