trackers_integration.issuetracker.trac module¶
- class trackers_integration.issuetracker.trac.Trac(bug_system, request)[source]¶
Bases:
IssueTrackerTypeAdded in version 15.2-Enterprise.
Support for Trac - open source issue tracking system, version 1.6 and above.
IMPORTANT: Trac server must have the trac-ticketrpc plugin installed!
IMPORTANT: Project name in Trac must match product name in Kiwi TCMS.
Warning
Make sure that this package is installed inside Kiwi TCMS and that
EXTERNAL_BUG_TRACKERSsetting contains a dotted path reference to this class! When using Kiwi TCMS Enterprise this is configured automatically.Authentication:
- Base_url:
URL to Trac instance - e.g. https://trac.myserver.local/
- Api_username:
Trac Username - needs Trac permissions TICKET_CREATE, TICKET_APPEND, TICKET_VIEW
- Api_password:
Trac Password
- details(url: str) dict[source]¶
Return issue details from Trac. :param url: Trac ticket URL, e.g. https://trac.myserver.local/myproject/ticket/123 :return: issue details
- is_adding_testcase_to_issue_disabled()[source]¶
When is linking a TC to a Bug report disabled? Usually when not all of the required credentials are provided.
- Returns:
True if bug system api url, username and password are provided
- Return type:
- post_comment(execution, bug_id)[source]¶
- Parameters:
execution (
tcms.testruns.models.TestExecution) – TestExecution objectbug_id (int or str) – Unique defect identifier in the system. Usually an int.