tcms_api.xmlrpc module

XMLRPC driver

Use this class to access Kiwi TCMS via XML-RPC This code is based on http://landfill.bugzilla.org/testopia2/testopia/contrib/drivers/python/testopia.py and https://fedorahosted.org/python-bugzilla/browser/bugzilla/base.py

History: 2011-12-31 bugfix https://bugzilla.redhat.com/show_bug.cgi?id=735937

class tcms_api.xmlrpc.CookieTransport(use_datetime=False, use_builtin_types=False)[source]

Bases: xmlrpc.client.Transport

A subclass of xmlrpc.client.Transport that supports cookies.

cookiejar = None
parse_response(response)[source]
scheme = 'http'
send_headers(connection, headers)[source]
class tcms_api.xmlrpc.KerbTransport(use_datetime=False, use_builtin_types=False, *, context=None)[source]

Bases: tcms_api.xmlrpc.SafeCookieTransport

Handles Kerberos Negotiation authentication to an XML-RPC server.

get_host_info(host)[source]
make_connection(host)[source]

For fixing https://bugzilla.redhat.com/show_bug.cgi?id=735937

Return an individual HTTPS connection for each request.

class tcms_api.xmlrpc.SafeCookieTransport(use_datetime=False, use_builtin_types=False, *, context=None)[source]

Bases: xmlrpc.client.SafeTransport, tcms_api.xmlrpc.CookieTransport

SafeTransport subclass that supports cookies.

scheme = 'https'
class tcms_api.xmlrpc.TCMSKerbXmlrpc(url)[source]

Bases: tcms_api.xmlrpc.TCMSXmlrpc

TCMSXmlrpc - TCMS XML-RPC client
for server deployed with mod_auth_kerb
class tcms_api.xmlrpc.TCMSXmlrpc(username, password, url)[source]

Bases: object

TCMS XML-RPC client for server deployed without BASIC authentication.