c.b.t.t.LaunchpadBuilddSlaveTests(BuilddTestCase) : class documentation

Part of canonical.buildd.tests.test_buildd_slave View In Hierarchy

Unit tests for scrubbing (removal of passwords) of buildlog files.
Method testBasicAuth Test that the auth handler is installed with the right details.
Method testBuildlogScrubbing Tests the buildlog scrubbing (removal of passwords from URLs).
Method testLogtailScrubbing Test the scrubbing of the slave's getLogTail() output.
Method testLogtail Tests the logtail mechanisms.
Method testLogtailWhenLogFileVanishes Slave.getLogTail doesn't get hurt if the logfile has vanished.

Inherited from BuilddTestCase:

Method setUp Setup a BuildDSlave using the test config.
Method tearDown Remove the 'filecache' directory used for the tests.
Method makeLog Inject data into the default buildlog file.
def testBasicAuth(self):
Test that the auth handler is installed with the right details.
def testBuildlogScrubbing(self):
Tests the buildlog scrubbing (removal of passwords from URLs).
def testLogtailScrubbing(self):
Test the scrubbing of the slave's getLogTail() output.
def testLogtail(self):
Tests the logtail mechanisms.

'getLogTail' return up to 2 KiB text from the current 'buildlog' file.

def testLogtailWhenLogFileVanishes(self):
Slave.getLogTail doesn't get hurt if the logfile has vanished.

This is a common race-condition in our slaves, since they get pooled all the time when they are building.

Sometimes the getLogTail calls coincides with the job cleanup/sanitization, so there is no buildlog to inspect and thus we expect an empty string to be returned instead of a explosion.

API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.