c.l.d.t.TacTestSetup : class documentation

Part of canonical.launchpad.daemons.tachandler View In Hierarchy

Known subclasses: canonical.buildd.tests.harness.BuilddSlaveTestSetup, canonical.database.ftests.PortForwardTestSetup, canonical.librarian.ftests.harness.TacLibrarianTestSetup, canonical.zeca.ftests.harness.ZecaTestSetup, lp.buildmaster.tests.harness.BuilddManagerTestSetup, lp.codehosting.tests.servers.CodeHostingTac, lp.poppy.tests.test_poppy.PoppyTac, lp.registry.tests.test_distributionmirror_prober.HTTPServerTestSetup

Setup an TAC file as daemon for use by functional tests.

You can override setUpRoot to set up a root directory for the daemon.

Method setUp Undocumented
Method tearDown Undocumented
Method killTac Kill the TAC file if it is running.
Method sendSignal Send the given signal to the tac process.
Method setUpRoot Override this.
Method root Undocumented
Method tacfile Undocumented
Method pidfile Undocumented
Method logfile Undocumented
Method _hasDaemonStarted Has the daemon started?
Method _waitForDaemonStartup Wait for the daemon to fully start.
def setUp(self, spew=False, umask=None):
Undocumented
def _hasDaemonStarted(self):
Has the daemon started?

Startup is recognized by the appearance of LOG_MAGIC in the log file.

def _waitForDaemonStartup(self):
Wait for the daemon to fully start.

Times out after 20 seconds. If that happens, the log file content will be included in the exception message for debugging purpose.

RaisesTacExceptionTimeout.
def tearDown(self):
Undocumented
def killTac(self):
Kill the TAC file if it is running.
def sendSignal(self, sig):
Send the given signal to the tac process.
def setUpRoot(self):
Override this.

This should be able to cope with the root already existing, because it will be left behind after each test in case it's needed to diagnose a test failure (e.g. log files might contain helpful tracebacks).

@property
def root(self):
Undocumented
@property
def tacfile(self):
Undocumented
@property
def pidfile(self):
Undocumented
@property
def logfile(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.