Closed liiight closed 7 years ago
Hi @liiight , thanks for report, could you please provide your jira.cfg file ?
I really don't want to expose my credentials as they are for my work. I used just the url, username and password.
Also, I just tried using running using --jira-url
, --jira-user
and --jira-password
and it worked, or at the very least didn't crash. Not sure it actually skipped a test I marked it to skip.
If this is any help:
[DEFAULT]
url = https://REDACTED.jira.com
username = REDACTED
password = REDACTED
@liiight good this is enough. I will try to reproduce it, and let you know!
Hi @liiight ,
I was trying to reproduce your issue, but I wasn't able to do that. I was able to run py.test with Jira plugin enabled, all parameters are stored in jira.cfg. I supplied url, username & password for my internal Jira instance, and all went as expected.
You can find my test environment bellow:
===================================================================================== test session starts =====================================================================================
platform linux2 -- Python 2.7.13, pytest-3.0.7, py-1.4.33, pluggy-0.4.0
rootdir: /tmp/test_pytest_jira, inifile:
plugins: jira-0.3.1
collected 1 items
x
================================================================================== 1 xfailed in 0.23 seconds ==================================================================================
In case you have other information which could help me to reproduce issue, please share ;-) I am sorry that I couldn't really help you ...
The most obvious difference I can think if is that I'm using python 3.6.
Also, I'm unfamiliar with Jira API but could there a server setting that need to set or something?
Push comes to shove, I'll clone the repo and try to debug it.
Any tips on how to test this locally?
I just tried same for py3.6 with same result
===================================================================================== test session starts =====================================================================================
platform linux -- Python 3.6.0, pytest-3.0.7, py-1.4.33, pluggy-0.4.0
rootdir: /tmp/test_pytest_jira, inifile:
plugins: jira-0.3.1
collected 1 items
x
================================================================================== 1 xfailed in 0.16 seconds ==================================================================================
Hi @liiight ,
is there anything new? were you able to move on with this issue ?
Here I am adding list of packages which I have installed in virtualenv for 3.6 just in case you can see some difference:
py36 installed:
appdirs==1.4.3
defusedxml==0.5.0
jira==1.0.10
oauthlib==2.0.2
packaging==16.8
pbr==3.0.0
py==1.4.33
pyparsing==2.2.0
pytest==3.0.7
pytest-jira==0.3.1
requests==2.13.0
requests-oauthlib==0.8.0
requests-toolbelt==0.7.1
six==1.10.0
No, I didn't get a chance to test this yet. Could you elaborate on exactly how to test this locally? I haven't dabbled at all with pytest plugins development yet, maybe you could save me some time
Hi, I don't have any specific method, but you can start with this sandbox environment. test_pytest_jira.tar.gz
I changed previous archive to use tox
tool in order to allow you run over more python versions out of box.
I run that simple test for py27, py35 and py35, against server JIRA v6.4.11.
Please try to reproduce your problem with my simple test:
tox
inside of directoryI included also tox.out file, where you can see my execution, you can find there versions of all used python packages.
I hope it will help you to start with debugging that issue.
Weirdly enough, the problem seemed to resolve itself... It all works now. I have no idea why. Thanks anyway!
I've setup
jira.cfg
like the documentation described but I cannot seem to connect:When trying to connect using basic auth directly via the
jira
module it works:Any assistance would be appreciated