diff --git a/pytest_jira.py b/pytest_jira.py index bcdb926..5f9213e 100644 --- a/pytest_jira.py +++ b/pytest_jira.py @@ -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