l.b.t.e.TestTracXMLRPCTransport(RequestsTransport) : class documentation

Part of lp.bugs.tests.externalbugtracker View In Hierarchy

An XML-RPC transport to be used when testing Trac.
Method expireCookie Mark the cookie as expired.
Method auth_cookie Undocumented
Method has_valid_auth_cookie Undocumented
Method request Call the corresponding XML-RPC method.
Method bugtracker_version Return the bug tracker version information.
Method time_snapshot Return the current time.
Method utc_time Return the current UTC time for this bug tracker.
Method bug_info Return info about a bug or set of bugs.
Method get_comments Return a list of comment dicts.
Method add_comment Add a comment to a bug.
Method get_launchpad_bug Get the Launchpad bug ID for a given remote bug.
Method set_launchpad_bug Set the Launchpad bug ID for a remote bug.

Inherited from RequestsTransport:

Method __init__ Undocumented
Method setCookie Set a cookie for the transport to use in future connections.
def expireCookie(self, cookie):
Mark the cookie as expired.
@property
def auth_cookie(self):
Undocumented
@property
def has_valid_auth_cookie(self):
Undocumented
def request(self, host, handler, request, verbose=None):
Call the corresponding XML-RPC method.

The method name and arguments are extracted from request. The method on this class with the same name as the XML-RPC method is called, with the extracted arguments passed on to it.

def bugtracker_version(self):
Return the bug tracker version information.
def time_snapshot(self):
Return the current time.
@property
def utc_time(self):
Return the current UTC time for this bug tracker.
def bug_info(self, level, criteria=None):
Return info about a bug or set of bugs.

:param level: The level of detail to return about the bugs
    requested. This can be one of:
    0: Return IDs only.
    1: Return Metadata only.
    2: Return Metadata + comment IDs.
    3: Return all data about each bug.

:param criteria: The selection criteria by which bugs will be
    returned. Possible keys include:
    modified_since: An integer timestamp. If specified, only
        bugs modified since this timestamp will
        be returned.
    bugs: A list of bug IDs. If specified, only bugs whose IDs are in
        this list will be returned.

Return a list of [ts, bugs] where ts is a utc timestamp as
returned by `time_snapshot()` and bugs is a list of bug dicts.
def get_comments(self, comments):
Return a list of comment dicts.
ParameterscommentsThe IDs of the comments to return. Comments that don't exist will be returned with a type value of 'missing'.
def add_comment(self, bugid, comment):
Add a comment to a bug.
ParametersbugidThe integer ID of the bug to which the comment should be added.
commentThe comment to be added as a string.
def get_launchpad_bug(self, bugid):
Get the Launchpad bug ID for a given remote bug.

The remote bug to Launchpad bug mappings are stored in the launchpad_bugs dict.

If bugid references a remote bug that doesn't exist, raise a Fault.

If a remote bug doesn't have a Launchpad bug mapped to it, return 0. Otherwise return the mapped Launchpad bug ID.

def set_launchpad_bug(self, bugid, launchpad_bug):
Set the Launchpad bug ID for a remote bug.

If bugid references a remote bug that doesn't exist, raise a Fault.

Return the current UTC timestamp.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.