Part of lp.testing.layers View In Hierarchy
Layers which need to start and stop a child process appserver or smtp server should call the methods in this class, but should NOT inherit from this class.
Class Method | setConfig | Stash a config for use. |
Class Method | setUp | Undocumented |
Class Method | startSMTPServer | Start the SMTP server if it hasn't already been started. |
Class Method | startAppServer | Start the app server if it hasn't already been started. |
Class Method | stopSMTPServer | Kill the SMTP server and wait until it's exited. |
Class Method | stopAppServer | Kill the appserver and wait until it's exited. |
Class Method | postTestInvariants | Enforce some invariants after each test. |
Class Method | appserver_root_url | Undocumented |
Class Method | _kill | Kill the appserver with sig . |
Class Method | _cleanUpStaleAppServer | Kill any stale app server or pid file. |
Class Method | _runAppServer | Start the app server using runlaunchpad.py |
Class Method | _waitUntilAppServerIsReady | Wait until the app server accepts connection. |
sig
.Parameters | sig | the signal to kill with (type: int) |
Returns | True if the signal was delivered, otherwise False. (type: bool) |