devolo / pytest-adaptavist

pytest plugin generating test execution results within Jira Test Management (tm4j)
MIT License
8 stars 11 forks source link

Adaptavists API 2.0 call to get users not working for jira cloud #33

Open osanchez42 opened 2 years ago

osanchez42 commented 2 years ago

adaptavists.py -> get_users()

possibly just some limitations due to the version of adaptavists used. I believe the API endpoint used will need to be updated to API 3.0 where users will need to specify atlassian ID and just verify it exists.

{"errorMessages":["The query parameter 'username' is not supported in GDPR strict mode."],"errors":{}}

found this on atlassian forumns:

https://community.atlassian.com/t5/Advanced-Roadmaps-questions/error-quot-The-query-parameter-username-is-not-supported-in-GDPR/qaq-p/1365942

and some official documentation here https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/

osanchez42 commented 2 years ago

looks like the use of username in 2.0 api was deprecated in cloud version. So this test suite currently is for jira on prem.

edit: going to move this issue to the other repo. but for this repo

if this is is not an option then just marking requirement on readme should be okay.

Shutgun commented 2 years ago

Hi @osanchez42 , we are indeed using Jira on premise. However, we accept PRs or can help out, if you can grant us access to a cloud instance for testing.