Skip to content

Commit

Permalink
Use the name of a second project for testing JIRA integration
Browse files Browse the repository at this point in the history
this is attempt to find out if the jira library has silently changed or
if there has been a bug with this integration which was not discovered
due to limitations in the testing environment.

- Kiwi TCMS -> KT - this is the 2nd Project defined in
  kiwitcms.atlassian.net.
- the 1st Project is "Integration with JIRA" -> JIRA
- 1click bug report should match the KT board, not the JIRA board!
  • Loading branch information
atodorov committed Sep 8, 2023
1 parent 569757f commit 7de905c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tcms/issuetracker/tests/test_jira.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def _fixture_setup(self):
)
self.execution_1.run.save()

# this is the name of the JIRA Project
self.execution_1.run.plan.product.name = "Integration with JIRA"
# this is the name of the Project in JIRA. Key is "KT"
self.execution_1.run.plan.product.name = "Kiwi TCMS"
self.execution_1.run.plan.product.save()

self.component = ComponentFactory(
Expand Down Expand Up @@ -118,7 +118,7 @@ def test_report_issue_from_test_execution_1click_works(self):
)
self.assertEqual(result["rc"], 0)
self.assertIn(self.integration.bug_system.base_url, result["response"])
self.assertIn("https://kiwitcms.atlassian.net/browse/JIRA-", result["response"])
self.assertIn("https://kiwitcms.atlassian.net/browse/KT-", result["response"])

new_issue_id = self.integration.bug_id_from_url(result["response"])
issue = self.integration.rpc.issue(new_issue_id)
Expand Down

0 comments on commit 7de905c

Please sign in to comment.