c.b.t.h.BuilddSlaveTestSetup(TacTestSetup) : class documentation

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

Setup BuildSlave for use by functional tests

>>> BuilddSlaveTestSetup().setUp()

Make sure the server is running

>>> import xmlrpclib
>>> s = xmlrpclib.Server('http://localhost:8221/rpc/')
>>> s.echo('Hello World')
['Hello World']
>>> BuilddSlaveTestSetup().tearDown()

Again for luck !

>>> BuilddSlaveTestSetup().setUp()
>>> s = xmlrpclib.Server('http://localhost:8221/rpc/')
>>> s.echo('Hello World')
['Hello World']
>>> info = s.info()
>>> len(info)
3
>>> print info[:2]
['1.0', 'i386']
>>> for buildtype in sorted(info[2]):
...     print buildtype
binarypackage
debian
sourcepackagerecipe
translation-templates
>>> s.status()
['BuilderStatus.IDLE', '']
>>> BuilddSlaveTestSetup().tearDown()
Method setUpRoot Recreate empty root directory to avoid problems.
Method tearDown Tear down the system normally and additionaly remove the root.
Method root Undocumented
Method tacfile Undocumented
Method pidfile Undocumented
Method logfile Undocumented

Inherited from TacTestSetup:

Method setUp Undocumented
Method killTac Kill the TAC file if it is running.
Method sendSignal Send the given signal to the tac process.
Method _hasDaemonStarted Has the daemon started?
Method _waitForDaemonStartup Wait for the daemon to fully start.
def setUpRoot(self):
Recreate empty root directory to avoid problems.
def tearDown(self):
Tear down the system normally and additionaly remove the root.
@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.