tcms_api.xmlrpc module

class tcms_api.xmlrpc.CookieTransport(*args, **kwargs)[source]

Bases: Transport

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

parse_response(response)[source]
scheme = 'http'
send_headers(connection, headers)[source]
user_agent = 'tcms-api/13.2/Python 3.11.6 (main, Feb  1 2024, 16:47:41) [GCC 11.4.0]'
class tcms_api.xmlrpc.KerbTransport(use_datetime=False, use_builtin_types=False, *, headers=(), context=None)[source]

Bases: SafeCookieTransport

Handles GSSAPI Negotiation (SPNEGO) authentication.

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

Return an individual HTTPS connection for each request.

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

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

Bases: SafeTransport, CookieTransport

SafeTransport subclass that supports cookies.

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

Bases: TCMSXmlrpc

XML-RPC client for server deployed with python-social-auth-kerberos.

Should also work for servers deployed with mod_auth_gssapi but that is not supported nor guaranteed!

transport = <tcms_api.xmlrpc.KerbTransport object>
class tcms_api.xmlrpc.TCMSProxy(uri, transport=None, encoding=None, verbose=False, allow_none=False, use_datetime=False, use_builtin_types=False, *, headers=(), context=None)[source]

Bases: ServerProxy

class tcms_api.xmlrpc.TCMSXmlrpc(username, password, url)[source]

Bases: object

XML-RPC client for username/password authentication.

login()[source]
transport = None
tcms_api.xmlrpc.get_hostname(url)[source]

Performs the same parsing of the URL as the Transport class and returns only the hostname which is used to generate the service principal name for Kiwi TCMS and the respective Authorize header!