rhevm-qe-automation / pytest_jira

py.test plugin to integrate with JIRA
GNU General Public License v2.0
29 stars 25 forks source link

Retry if authentication failed. #116

Closed myakove closed 3 years ago

myakove commented 3 years ago

authentication may fail on some Jira instances (Maybe version depended) on new version ?_sscc=t is needed to add to the URL.

rnetser commented 3 years ago

/lgtm

InbarRose commented 3 years ago

There is a retry built-in to python requests. I suggest you use this instead, docs: https://findwork.dev/blog/advanced-usage-python-requests-timeouts-retries-hooks/#retry-on-failure

myakove commented 3 years ago

There is a retry built-in to python requests. I suggest you use this instead, docs: https://findwork.dev/blog/advanced-usage-python-requests-timeouts-retries-hooks/#retry-on-failure

We need to modify the url on the second try. How can you do that with built-in to python requests retry?