b.t.t.SmartTCPServer_for_testing(TestingTCPServerInAThread) : class documentation

Part of bzrlib.tests.test_server View In Hierarchy

Known subclasses: bzrlib.tests.test_server.ReadonlySmartTCPServer_for_testing, bzrlib.tests.test_server.SmartTCPServer_for_testing_v2_only

Server suitable for use by transport tests.

This server is backed by the process's cwd.

Method __init__ Undocumented
Method create_server Undocumented
Method start_server Set up server for testing.
Method stop_server Remove the server and cleanup any resources it owns.
Method get_backing_transport Get a backing transport from a server we are decorating.
Method get_url Undocumented
Method get_bogus_url Return a URL which will fail to connect

Inherited from TestingTCPServerInAThread:

Method __repr__ Undocumented
Method run_server Undocumented
Method set_ignored_exceptions Install an exception handler for the server.
Method pending_exception Raise uncaught exception in the server.
def __init__(self, thread_name_suffix=''):
Undocumented
def create_server(self):
Undocumented
def start_server(self, backing_transport_server=None, client_path_extra='/extra/'):
Set up server for testing.
Parametersbacking_transport_serverbacking server to use. If not specified, a LocalURLServer at the current working directory will be used.
client_path_extraa path segment starting with '/' to append to the root URL for this server. For instance, a value of '/foo/bar/' will mean the root of the backing transport will be published at a URL like bzr://127.0.0.1:nnnn/foo/bar/, rather than bzr://127.0.0.1:nnnn/. Default value is extra, so that tests by default will fail unless they do the necessary path translation.
def stop_server(self):
Remove the server and cleanup any resources it owns.
def get_backing_transport(self, backing_transport_server):
Get a backing transport from a server we are decorating.
def get_url(self):
Undocumented
def get_bogus_url(self):
Return a URL which will fail to connect
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.