Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If JIRA isn't fully configured then don't connect. Fixes #100 #103

Merged
merged 1 commit into from
Nov 4, 2017

Conversation

atodorov
Copy link
Member

@atodorov atodorov commented Nov 3, 2017

@GotfatherThe turns out the underlying jira library tries to connect
automatically when a jira.JIRA object is created. When the
Issue Tracker is not fully configured (i.e. missing base_url,
api_url, api_username, api_password) then the library will default
to localhost and fail to connect to the JIRA server.

This causes the TestRun report view to timeout and fail.

This commit adds tests for all supported issue trackers and also
fixes the JIRA implementation to not connect if not configured.

turns out the underlying jira library tries to connect
automatically when a jira.JIRA object is created. When the
Issue Tracker is not fully configured (i.e. missing base_url,
api_url, api_username, api_password) then the library will default
to localhost and fail to connect to the JIRA server.

This causes the TestRun report view to timeout and fail.

This commit adds tests for all supported issue trackers and also
fixes the JIRA implementation to not connect if not configured.
@coveralls
Copy link

coveralls commented Nov 3, 2017

Pull Request Test Coverage Report for Build 337

  • 1 of 2 (50.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.6%) to 59.352%

Changes Missing Coverage Covered Lines Changed/Added Lines %
tcms/issuetracker/types.py 1 2 50.0%
Totals Coverage Status
Change from base Build 335: 0.6%
Covered Lines: 7164
Relevant Lines: 11266

💛 - Coveralls

@atodorov atodorov merged commit c392c88 into master Nov 4, 2017
@atodorov atodorov deleted the next_release branch November 4, 2017 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants