trackers_integration.issuetracker.mantis module¶
-
class
trackers_integration.issuetracker.mantis.
Mantis
(bug_system, request)[source]¶ Bases:
tcms.issuetracker.base.IssueTrackerType
New in version 11.6-Enterprise.
Support for Mantis BT.
Warning
Make sure that this package is installed inside Kiwi TCMS and that
EXTERNAL_BUG_TRACKERS
setting contains a dotted path reference to this class! When using Kiwi TCMS Enterprise this is configured automatically.Authentication:
Base_url: URL to Mantis BT installation - e.g. https://example.org/mantisbt/ Api_password: Mantis BT API token -
get_category_from_mantis
(category_name, project)[source]¶ Returns a Category from the Mantis BT database. Will try to match
MANTIS_CATEGORY_NAME
configuration setting! Otherwise will return “General”!Warning
At present Mantis BT doesn’t appear to provide API methods for creating or listing available categories inside a project. Because of that this method will always return the “General” category!
-
get_project_from_mantis
(product_name)[source]¶ Returns a Project from the Mantis BT database. Will try to match execution.run.plan.product.name or
MANTIS_PROJECT_NAME
configuration setting! Otherwise will return the first project found!You may override this method if you want more control and customization, see https://kiwitcms.org/blog/tags/customization/
-
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: bool
-
post_comment
(execution, bug_id)[source]¶ Parameters: - execution (
tcms.testruns.models.TestExecution
) – TestExecution object - bug_id (int or str) – Unique defect identifier in the system. Usually an int.
- execution (
-