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.
def test_exec(self):

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.

def test_localToRemoteForwarding(self):

Test that we can use whatever client to forward a local port to a specified port on the server.

def test_remoteToLocalForwarding(self):

Test that we can use whatever client to forward a port from the server to a port locally.

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.