Part of canonical.buildd.tests.test_buildd_slave View In Hierarchy
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. |
'getLogTail' return up to 2 KiB text from the current 'buildlog' file.
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.