Skip to content

Commit

Permalink
pass permissions parameter during connection check (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
gs202 authored and lukas-bednar committed Nov 29, 2019
1 parent 4e40cef commit afd0e1d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pytest_jira.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,9 @@ def _jira_request(self, url, method='get', **kwargs):
def check_connection(self):
# This URL work for both anonymous and logged in users
auth_url = '{url}/rest/api/2/mypermissions'.format(url=self.url)
r = self._jira_request(auth_url)
r = self._jira_request(
auth_url, params={'permissions': 'BROWSE_PROJECTS'}
)

# For some reason in case on invalid credentials the status is still
# 200 but the body is empty
Expand Down

0 comments on commit afd0e1d

Please sign in to comment.