tcms.issuetracker.bitbucket module¶
- class tcms.issuetracker.bitbucket.BitBucket(bug_system, request)[source]¶
Bases:
IssueTrackerType
Support for BitBucket. Requires:
- Base_url:
Repository URL - e.g. https://bitbucket.org/{workspace}/{repository}
- Api_username:
BitBucket Username
- Api_password:
BitBucket App Password - needs Issues: Read & write permission.
Note
You can leave the
api_url
field blank because the integration code doesn’t use it!Warning
api_username
is your BitBucket username, which you use to log in.Note
api_password
is “App Password” created in BitBucket. Here is a guide about creating and using an “App Password”; https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/- 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.