l.s.l.t.s.LibrarianServerFixture(TacTestSetup) : class documentation

Part of lp.services.librarianserver.testing.server View In Hierarchy

Librarian server fixture.
Instance Variablesservice_configA config fragment with the variables for this service.
rootthe root of the server storage area.
upload_portthe port to upload on.
download_portthe port to download from.
restricted_upload_portthe port to upload restricted files on.
restricted_download_portthe port to upload restricted files from.
pidpid of the external process.
Method __init__ Initialize the LibrarianServerFixture.
Method setUp Start both librarian instances.
Method cleanUp Shut downs both librarian instances.
Method clear Clear all files from the Librarian
Method pid Undocumented
Method root The root directory for the librarian file repository.
Method setUpRoot Create the librarian root archive.
Method tearDownRoot Remove the librarian root archive.
Method tacfile Undocumented
Method pidfile Undocumented
Method logfile Undocumented
Method getLogChunks Get a list with the contents of the librarian log in it.
Method reset Reset the librarian to a consistent initial state.
Method _read_pid Undocumented
Method _dynamic_config Is a dynamic config to be used?
Method _persistent_servers Undocumented
Method _waitForDaemonStartup Undocumented

Inherited from TacTestSetup:

Method removeLog Undocumented
Method truncateLog Truncate the log file.
Method daemon_directory Undocumented
Method _hasDaemonStarted Has the daemon started?
def __init__(self, config_fixture):
Initialize the LibrarianServerFixture.
Parametersconfig_fixtureThe ConfigFixture in use by our tests. In the layered environment, this is BaseLayer.config_fixture.
def setUp(self):
Start both librarian instances.
def cleanUp(self):
Shut downs both librarian instances.
def clear(self):
Clear all files from the Librarian
@property
def pid(self):
Undocumented
def _read_pid(self):
Undocumented
def _dynamic_config(self):
Is a dynamic config to be used?

True if LP_TEST_INSTANCE is set in the environment.

def _persistent_servers(self):
Undocumented
@property
def root(self):
The root directory for the librarian file repository.
def setUpRoot(self):
Create the librarian root archive.
def _waitForDaemonStartup(self):
Undocumented
def tearDownRoot(self):
Remove the librarian root archive.
@property
def tacfile(self):
Undocumented
@property
def pidfile(self):
Undocumented
@property
def logfile(self):
Undocumented
def getLogChunks(self):
Get a list with the contents of the librarian log in it.
def reset(self):
Reset the librarian to a consistent initial state.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.